diff --git a/Makefile b/Makefile index daf70b8..919dba5 100644 --- a/Makefile +++ b/Makefile @@ -125,6 +125,7 @@ test-http-client: /workdir/get_provider_settings.http \ /workdir/get_full_account.http \ /workdir/get_group.http \ + /workdir/unregister_device.http \ --report; \ EXIT_CODE=$$?; \ docker logs soundtouch-service; \ diff --git a/tests/integration/http-client/register_device.http b/tests/integration/http-client/register_device.http index 7a2477b..ae34e57 100644 --- a/tests/integration/http-client/register_device.http +++ b/tests/integration/http-client/register_device.http @@ -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"); - }); -%} diff --git a/tests/integration/http-client/unregister_device.http b/tests/integration/http-client/unregister_device.http new file mode 100644 index 0000000..18ddffe --- /dev/null +++ b/tests/integration/http-client/unregister_device.http @@ -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"); + }); +%}