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

Added @Ignore to 2 tests instead of commenting the tests out

parent 00a857e2
No related branches found
No related tags found
1 merge request!27Feat/aws impl3
Pipeline #12660 passed
......@@ -17,6 +17,7 @@
package org.opengroup.osdu.register.util;
import com.sun.jersey.api.client.ClientResponse;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
......@@ -73,8 +74,8 @@ public abstract class BaseTestTemplate extends TestBase {
ClientResponse response = descriptor.run(getId(), testUtils.getNoDataAccessToken());
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
//Commenting this test.. . See Gitlab issue: https://community.opengroup.org/osdu/platform/system/register/-/issues/20
/*
@Ignore("Issue reported in GL")
@Test
public void should_return20X_when_usingCredentialsWithPermissionOps() throws Exception {
should_return20X_when_usingCredentialsWithPermission(testUtils.getOpsAccessToken());
......@@ -100,21 +101,22 @@ public abstract class BaseTestTemplate extends TestBase {
assertEquals("[0]", response.getHeaders().getFirst("Expires"));
assertEquals(error(response.getStatus() == 204 ? "" : response.getEntity(String.class)), expectedOkResponseCode(), response.getStatus());
}
*/
@Test
public void should_returnOk_when_makingHttpOptionsRequest() throws Exception {
ClientResponse response = descriptor.runOptions(getId(), testUtils.getOpsAccessToken());
assertEquals(error(response.getEntity(String.class)), 200, response.getStatus());
}
//Commenting this test since API Gateway will always block http
/* @Test
@Ignore("Issue reported in GL")
@Test
public void should_return307_when_makingHttpRequest() throws Exception {
if (Config.Instance().isLocalHost())
return; //localhost we expect to be able to use http so we shortcut the test
ClientResponse response = descriptor.runHttp(getId(), testUtils.getOpsAccessToken());
assertEquals(error(response.getEntity(String.class)), 307, response.getStatus());
}*/
}
@Test
public void should_return20XResponseCode_when_makingValidHttpsRequest() throws Exception {
......
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