From 34543469d62a9071e5849f5f375397a5c0dd6db3 Mon Sep 17 00:00:00 2001 From: komakkar <komakkar@microsoft.com> Date: Fri, 20 Nov 2020 18:46:21 +0530 Subject: [PATCH] overriden tests --- .../osdu/notification/api/TestPubsubEndpointHMAC.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 6dc0bb286..b08997b11 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 -- GitLab