Skip to content
Snippets Groups Projects
Commit 34543469 authored by Komal Makkar's avatar Komal Makkar
Browse files

overriden tests

parent 836d6ca5
No related branches found
No related tags found
1 merge request!38Changes in IT to match Infra
......@@ -65,7 +65,7 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests {
@Override
public void should_return401_when_accessingWithNoAccessCredentials() throws Exception{
ClientResponse response = descriptor.run(getArg(), testUtils.getNoAccessToken());
assertEquals(error( response.getEntity(String.class)), 403, response.getStatus());
assertEquals(error( response.getEntity(String.class)), 401, response.getStatus());
}
@Test
......@@ -79,13 +79,13 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests {
@Override
public void should_return401_when_accessingWithEditorCredentials() throws Exception{
ClientResponse response = descriptor.run(getArg(), testUtils.getNoAccessToken());
assertEquals(error( response.getEntity(String.class)), 403, response.getStatus());
assertEquals(error( response.getEntity(String.class)), 401, response.getStatus());
}
@Test
@Override
public void should_return401_when_accessingWithAdminCredentials() throws Exception{
ClientResponse response = descriptor.run(getArg(), testUtils.getNoAccessToken());
assertEquals(error( response.getEntity(String.class)), 403, response.getStatus());
assertEquals(error( response.getEntity(String.class)), 401, 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