Skip to content

Commit

Permalink
Add verify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfiea committed Dec 11, 2024
1 parent 70f9cc1 commit ef66f44
Show file tree
Hide file tree
Showing 2 changed files with 512 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ data:
kubernetes
openshift
requests==2.31.0
assertpy==1.1
urllib3==1.26.18
tests.py: |-
Expand All @@ -158,7 +157,6 @@ data:
import logging
import tempfile
import base64
from assertpy import assert_that
import string
Expand All @@ -176,10 +174,6 @@ data:
if manageNamespace is None:
raise Exception(f"Required MANAGE_NAMESPACE environment variable is not set")
masNamespace = os.getenv("MAS_NAMESPACE")
if masNamespace is None:
raise Exception(f"Required MAS_NAMESPACE environment variable is not set")
MANAGE_URL = f'https://{mas_instance_id}-{mas_workspace_id}.mas-{mas_instance_id}-manage.svc' # Use for cluster
# MANAGE_URL = 'https://localhost:9443' # Use for local
Expand Down Expand Up @@ -912,7 +906,6 @@ data:
#***********************Test Functions***************
#TC#1 Test to verify system info has Maximo IT
def test_system_info(manage_host_ca_filepath, headers):
print(headers)
response = requests.get(MANAGE_URL + '/maximo/api/systeminfo', headers=headers, verify=manage_host_ca_filepath)
# Check if the response code is 200 OK
assert response.status_code == 200, "System Info fetch failed."
Expand Down
Loading

0 comments on commit ef66f44

Please sign in to comment.