Skip to content

Commit da8a337

Browse files
author
rathnapandi
committed
- fix oadmin issue
1 parent fa24c07 commit da8a337

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎modules/apis/src/test/java/com/axway/apim/test/CoreInitializationTestIT.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ public void beforeSuite(TestRunner testRunner) {
180180
.header("Content-Type", "application/x-www-form-urlencoded")
181181
.payload("newPassword="+DEFAULT_PASSWORD));
182182
testRunner.http(action -> action.client(apiManager).receive().response(HttpStatus.NO_CONTENT));
183-
format = orgAdminUsername + ":" + DEFAULT_PASSWORD;
184-
authorizationHeaderValue = "Basic " + Base64.getEncoder().encodeToString(format.getBytes());
185-
postRequest(url + "/currentuser/changepassword", authorizationHeaderValue, orgAdminPassword);
183+
String orgAdminformat = orgAdminUsername + ":" + DEFAULT_PASSWORD;
184+
String orgAdminAuthorizationHeaderValue = "Basic " + Base64.getEncoder().encodeToString(orgAdminformat.getBytes());
185+
postRequest(url + "/currentuser/changepassword", orgAdminAuthorizationHeaderValue, orgAdminPassword);
186186
}
187187
String appName = (String) globalVariables.getVariables().get("testAppName");
188188
response = getRequest(url + "/applications?field=name&op=eq&value=" + appName, authorizationHeaderValue);

0 commit comments

Comments
 (0)