Commit e38ecefc authored by Anuj Gupta's avatar Anuj Gupta
Browse files

Merge branch 'tenant_validation_ibm' into 'master'

Tenant validation ibm

See merge request !96
parents e5da3c82 aeccaf09
Pipeline #54272 failed with stages
in 33 minutes and 8 seconds
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment