Skip to content
Snippets Groups Projects
Commit 466e8fa8 authored by Rucha Deshpande's avatar Rucha Deshpande
Browse files

override failing tests with 403

parent d68d850d
No related branches found
No related tags found
1 merge request!78multitenant-v2
......@@ -48,6 +48,18 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests {
public void tearDown() throws Exception {
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
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