Skip to content

Commit e707b48

Browse files
authored
homogenize env variable names (Azure#18667)
1 parent eb04c0f commit e707b48

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

sdk/communication/azure-communication-administration/src/test/java/com/azure/communication/administration/CommunicationIdentityClientTestBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
public class CommunicationIdentityClientTestBase extends TestBase {
2222
protected static final TestMode TEST_MODE = initializeTestMode();
2323
protected static final String ENDPOINT = Configuration.getGlobalConfiguration()
24-
.get("ADMINISTRATION_SERVICE_ENDPOINT", "https://REDACTED.communication.azure.com");
24+
.get("COMMUNICATION_SERVICE_ENDPOINT", "https://REDACTED.communication.azure.com");
2525

2626
protected static final String ACCESSKEYRAW = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c";
2727
protected static final String ACCESSKEYENCODED = Base64.getEncoder().encodeToString(ACCESSKEYRAW.getBytes());
2828
protected static final String ACCESSKEY = Configuration.getGlobalConfiguration()
29-
.get("ADMINISTRATION_SERVICE_ACCESS_TOKEN", ACCESSKEYENCODED);
29+
.get("COMMUNICATION_SERVICE_ACCESS_KEY", ACCESSKEYENCODED);
3030

3131
protected static final String CONNECTION_STRING = Configuration.getGlobalConfiguration()
3232
.get("COMMUNICATION_CONNECTION_STRING", "endpoint=https://REDACTED.communication.azure.com/;accesskey=" + ACCESSKEYENCODED);

sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/ChatClientTestBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ public class ChatClientTestBase extends TestBase {
3535
protected static final TestMode TEST_MODE = initializeTestMode();
3636

3737
protected static final String ENDPOINT = Configuration.getGlobalConfiguration()
38-
.get("CHAT_SERVICE_ENDPOINT", "https://playback.chat.azurefd.net");
38+
.get("COMMUNICATION_SERVICE_ENDPOINT", "https://playback.chat.azurefd.net");
3939

4040
protected static final String ACCESS_KEY = Configuration.getGlobalConfiguration()
41-
.get("COMMUNICATION_SERVICES_ACCESS_KEY", "pw==");
41+
.get("COMMUNICATION_SERVICE_ACCESS_KEY", "pw==");
4242

4343
protected ChatClientBuilder getChatClientBuilder(String token, HttpClient httpClient) {
4444
ChatClientBuilder builder = new ChatClientBuilder();

sdk/communication/azure-communication-sms/src/test/java/com/azure/communication/sms/SmsLiveTestBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ public class SmsLiveTestBase extends TestBase {
2424
.get("SMS_SERVICE_PHONE_NUMBER", "+18005555555");
2525

2626
static final String ACCESSKEY = Configuration.getGlobalConfiguration()
27-
.get("SMS_SERVICE_ACCESS_KEY", DEFAULT_ACCESS_KEY);
27+
.get("COMMUNICATION_SERVICE_ACCESS_KEY", DEFAULT_ACCESS_KEY);
2828

2929
static final String ENDPOINT = Configuration.getGlobalConfiguration()
30-
.get("SMS_SERVICE_ENDPOINT", "https://REDACTED.communication.azure.com");
30+
.get("COMMUNICATION_SERVICE_ENDPOINT", "https://REDACTED.communication.azure.com");
3131

3232
static final String CONNECTION_STRING = Configuration.getGlobalConfiguration()
3333
.get("COMMUNICATION_LIVETEST_CONNECTION_STRING", "endpoint=https://REDACTED.communication.azure.com/;accesskey=VGhpcyBpcyBhIHRlc3Q=");

0 commit comments

Comments
 (0)