Skip to content
Snippets Groups Projects
Commit 4f36823d authored by Krishna Nikhil Vedurumudi's avatar Krishna Nikhil Vedurumudi
Browse files

Added CRS API endpoint

parent 2d83c3db
No related branches found
No related tags found
1 merge request!261Default env variable value for schema endpoint
Pipeline #62891 failed
......@@ -119,6 +119,8 @@ spec:
value: http://legal/api/legal/v1
- name: partition_service_endpoint
value: http://partition/api/partition/v1
- name: crs_conversion_service_endpoint
value: http://crs-conversion-service/api/crs/converter/v2
- name: policy_enabled
value: "{{ .Values.policy.enabled }}"
- name: policy_service_endpoint
......
......@@ -28,6 +28,9 @@ LEGALTAG_API=${legal_service_endpoint}
PARTITION_API=${partition_service_endpoint}
azure.activedirectory.app-resource-id=${aad_client_id}
# CRS Service endpoint
CRS_API=${crs_conversion_service_endpoint}
# Azure AD configuration, commented below settings to disable AAD AuthN,
# Uncomment it In the Istio AUTHN disabled Scenario
#azure.activedirectory.client-id=${aad_client_id}
......
......@@ -105,7 +105,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.2</version>
<version>2.5</version>
<executions>
<execution>
<phase>integration-test</phase>
......@@ -124,6 +124,9 @@
</executions>
<configuration>
<trimStackTrace>false</trimStackTrace>
<systemPropertyVariables>
<buildDirectory>${project.build.directory}</buildDirectory>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
......
......@@ -16,6 +16,7 @@ package org.opengroup.osdu.storage.util;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
public class HeaderUtils {
......@@ -27,6 +28,10 @@ public class HeaderUtils {
headers.put("Data-Partition-Id", tenantName);
headers.put("Authorization", token);
final String correlationId = UUID.randomUUID().toString();
System.out.printf("Using correlation-id for the request: %s \n", correlationId);
headers.put("correlation-id", correlationId);
return 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