Commit 466e8fa8 authored by Rucha Deshpande's avatar Rucha Deshpande
Browse files

override failing tests with 403

parent d68d850d
...@@ -48,6 +48,18 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests { ...@@ -48,6 +48,18 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests {
public void tearDown() throws Exception { public void tearDown() throws Exception {
this.testUtils = null; this.testUtils = null;
} }
@Test
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getArg(), "");
assertEquals(error(response.getEntity(String.class)), 403, response.getStatus());
}
@Test
@Override
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
Supports Markdown
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