Skip to content
Snippets Groups Projects
Commit aeccaf09 authored by Ritika Kaushal's avatar Ritika Kaushal Committed by Anuj Gupta
Browse files

Tenant validation ibm

parent e5da3c82
No related branches found
No related tags found
2 merge requests!100Commit 2 contents:,!96Tenant validation ibm
......@@ -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>
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment