Commit 2ec8d1df authored by harshit aggarwal's avatar harshit aggarwal
Browse files

changing variable name

parent f2ec493e
Pipeline #17271 failed with stages
in 59 seconds
......@@ -43,6 +43,8 @@ public class AutomationConstants {
public static final String ACL_OWNERS_GROUP_VALUE = System.getProperty("ACL_OWNERS", System.getenv("ACL_OWNERS"));
public static final String CLOUD_DOMAIN_VALUE = System.getProperty("DOMAIN", System.getenv("DOMAIN"));
public static final String LEGAL_TAGS_VALUE = System.getProperty("LEGAL_TAG", System.getenv("LEGAL_TAG"));
public static final String SCHEMA_URL = System.getProperty("HOST", System.getenv("HOST")) + "/api/schema-service/v1";
private static String getEnvironmentVariableOrDefaultValue(String key, String defaultValue) {
String environmentVariable = System.getProperty(key, System.getenv(key));
......
......@@ -801,7 +801,7 @@ public class IntegrationTestStepDefs implements En {
payload = new Gson().toJson(jsonBody);
this.context.setInputPayload(payload);
String schemaURL = System.getProperty("SCHEMA_URL", System.getenv("SCHEMA_URL")).replaceAll("/$", "");
String schemaURL = AutomationConstants.SCHEMA_URL;
HttpRequest httpRequest = HttpRequest.builder().url(schemaURL + AutomationConstants.POST_SCHEMA_ENDPOINT)
.body(jsonBody.toString()).httpMethod(HttpRequest.POST).requestHeaders(this.context.getAuthHeaders())
.build();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment