Split register and unregister device tests (#133)

This commit is contained in:
Tobias Gesellchen
2026-03-27 22:03:21 +01:00
committed by GitHub
parent 5d080cf35f
commit e0a84d5904
3 changed files with 10 additions and 10 deletions
@@ -17,13 +17,3 @@ Authorization: Bearer {{authToken}}
client.assert(device.getAttribute("deviceid") === client.variables.environment.get("deviceId"), "Response body should contain the deviceId");
});
%}
### DELETE /{{newAccountId}}/devices/{{deviceId}} (Unregister Device)
DELETE {{host}}/accounts/{{newAccountId}}/devices/{{deviceId}}
Authorization: Bearer {{authToken}}
> {%
client.test("Device unregistered successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
});
%}
@@ -0,0 +1,9 @@
### DELETE /{{newAccountId}}/devices/{{deviceId}} (Unregister Device)
DELETE {{host}}/accounts/{{newAccountId}}/devices/{{deviceId}}
Authorization: Bearer {{authToken}}
> {%
client.test("Device unregistered successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
});
%}