Commit 48969b05 authored by Komal Makkar's avatar Komal Makkar
Browse files

Renamed method

parent bbcb2e44
Pipeline #16203 failed with stage
in 3 minutes and 4 seconds
......@@ -35,7 +35,7 @@ public class AzureTestUtils extends TestUtils {
@Override
public synchronized String getAdminToken() throws Exception {
if (Strings.isNullOrEmpty(adminToken)) {
adminToken = getNoDataAccessToken();
adminToken = getNoDataAccessTesterToken();
}
return "Bearer " + adminToken;
}
......@@ -43,7 +43,7 @@ public class AzureTestUtils extends TestUtils {
@Override
public synchronized String getEditorToken() throws Exception {
if (Strings.isNullOrEmpty(editorToken)) {
editorToken = getNoDataAccessToken();
editorToken = getNoDataAccessTesterToken();
}
return "Bearer " + editorToken;
}
......@@ -51,12 +51,12 @@ public class AzureTestUtils extends TestUtils {
@Override
public synchronized String getNoAccessToken() throws Exception {
if (Strings.isNullOrEmpty(noAccessToken)) {
noAccessToken = getNoDataAccessToken();
noAccessToken = getNoDataAccessTesterToken();
}
return "Bearer " + noAccessToken;
}
private String getNoDataAccessToken() throws Exception {
private String getNoDataAccessTesterToken() throws Exception {
return getToken(System.getProperty("NO_DATA_ACCESS_TESTER", System.getenv("NO_DATA_ACCESS_TESTER")),
System.getProperty("NO_DATA_ACCESS_TESTER_SERVICEPRINCIPAL_SECRET", System.getenv("NO_DATA_ACCESS_TESTER_SERVICEPRINCIPAL_SECRET")));
}
......
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