diff --git a/provider/notification-ibm/pom.xml b/provider/notification-ibm/pom.xml index 5d97c46433036bc6ca84f168b4834b4dfdcb826b..062ba56e9e5e38e018cd4a31287eb28ba5cc7107 100644 --- a/provider/notification-ibm/pom.xml +++ b/provider/notification-ibm/pom.xml @@ -44,7 +44,7 @@ <dependency> <groupId>org.opengroup.osdu</groupId> <artifactId>os-core-lib-ibm</artifactId> - <version>0.7.0</version> + <version>0.9.0</version> </dependency> <dependency> diff --git a/testing/notification-test-ibm/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java b/testing/notification-test-ibm/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java index 9a1f59c5a4d8f9d51cfb3175be4ddbc103554d5b..e01b1c888f7f1f79f9707246c3ebb3ed26d56380 100644 --- a/testing/notification-test-ibm/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java +++ b/testing/notification-test-ibm/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java @@ -56,6 +56,14 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests { // TODO getting SubscriptionException only on ci-cd env super.should_return20XResponseCode_when_makingValidHttpsRequest(); } + + //running against tenant - 'nonexistenttenant' and entitlement throws 403 for invalid teanant + @Override + @Test + public void should_return401_when_noAccessOnCustomerTenant() throws Exception { + ClientResponse response = descriptor.runOnCustomerTenant(getArg(), getOsduTenantAdminCredentials()); + assertEquals(error( response.getEntity(String.class)),403, response.getStatus()); + } } \ No newline at end of file