From e91fc2633d1008e19f5a4ee63caec2adfa4ebfce Mon Sep 17 00:00:00 2001 From: shivamcandela Date: Thu, 4 Nov 2021 00:49:56 +0530 Subject: [PATCH] WIFI-5434 : Contention on create device naming is removed, added the testbed name as a unique identifier Signed-off-by: shivamcandela --- .../controller_tests/ucentral_gateway/test_gatewayservice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/controller_tests/ucentral_gateway/test_gatewayservice.py b/tests/controller_tests/ucentral_gateway/test_gatewayservice.py index 19c8bd623..5ad034bf7 100644 --- a/tests/controller_tests/ucentral_gateway/test_gatewayservice.py +++ b/tests/controller_tests/ucentral_gateway/test_gatewayservice.py @@ -126,7 +126,7 @@ class TestUcentralGatewayService(object): print(devices) @pytest.mark.sdk_restapi - def test_gwservice_createdevice(self, setup_controller): + def test_gwservice_createdevice(self, setup_controller, testbed): """ Test the create device endpoint WIFI-3453 @@ -141,7 +141,7 @@ class TestUcentralGatewayService(object): 'manufacturer': 'Testing', 'owner': ''} print(json.dumps(payload)) - resp = setup_controller.request("gw", "device/deadbeef0011", "POST", None, json.dumps(payload)) + resp = setup_controller.request("gw", "device/deadbeef0011" + testbed, "POST", None, json.dumps(payload)) allure.attach(name="response: ", body=str(resp.json())) body = resp.url + "," + str(resp.status_code) + ',' + resp.text allure.attach(name="gw create devices", body=body)