Skip to content
Snippets Groups Projects
Commit 46b5bae0 authored by Alok Joshi's avatar Alok Joshi
Browse files

change config

parent 7f59f6e4
No related branches found
No related tags found
4 merge requests!760Vulnerability fixes,!745Draft: M18 Upgraded packages to mitigate vulns in netty, guava, snakeyaml,!744Upgraded packages to mitigated vulns in netty, guava, snakeyaml,!639Extend patch API to support data block modification
Pipeline #175906 failed
......@@ -21,10 +21,10 @@ public class AzureTestUtils extends TestUtils {
@Override
public synchronized String getToken() throws Exception {
if (Strings.isNullOrEmpty(token)) {
String sp_id = "53f0e474-22a1-4144-8511-af8096809920";
String sp_secret = "FyX7Q~z2I1KsSjTqpfR0U_bpuOnVF~JJaN16u";
String tenant_id = "214a5305-e9b5-4cc4-9771-ed13e9b53f8f";
String app_resource_id = "f78b3f23-a412-4696-b0c3-c198df8c235d";
String sp_id = System.getProperty("INTEGRATION_TESTER", System.getenv("INTEGRATION_TESTER"));
String sp_secret = System.getProperty("TESTER_SERVICEPRINCIPAL_SECRET", System.getenv("TESTER_SERVICEPRINCIPAL_SECRET"));
String tenant_id = System.getProperty("AZURE_AD_TENANT_ID", System.getenv("AZURE_AD_TENANT_ID"));
String app_resource_id = System.getProperty("AZURE_AD_APP_RESOURCE_ID", System.getenv("AZURE_AD_APP_RESOURCE_ID"));
token = AzureServicePrincipal.getIdToken(sp_id, sp_secret, tenant_id, app_resource_id);
}
return "Bearer " + token;
......@@ -33,10 +33,10 @@ public class AzureTestUtils extends TestUtils {
@Override
public synchronized String getNoDataAccessToken() throws Exception {
if (Strings.isNullOrEmpty(noDataAccesstoken)) {
String sp_id = "3b456202-fb8b-4ac6-88f6-9aa057a24cda";
String sp_secret = "oqG7Q~UpBBEDbdY0hXhS-Y-a.tN3S8l3RsvZf";
String tenant_id = "214a5305-e9b5-4cc4-9771-ed13e9b53f8f";
String app_resource_id = "f78b3f23-a412-4696-b0c3-c198df8c235d";
String sp_id = System.getProperty("NO_DATA_ACCESS_TESTER", System.getenv("NO_DATA_ACCESS_TESTER"));
String sp_secret = System.getProperty("NO_DATA_ACCESS_TESTER_SERVICEPRINCIPAL_SECRET", System.getenv("NO_DATA_ACCESS_TESTER_SERVICEPRINCIPAL_SECRET"));
String tenant_id = System.getProperty("AZURE_AD_TENANT_ID", System.getenv("AZURE_AD_TENANT_ID"));
String app_resource_id = System.getProperty("AZURE_AD_APP_RESOURCE_ID", System.getenv("AZURE_AD_APP_RESOURCE_ID"));
noDataAccesstoken = AzureServicePrincipal.getIdToken(sp_id, sp_secret, tenant_id, app_resource_id);
}
return "Bearer " + noDataAccesstoken;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment