diff --git a/testing/notification-test-azure/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java b/testing/notification-test-azure/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java index 6dc0bb2860c7b1fb0d71b4a6c4dc352c013259c3..b08997b116d91d8866a9822742e003fa599ad7f8 100644 --- a/testing/notification-test-azure/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java +++ b/testing/notification-test-azure/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java @@ -65,7 +65,7 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests { @Override public void should_return401_when_accessingWithNoAccessCredentials() throws Exception{ ClientResponse response = descriptor.run(getArg(), testUtils.getNoAccessToken()); - assertEquals(error( response.getEntity(String.class)), 403, response.getStatus()); + assertEquals(error( response.getEntity(String.class)), 401, response.getStatus()); } @Test @@ -79,13 +79,13 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests { @Override public void should_return401_when_accessingWithEditorCredentials() throws Exception{ ClientResponse response = descriptor.run(getArg(), testUtils.getNoAccessToken()); - assertEquals(error( response.getEntity(String.class)), 403, response.getStatus()); + assertEquals(error( response.getEntity(String.class)), 401, response.getStatus()); } @Test @Override public void should_return401_when_accessingWithAdminCredentials() throws Exception{ ClientResponse response = descriptor.run(getArg(), testUtils.getNoAccessToken()); - assertEquals(error( response.getEntity(String.class)), 403, response.getStatus()); + assertEquals(error( response.getEntity(String.class)), 401, response.getStatus()); } } \ No newline at end of file