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 2b4c57355caaf8842d9feca9ea7bd707df315190..70d81c093369b5c8169ddfe86dab6c15b385411a 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 @@ -44,7 +44,7 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests { this.testUtils = null; } -/* @Test + @Test @Override public void should_return400_when_makingHttpRequestWithoutToken() throws Exception { ClientResponse response = descriptor.run(getArg(), ""); @@ -57,5 +57,5 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests { // The requirement of http support is under discussion. // If HTTP is a need, corresponding infra changes will be required for this test to function. return; - }*/ + } } \ No newline at end of file diff --git a/testing/notification-test-core/src/main/java/org/opengroup/osdu/notification/util/BaseTestTemplate.java b/testing/notification-test-core/src/main/java/org/opengroup/osdu/notification/util/BaseTestTemplate.java index 0657da825452f05d08f962f89415977d9d7cf780..6ca4aca029785b2c1a0b2c42e3b6fe5ab857cb4b 100644 --- a/testing/notification-test-core/src/main/java/org/opengroup/osdu/notification/util/BaseTestTemplate.java +++ b/testing/notification-test-core/src/main/java/org/opengroup/osdu/notification/util/BaseTestTemplate.java @@ -55,7 +55,7 @@ public abstract class BaseTestTemplate extends TestBase { return testUtils.getAdminToken(); } - /*@Test + @Test public void should_return401_when_noAccessOnCustomerTenant() throws Exception { ClientResponse response = descriptor.runOnCustomerTenant(getArg(), getOsduTenantAdminCredentials()); assertEquals(error( response.getEntity(String.class)),401, response.getStatus()); @@ -102,7 +102,6 @@ public abstract class BaseTestTemplate extends TestBase { deleteResource(); } } -*/ @Test public void should_returnOk_when_makingHttpOptionsRequest() throws Exception{ ClientResponse response = descriptor.runOptions(getArg(), testUtils.getEditorToken()); @@ -130,10 +129,10 @@ public abstract class BaseTestTemplate extends TestBase { } } - /*@Test + @Test public void should_return400_when_makingHttpRequestWithoutToken()throws Exception{ ClientResponse response = descriptor.run(getArg(), ""); assertEquals(error( response.getEntity(String.class)), 302, response.getStatus()); - }*/ + } } \ No newline at end of file