Skip to content
Snippets Groups Projects
Commit 69fe2b54 authored by ethiraj krishnamanaidu's avatar ethiraj krishnamanaidu
Browse files

Merge branch 'update-tests' into 'master'

Update version of os-core-common and fix broken integration tests

See merge request !10
parents b44aa419 75e577c8
No related branches found
No related tags found
1 merge request!10Update version of os-core-common and fix broken integration tests
Pipeline #4968 failed
......@@ -54,7 +54,7 @@
<dependency>
<groupId>org.opengroup.osdu</groupId>
<artifactId>os-core-common</artifactId>
<version>0.0.20</version>
<version>0.3.6</version>
</dependency>
</dependencies>
</dependencyManagement>
......
......@@ -80,7 +80,6 @@
<dependency>
<groupId>org.opengroup.osdu</groupId>
<artifactId>os-core-common</artifactId>
<version>0.3.4</version>
</dependency>
<dependency>
<groupId>org.opengroup.osdu</groupId>
......
......@@ -51,7 +51,7 @@ public abstract class BaseTestTemplate extends TestBase {
@Test
public void should_return401_when_noAccessOnCustomerTenantOps() throws Exception {
ClientResponse response = descriptor.runOnCustomerTenant(getId(), testUtils.getOpsAccessToken());
ClientResponse response = descriptor.runOnCustomerTenant(getId(), testUtils.getOpsAccessToken());
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
......@@ -83,9 +83,7 @@ public abstract class BaseTestTemplate extends TestBase {
ClientResponse response = descriptor.run(getId(), token);
deleteResource();
// TODO: there is bug to fix this
// assertEquals("GET, POST, PUT, DELETE, OPTIONS, HEAD, PATCH", response.getHeaders().getFirst("Access-Control-Allow-Methods"));
assertEquals("[GET, POST, PUT, DELETE, OPTIONS, HEAD]", response.getHeaders().getFirst("Access-Control-Allow-Methods"));
assertEquals("GET, POST, PUT, DELETE, OPTIONS, HEAD, PATCH", response.getHeaders().getFirst("Access-Control-Allow-Methods"));
assertEquals("[origin, content-type, accept, authorization, data-partition-id, correlation-id, appkey]", response.getHeaders().getFirst("Access-Control-Allow-Headers"));
......
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