From 2a22eba69dfc458fee016c3d7540f2ed62aaed5d Mon Sep 17 00:00:00 2001 From: Patricia Reinoso Date: Mon, 18 Nov 2024 12:35:35 +0000 Subject: [PATCH] remove TLS verification on request for tests --- tests/integration/nms_helper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/nms_helper.py b/tests/integration/nms_helper.py index 334a8379..bea17ec7 100644 --- a/tests/integration/nms_helper.py +++ b/tests/integration/nms_helper.py @@ -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}.") @@ -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 @@ -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