From f65212ec78bf6d595c739c65a0e1d2d67c0f0065 Mon Sep 17 00:00:00 2001 From: DenisGNoonan Date: Wed, 11 Oct 2023 16:13:58 +0100 Subject: [PATCH] NONRTRIC-933: NONRTRIC - A1Sim - avoid clashing port numbers between unit tests and Docker tests Issue-ID: NONRTRIC-933 Signed-off-by: DenisGNoonan Change-Id: I5736c03cfb81bf39e034b12448d86e0e20db71fe --- near-rt-ric-simulator/tests/test_osc_2_1_0.py | 2 +- near-rt-ric-simulator/tests/test_std_2_0_0.py | 2 +- near-rt-ric-simulator/tests/unittest_setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/near-rt-ric-simulator/tests/test_osc_2_1_0.py b/near-rt-ric-simulator/tests/test_osc_2_1_0.py index b1d947b..f5222c9 100644 --- a/near-rt-ric-simulator/tests/test_osc_2_1_0.py +++ b/near-rt-ric-simulator/tests/test_osc_2_1_0.py @@ -589,7 +589,7 @@ def test_notificationDestination(client): # === API: Update policy instance pi2 of type: 2 ===" with open(test_data) as json_file: payload = json.load(json_file) - response = client.put(SERVER_URL+"a1-p/policytypes/2/policies/pi2?notificationDestination=http://localhost:8085/statustest", headers=header, data=json.dumps(payload)) + response = client.put(SERVER_URL+"a1-p/policytypes/2/policies/pi2?notificationDestination=http://localhost:8086/statustest", headers=header, data=json.dumps(payload)) assert response.status_code == 202 result = response.data diff --git a/near-rt-ric-simulator/tests/test_std_2_0_0.py b/near-rt-ric-simulator/tests/test_std_2_0_0.py index 7fc8e40..0da2467 100644 --- a/near-rt-ric-simulator/tests/test_std_2_0_0.py +++ b/near-rt-ric-simulator/tests/test_std_2_0_0.py @@ -471,7 +471,7 @@ def test_notificationDestination(client): # === API: Update policy instance pi2 of type: 2 ===" with open(test_data) as json_file: payload = json.load(json_file) - response = client.put(SERVER_URL+"A1-P/v2/policytypes/STD_1/policies/pi2?notificationDestination=http://localhost:8085/statustest", headers=header, data=json.dumps(payload)) + response = client.put(SERVER_URL+"A1-P/v2/policytypes/STD_1/policies/pi2?notificationDestination=http://localhost:8086/statustest", headers=header, data=json.dumps(payload)) assert response.status_code == 200 result = json.loads(response.data) assert compare(payload, result) == True diff --git a/near-rt-ric-simulator/tests/unittest_setup.py b/near-rt-ric-simulator/tests/unittest_setup.py index f2c2955..e30b1ad 100644 --- a/near-rt-ric-simulator/tests/unittest_setup.py +++ b/near-rt-ric-simulator/tests/unittest_setup.py @@ -61,4 +61,4 @@ def client(): # Run the Flask app in a separate thread for testing def run_flask_app(): from main import app - app.app.run(port=8085, host="127.0.0.1") + app.app.run(port=8086, host="127.0.0.1") -- 2.16.6