Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,8 @@ public void sendFromUnauthorizedNumber(HttpClient httpClient) {
// Action & Assert
Mono<SmsSendResult> response = asyncClient.send("+18007342577", TO_PHONE_NUMBER, MESSAGE);
StepVerifier.create(response)
.expectError().verify();
// TODO: re-enable this when service change is made
//.expectErrorMatches(exception ->
// ((HttpResponseException) exception).getResponse().getStatusCode() == 401).verify();
.expectErrorMatches(exception ->
((HttpResponseException) exception).getResponse().getStatusCode() == 401).verify();
}

@ParameterizedTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ public void sendFromUnauthorizedNumber(HttpClient httpClient) {
SmsSendResult response = client.send("+18007342577", TO_PHONE_NUMBER, MESSAGE);
} catch (Exception exception) {
assertNotNull(((HttpResponseException) exception).getResponse().getStatusCode());
// TODO: re-enable this when service change is made
//assertEquals(401, ((HttpResponseException) exception).getResponse().getStatusCode());
assertEquals(401, ((HttpResponseException) exception).getResponse().getStatusCode());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
"Method" : "POST",
"Uri" : "https://REDACTED.communication.azure.com/sms?api-version=2021-03-07",
"Headers" : {
"User-Agent" : "azsdk-java-azure-communication-sms/1.0.0-beta.5 (11.0.8; Windows 10; 10.0)",
"User-Agent" : "azsdk-java-azure-communication-sms/1.0.1 (15.0.1; Windows 10; 10.0)",
"Content-Type" : "application/json"
},
"Response" : {
"content-length" : "0",
"api-supported-versions" : "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07",
"X-Processing-Time" : "276ms",
"MS-CV" : "02V0pMyhYEqt9Ppq6IsUzg.0",
"X-Processing-Time" : "420ms",
"MS-CV" : "MF1HkLIYBEeDxppDAHatnQ.0",
"retry-after" : "0",
"X-Azure-Ref" : "0FX5CYAAAAAD59GhqbPjwSYIPbDxPd0ORWVZSMzBFREdFMDQwOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=",
"Content-Length" : "0",
"StatusCode" : "404",
"Date" : "Fri, 05 Mar 2021 18:53:10 GMT",
"X-Azure-Ref" : "0jiKDYAAAAACgf/mlrIJUQrgSthlobIR6TEFYRURHRTEyMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx",
"StatusCode" : "401",
"Date" : "Fri, 23 Apr 2021 19:39:58 GMT",
"Request-Context" : "appId="
},
"Exception" : null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
"Method" : "POST",
"Uri" : "https://REDACTED.communication.azure.com/sms?api-version=2021-03-07",
"Headers" : {
"User-Agent" : "azsdk-java-azure-communication-sms/1.0.0-beta.5 (11.0.8; Windows 10; 10.0)",
"User-Agent" : "azsdk-java-azure-communication-sms/1.0.1 (15.0.1; Windows 10; 10.0)",
"Content-Type" : "application/json"
},
"Response" : {
"content-length" : "0",
"api-supported-versions" : "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07",
"X-Processing-Time" : "279ms",
"MS-CV" : "y0RQshIEZ0eA/g8YUeD8NA.0",
"X-Processing-Time" : "488ms",
"MS-CV" : "x/jt7fsoXESjpWKGCbETWA.0",
"retry-after" : "0",
"X-Azure-Ref" : "0c35CYAAAAABHcM9dqJCESLz3NefWeYBnWVZSMzBFREdFMDQxNQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=",
"Content-Length" : "0",
"StatusCode" : "404",
"Date" : "Fri, 05 Mar 2021 18:54:42 GMT",
"X-Azure-Ref" : "0KyKDYAAAAADxdvccxwkeSrdhXYtsDPjNTEFYRURHRTEyMTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx",
"StatusCode" : "401",
"Date" : "Fri, 23 Apr 2021 19:38:19 GMT",
"Request-Context" : "appId="
},
"Exception" : null
Expand Down