Skip to content

Commit c7eccbe

Browse files
committed
Update environment variable names
1 parent 7ea06f9 commit c7eccbe

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/test/java/com/bandwidth/ApiTest.java

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ public void init() {
6363
@Test
6464
public void testCreateMessage() throws Exception {
6565
String accountId = System.getenv("BW_ACCOUNT_ID");
66-
String to = System.getenv("PHONE_NUMBER_INBOUND");
66+
String to = System.getenv("USER_NUMBER");
6767
ArrayList<String> toNumbers = new ArrayList<String>();
6868
toNumbers.add(to);
69-
String from = System.getenv("PHONE_NUMBER_OUTBOUND");
70-
String applicationId = System.getenv("MESSAGING_APPLICATION_ID");
69+
String from = System.getenv("BW_NUMBER");
70+
String applicationId = System.getenv("BW_MESSAGING_APPLICATION_ID");
7171
String text = "Java Test";
7272

7373
MessageRequest body = new MessageRequest();
@@ -89,8 +89,8 @@ public void testCreateMessageInvalidPhoneNumber() throws Exception {
8989
String to = "+1invalid";
9090
ArrayList<String> toNumbers = new ArrayList<String>();
9191
toNumbers.add(to);
92-
String from = System.getenv("PHONE_NUMBER_OUTBOUND");
93-
String applicationId = System.getenv("MESSAGING_APPLICATION_ID");
92+
String from = System.getenv("BW_NUMBER");
93+
String applicationId = System.getenv("BW_MESSAGING_APPLICATION_ID");
9494
String text = "Java Test";
9595

9696
MessageRequest body = new MessageRequest();
@@ -125,9 +125,9 @@ public void testUploadDownloadMedia() throws Exception {
125125
@Test
126126
public void testCreateCallAndGetCallState() throws Exception {
127127
String accountId = System.getenv("BW_ACCOUNT_ID");
128-
String to = System.getenv("PHONE_NUMBER_INBOUND");
129-
String from = System.getenv("PHONE_NUMBER_OUTBOUND");
130-
String applicationId = System.getenv("VOICE_APPLICATION_ID");
128+
String to = System.getenv("USER_NUMBER");
129+
String from = System.getenv("BW_NUMBER");
130+
String applicationId = System.getenv("BW_VOICE_APPLICATION_ID");
131131
String answerUrl = System.getenv("VOICE_CALLBACK_URL");
132132

133133
CreateCallRequest body = new CreateCallRequest();
@@ -154,8 +154,8 @@ public void testCreateCallAndGetCallState() throws Exception {
154154
public void testCreateCallInvalidPhoneNumber() throws Exception {
155155
String accountId = System.getenv("BW_ACCOUNT_ID");
156156
String to = "+1invalid";
157-
String from = System.getenv("PHONE_NUMBER_OUTBOUND");
158-
String applicationId = System.getenv("VOICE_APPLICATION_ID");
157+
String from = System.getenv("BW_NUMBER");
158+
String applicationId = System.getenv("BW_VOICE_APPLICATION_ID");
159159
String answerUrl = System.getenv("VOICE_CALLBACK_URL");
160160

161161
CreateCallRequest body = new CreateCallRequest();
@@ -170,9 +170,9 @@ public void testCreateCallInvalidPhoneNumber() throws Exception {
170170
@Test
171171
public void testMfaMessaging() throws Exception {
172172
String accountId = System.getenv("BW_ACCOUNT_ID");
173-
String to = System.getenv("PHONE_NUMBER_INBOUND");
174-
String from = System.getenv("PHONE_NUMBER_MFA");
175-
String applicationId = System.getenv("MFA_MESSAGING_APPLICATION_ID");
173+
String to = System.getenv("USER_NUMBER");
174+
String from = System.getenv("BW_NUMBER");
175+
String applicationId = System.getenv("BW_MESSAGING_APPLICATION_ID");
176176
String scope = "scope";
177177
int digits = 6;
178178
String message = "Your temporary {NAME} {SCOPE} code is {CODE}";
@@ -192,9 +192,9 @@ public void testMfaMessaging() throws Exception {
192192
@Test
193193
public void testMfaVoice() throws Exception {
194194
String accountId = System.getenv("BW_ACCOUNT_ID");
195-
String to = System.getenv("PHONE_NUMBER_INBOUND");
196-
String from = System.getenv("PHONE_NUMBER_MFA");
197-
String applicationId = System.getenv("MFA_VOICE_APPLICATION_ID");
195+
String to = System.getenv("USER_NUMBER");
196+
String from = System.getenv("BW_NUMBER");
197+
String applicationId = System.getenv("BW_VOICE_APPLICATION_ID");
198198
String scope = "scope";
199199
int digits = 6;
200200
String message = "Your temporary {NAME} {SCOPE} code is {CODE}";
@@ -215,8 +215,8 @@ public void testMfaVoice() throws Exception {
215215
public void testMfaMessagingInvalidPhoneNumber() throws Exception {
216216
String accountId = System.getenv("BW_ACCOUNT_ID");
217217
String to = "+1invalid";
218-
String from = System.getenv("PHONE_NUMBER_MFA");
219-
String applicationId = System.getenv("MFA_MESSAGING_APPLICATION_ID");
218+
String from = System.getenv("BW_NUMBER");
219+
String applicationId = System.getenv("BW_MESSAGING_APPLICATION_ID");
220220
String scope = "scope";
221221
int digits = 6;
222222
String message = "Your temporary {NAME} {SCOPE} code is {CODE}";
@@ -236,8 +236,8 @@ public void testMfaMessagingInvalidPhoneNumber() throws Exception {
236236
public void testMfaVoiceInvalidPhoneNumber() throws Exception {
237237
String accountId = System.getenv("BW_ACCOUNT_ID");
238238
String to = "+1invalid";
239-
String from = System.getenv("PHONE_NUMBER_MFA");
240-
String applicationId = System.getenv("MFA_VOICE_APPLICATION_ID");
239+
String from = System.getenv("BW_NUMBER");
240+
String applicationId = System.getenv("BW_VOICE_APPLICATION_ID");
241241
String scope = "scope";
242242
int digits = 6;
243243
String message = "Your temporary {NAME} {SCOPE} code is {CODE}";
@@ -256,8 +256,8 @@ public void testMfaVoiceInvalidPhoneNumber() throws Exception {
256256
@Test
257257
public void testMfaVerify() throws Exception {
258258
String accountId = System.getenv("BW_ACCOUNT_ID");
259-
String to = System.getenv("PHONE_NUMBER_INBOUND");
260-
String applicationId = System.getenv("MFA_VOICE_APPLICATION_ID");
259+
String to = System.getenv("USER_NUMBER");
260+
String applicationId = System.getenv("BW_VOICE_APPLICATION_ID");
261261
String scope = "scope";
262262
String code = "123456";
263263
int expirationTimeInMinutes = 3;
@@ -277,7 +277,7 @@ public void testMfaVerify() throws Exception {
277277
public void testMfaVerifyInvalidPhoneNumber() throws Exception {
278278
String accountId = System.getenv("BW_ACCOUNT_ID");
279279
String to = "+1invalid";
280-
String applicationId = System.getenv("MFA_VOICE_APPLICATION_ID");
280+
String applicationId = System.getenv("BW_VOICE_APPLICATION_ID");
281281
String scope = "scope";
282282
String code = "123456";
283283
int expirationTimeInMinutes = 3;
@@ -317,7 +317,7 @@ public void testWebRtcParticipantSessionManagement() throws Exception {
317317
@Test
318318
public void testPhoneNumberLookup() throws Exception {
319319
String accountId = System.getenv("BW_ACCOUNT_ID");
320-
String checkNumber = System.getenv("PHONE_NUMBER_INBOUND");
320+
String checkNumber = System.getenv("USER_NUMBER");
321321
ArrayList<String> checkNumbers = new ArrayList<String>();
322322
checkNumbers.add(checkNumber);
323323

0 commit comments

Comments
 (0)