Commit 1a1b9356 authored by Anuj Gupta's avatar Anuj Gupta
Browse files

Merge branch 'ibm_int_quick_fix' into 'master'

ibm int test fix

See merge request !27
parents 9af3cc16 bc5e93d5
Pipeline #13643 passed with stages
in 13 minutes and 38 seconds
......@@ -27,7 +27,7 @@
<java.version>8</java.version>
<maven.compiler.target>${java.version}</maven.compiler.target>
<maven.compiler.source>${java.version}</maven.compiler.source>
<os-core-lib-ibm.version>0.3.6-SNAPSHOT</os-core-lib-ibm.version>
<os-core-lib-ibm.version>0.3.8-SNAPSHOT</os-core-lib-ibm.version>
</properties>
<repositories>
......
......@@ -21,17 +21,19 @@ public class IBMTestUtils extends TestUtils {
@Override
public synchronized String getAdminToken() throws Exception {
if(Strings.isNullOrEmpty(adminToken)) {
adminToken = IdentityClient.getTokenForUserWithAccess();
adminToken = IdentityClient.getTokenForUserWithAdminsAccess();
}
return adminToken;
return "Bearer " + adminToken;
}
@Override
public synchronized String getEditorToken() throws Exception {
if(Strings.isNullOrEmpty(editorToken)) {
editorToken = IdentityClient.getTokenForUserWithAccess();
editorToken = IdentityClient.getTokenForUserWithEditorsAccess();
}
return editorToken;
return "Bearer " + editorToken;
}
@Override
......@@ -39,7 +41,9 @@ public class IBMTestUtils extends TestUtils {
if(Strings.isNullOrEmpty(noAccessToken)) {
noAccessToken = IdentityClient.getTokenForUserWithNoAccess();
}
return noAccessToken;
return "Bearer " + noAccessToken;
}
}
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