Skip to content

Commit

Permalink
remove TLS verification on request for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciareinoso committed Nov 18, 2024
1 parent 207993a commit 2a22eba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/nms_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def create_subscriber(self, imsi: str) -> None:
"""
SUBSCRIBER_CONFIG["UeId"] = imsi
url = f"https://{self.nms_ip}:5000/api/subscriber/imsi-{imsi}"
response = requests.post(url=url, data=json.dumps(SUBSCRIBER_CONFIG))
response = requests.post(url=url, data=json.dumps(SUBSCRIBER_CONFIG), verify=False)
response.raise_for_status()
logger.info(f"Created subscriber with IMSI {imsi}.")

Expand All @@ -76,7 +76,7 @@ def create_device_group(self, device_group_name: str, imsis: list) -> None:
"""
DEVICE_GROUP_CONFIG["imsis"] = imsis
url = f"https://{self.nms_ip}:5000/config/v1/device-group/{device_group_name}"
response = requests.post(url, json=DEVICE_GROUP_CONFIG)
response = requests.post(url, json=DEVICE_GROUP_CONFIG, verify=False)
response.raise_for_status()
now = time.time()
timeout = 5
Expand All @@ -97,7 +97,7 @@ def create_network_slice(self, network_slice_name: str, device_groups: list) ->
"""
NETWORK_SLICE_CONFIG["site-device-group"] = device_groups
url = f"https://{self.nms_ip}:5000/config/v1/network-slice/{network_slice_name}"
response = requests.post(url, json=NETWORK_SLICE_CONFIG)
response = requests.post(url, json=NETWORK_SLICE_CONFIG, verify=False)
response.raise_for_status()
now = time.time()
timeout = 5
Expand Down

0 comments on commit 2a22eba

Please sign in to comment.