mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-01 19:37:54 +00:00
WIFI-5434 : Contention on create device naming is removed, added the testbed name as a unique identifier
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user