From a642e5e84c95b982d45a1c43ab38c0a1b83cdad3 Mon Sep 17 00:00:00 2001 From: NThakur4 <nthakur4@slb.com> Date: Wed, 5 May 2021 22:10:42 -0500 Subject: [PATCH] IT fixes --- .../org/opengroup/osdu/partition/api/UpdatePartitionTest.java | 2 +- .../org/opengroup/osdu/partition/util/BaseTestTemplate.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/partition-test-core/src/main/java/org/opengroup/osdu/partition/api/UpdatePartitionTest.java b/testing/partition-test-core/src/main/java/org/opengroup/osdu/partition/api/UpdatePartitionTest.java index 12ac8aa44..e2d27b2b5 100644 --- a/testing/partition-test-core/src/main/java/org/opengroup/osdu/partition/api/UpdatePartitionTest.java +++ b/testing/partition-test-core/src/main/java/org/opengroup/osdu/partition/api/UpdatePartitionTest.java @@ -70,7 +70,7 @@ public abstract class UpdatePartitionTest extends BaseTestTemplate { deleteResource(); assertEquals(response.getStatus(), HttpStatus.NO_CONTENT.value()); 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")); + assertEquals("access-control-allow-origin, origin, content-type, accept, authorization, data-partition-id, correlation-id, appkey", response.getHeaders().getFirst("Access-Control-Allow-Headers")); assertEquals("*", response.getHeaders().getFirst("Access-Control-Allow-Origin")); assertEquals("true", response.getHeaders().getFirst("Access-Control-Allow-Credentials")); assertEquals("default-src 'self'", response.getHeaders().getFirst("Content-Security-Policy")); diff --git a/testing/partition-test-core/src/main/java/org/opengroup/osdu/partition/util/BaseTestTemplate.java b/testing/partition-test-core/src/main/java/org/opengroup/osdu/partition/util/BaseTestTemplate.java index e02f4994f..2037431d8 100644 --- a/testing/partition-test-core/src/main/java/org/opengroup/osdu/partition/util/BaseTestTemplate.java +++ b/testing/partition-test-core/src/main/java/org/opengroup/osdu/partition/util/BaseTestTemplate.java @@ -69,7 +69,7 @@ public abstract class BaseTestTemplate extends TestBase { deleteResource(); assertEquals(error(response.getStatus() == 204 ? "" : response.getEntity(String.class)), expectedOkResponseCode(), response.getStatus()); 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")); + assertEquals("access-control-allow-origin, origin, content-type, accept, authorization, data-partition-id, correlation-id, appkey", response.getHeaders().getFirst("Access-Control-Allow-Headers")); assertEquals("*", response.getHeaders().getFirst("Access-Control-Allow-Origin")); assertEquals("true", response.getHeaders().getFirst("Access-Control-Allow-Credentials")); assertEquals("default-src 'self'", response.getHeaders().getFirst("Content-Security-Policy")); -- GitLab