X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=near-rt-ric-simulator%2Ftests%2Ftest_std_2_0_0.py;h=a21368c7cd69558ef00e20dd39463d9f0558356a;hb=8873ea581307f1544b6ece3cb31b78c781ae032e;hp=7fc8e40e73509dfcd27c7dbe633d6c2489ef6931;hpb=f5ffd09d7b10237f7ba31617b30821a36e5647f3;p=sim%2Fa1-interface.git 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..a21368c 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 @@ -1,5 +1,6 @@ # ============LICENSE_START=============================================== -# Copyright (C) 2021 Nordix Foundation. All rights reserved. +# Copyright (C) 2021-2023 Nordix Foundation. All rights reserved. +# Copyright (C) 2023-2024 OpenInfra Foundation Europe. All Rights Reserved # ======================================================================== # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -471,7 +472,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 @@ -484,6 +485,9 @@ def test_sendstatus(client): test_data = get_testdata_dir() + 'pi2.json' header = { "Content-Type" : "application/json" } + # Timeout can be removed with polling the endpoints if required + proc.join(timeout=10) + # === Send status for pi2=== with open(test_data) as json_file: payload = json.load(json_file)