Commit e545e551 authored by harshit aggarwal's avatar harshit aggarwal
Browse files

Adding comment in IntegrationTestStepDefs

parent 295ac63b
......@@ -351,6 +351,7 @@ public class IntegrationTestStepDefs implements En {
payload = new Gson().toJson(jsonBody);
this.context.setInputPayload(payload);
// Changing environment variable name to STORAGE_URL to maintain consistency in naming
// Adding regex to removing any trailing slashes in Storage host url
String storageURL = System.getProperty("STORAGE_URL", System.getenv("STORAGE_URL")).replaceAll("/$", "");
HttpRequest httpRequest = HttpRequest.builder().url(storageURL + AutomationConstants.POST_ENDPOINT)
.body(jsonBody.toString()).httpMethod(HttpRequest.PUT).requestHeaders(this.context.getAuthHeaders())
......
Markdown is supported
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