Skip to content

Commit 1019494

Browse files
[Communication]: Removed error code assertion from unauthorized phone number test (Azure#17955)
* Updated expected error code * Removed error code assertion from unauthorized phone number test
1 parent 2701194 commit 1019494

16 files changed

+78
-80
lines changed

sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_from_phone_number.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ interactions:
1515
Content-Type:
1616
- application/json
1717
Date:
18-
- Fri, 05 Mar 2021 19:37:41 GMT
18+
- Tue, 13 Apr 2021 18:38:02 GMT
1919
User-Agent:
20-
- azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0)
20+
- azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
2121
x-ms-return-client-request-id:
2222
- 'true'
2323
method: POST
@@ -29,15 +29,15 @@ interactions:
2929
content-type:
3030
- application/json; charset=utf-8
3131
date:
32-
- Fri, 05 Mar 2021 19:37:40 GMT
32+
- Tue, 13 Apr 2021 18:38:03 GMT
3333
ms-cv:
34-
- B1peb4SWBkGyyLodTehCIQ.0
34+
- K5QlPZ6p/0qNhQ7fRebKJg.0
3535
request-context:
3636
- appId=
3737
transfer-encoding:
3838
- chunked
3939
x-processing-time:
40-
- 66ms
40+
- 11ms
4141
status:
4242
code: 400
4343
message: Bad Request

sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_to_phone_number.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ interactions:
1515
Content-Type:
1616
- application/json
1717
Date:
18-
- Fri, 05 Mar 2021 19:37:42 GMT
18+
- Tue, 13 Apr 2021 18:38:03 GMT
1919
User-Agent:
20-
- azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0)
20+
- azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
2121
x-ms-return-client-request-id:
2222
- 'true'
2323
method: POST
@@ -32,15 +32,15 @@ interactions:
3232
content-type:
3333
- application/json; charset=utf-8
3434
date:
35-
- Fri, 05 Mar 2021 19:37:41 GMT
35+
- Tue, 13 Apr 2021 18:38:03 GMT
3636
ms-cv:
37-
- tcnexSDlz0yoF5QZkqJumg.0
37+
- gw4wVjhc2U2L30f0iIDuZg.0
3838
request-context:
3939
- appId=
4040
transfer-encoding:
4141
- chunked
4242
x-processing-time:
43-
- 509ms
43+
- 316ms
4444
status:
4545
code: 202
4646
message: Accepted

sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_from_managed_identity.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interactions:
1515
Content-Type:
1616
- application/json
1717
User-Agent:
18-
- azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0)
18+
- azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
1919
method: POST
2020
uri: https://sanitized.communication.azure.com/sms?api-version=2021-03-07
2121
response:
@@ -28,15 +28,15 @@ interactions:
2828
content-type:
2929
- application/json; charset=utf-8
3030
date:
31-
- Fri, 05 Mar 2021 19:37:42 GMT
31+
- Tue, 13 Apr 2021 18:38:05 GMT
3232
ms-cv:
33-
- pQOMLyptt0COSfJpL6UUHA.0
33+
- olGG26idwE+LzaOTnK/I+w.0
3434
request-context:
3535
- appId=
3636
transfer-encoding:
3737
- chunked
3838
x-processing-time:
39-
- 761ms
39+
- 843ms
4040
status:
4141
code: 202
4242
message: Accepted

sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_multiple_with_options.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ interactions:
1616
Content-Type:
1717
- application/json
1818
Date:
19-
- Fri, 05 Mar 2021 19:37:44 GMT
19+
- Tue, 13 Apr 2021 18:38:05 GMT
2020
User-Agent:
21-
- azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0)
21+
- azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
2222
x-ms-return-client-request-id:
2323
- 'true'
2424
method: POST
@@ -35,15 +35,15 @@ interactions:
3535
content-type:
3636
- application/json; charset=utf-8
3737
date:
38-
- Fri, 05 Mar 2021 19:37:43 GMT
38+
- Tue, 13 Apr 2021 18:38:06 GMT
3939
ms-cv:
40-
- cp34G5Z9HUiBs73cc6I02A.0
40+
- ovcS8YyU6UauDrfEXMFaqQ.0
4141
request-context:
4242
- appId=
4343
transfer-encoding:
4444
- chunked
4545
x-processing-time:
46-
- 856ms
46+
- 629ms
4747
status:
4848
code: 202
4949
message: Accepted

sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_single.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ interactions:
1515
Content-Type:
1616
- application/json
1717
Date:
18-
- Fri, 05 Mar 2021 19:37:45 GMT
18+
- Tue, 13 Apr 2021 18:38:06 GMT
1919
User-Agent:
20-
- azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0)
20+
- azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
2121
x-ms-return-client-request-id:
2222
- 'true'
2323
method: POST
@@ -32,15 +32,15 @@ interactions:
3232
content-type:
3333
- application/json; charset=utf-8
3434
date:
35-
- Fri, 05 Mar 2021 19:37:45 GMT
35+
- Tue, 13 Apr 2021 18:38:07 GMT
3636
ms-cv:
37-
- FtedoPGlX0erQ8KTINWxsw.0
37+
- lf9zHoiaa06EpPwt/ZkcGg.0
3838
request-context:
3939
- appId=
4040
transfer-encoding:
4141
- chunked
4242
x-processing-time:
43-
- 613ms
43+
- 539ms
4444
status:
4545
code: 202
4646
message: Accepted

sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unauthorized_from_phone_number.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ interactions:
1515
Content-Type:
1616
- application/json
1717
Date:
18-
- Fri, 05 Mar 2021 19:37:46 GMT
18+
- Tue, 13 Apr 2021 18:38:07 GMT
1919
User-Agent:
20-
- azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0)
20+
- azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
2121
x-ms-return-client-request-id:
2222
- 'true'
2323
method: POST
@@ -31,13 +31,13 @@ interactions:
3131
content-length:
3232
- '0'
3333
date:
34-
- Fri, 05 Mar 2021 19:37:45 GMT
34+
- Tue, 13 Apr 2021 18:38:07 GMT
3535
ms-cv:
36-
- RtlQyDjBIECesyWgMgF3kA.0
36+
- K2Dj4s4VfUSSX85g/GLf7Q.0
3737
request-context:
3838
- appId=
3939
x-processing-time:
40-
- 451ms
40+
- 429ms
4141
status:
4242
code: 404
4343
message: Not Found

sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unique_message_ids.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ interactions:
1515
Content-Type:
1616
- application/json
1717
Date:
18-
- Fri, 05 Mar 2021 19:37:47 GMT
18+
- Tue, 13 Apr 2021 18:38:07 GMT
1919
User-Agent:
20-
- azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0)
20+
- azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
2121
x-ms-return-client-request-id:
2222
- 'true'
2323
method: POST
@@ -32,15 +32,15 @@ interactions:
3232
content-type:
3333
- application/json; charset=utf-8
3434
date:
35-
- Fri, 05 Mar 2021 19:37:46 GMT
35+
- Tue, 13 Apr 2021 18:38:08 GMT
3636
ms-cv:
37-
- DUSFMGFqaUqlOhACHICxeA.0
37+
- NaeHfjm8vEa2kzQRYtt98w.0
3838
request-context:
3939
- appId=
4040
transfer-encoding:
4141
- chunked
4242
x-processing-time:
43-
- 472ms
43+
- 545ms
4444
status:
4545
code: 202
4646
message: Accepted
@@ -60,9 +60,9 @@ interactions:
6060
Content-Type:
6161
- application/json
6262
Date:
63-
- Fri, 05 Mar 2021 19:37:47 GMT
63+
- Tue, 13 Apr 2021 18:38:08 GMT
6464
User-Agent:
65-
- azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0)
65+
- azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
6666
x-ms-return-client-request-id:
6767
- 'true'
6868
method: POST
@@ -77,15 +77,15 @@ interactions:
7777
content-type:
7878
- application/json; charset=utf-8
7979
date:
80-
- Fri, 05 Mar 2021 19:37:46 GMT
80+
- Tue, 13 Apr 2021 18:38:08 GMT
8181
ms-cv:
82-
- a4HG1QiWf0u07hIJSeUs2w.0
82+
- S/65ens12keVDGV4IohU4g.0
8383
request-context:
8484
- appId=
8585
transfer-encoding:
8686
- chunked
8787
x-processing-time:
88-
- 520ms
88+
- 557ms
8989
status:
9090
code: 202
9191
message: Accepted

sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_from_phone_number_async.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ interactions:
1111
Content-Type:
1212
- application/json
1313
Date:
14-
- Fri, 05 Mar 2021 19:37:48 GMT
14+
- Tue, 13 Apr 2021 18:38:09 GMT
1515
User-Agent:
16-
- azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0)
16+
- azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
1717
x-ms-return-client-request-id:
1818
- 'true'
1919
method: POST
@@ -23,11 +23,11 @@ interactions:
2323
string: '{"From": ["Invalid From phone number format"]}'
2424
headers:
2525
content-type: application/json; charset=utf-8
26-
date: Fri, 05 Mar 2021 19:37:47 GMT
27-
ms-cv: X3+7Z5l3CkuQo9Appa1aAA.0
26+
date: Tue, 13 Apr 2021 18:38:09 GMT
27+
ms-cv: QucM3d0xPEu+KcFVDrOwOw.0
2828
request-context: appId=
2929
transfer-encoding: chunked
30-
x-processing-time: 13ms
30+
x-processing-time: 11ms
3131
status:
3232
code: 400
3333
message: Bad Request

sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_to_phone_number_async.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ interactions:
1111
Content-Type:
1212
- application/json
1313
Date:
14-
- Fri, 05 Mar 2021 19:37:48 GMT
14+
- Tue, 13 Apr 2021 18:38:09 GMT
1515
User-Agent:
16-
- azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0)
16+
- azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
1717
x-ms-return-client-request-id:
1818
- 'true'
1919
method: POST
@@ -25,11 +25,11 @@ interactions:
2525
headers:
2626
api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07
2727
content-type: application/json; charset=utf-8
28-
date: Fri, 05 Mar 2021 19:37:47 GMT
29-
ms-cv: xqMpm6pOFU+3jP9DpCx5uw.0
28+
date: Tue, 13 Apr 2021 18:38:10 GMT
29+
ms-cv: XiBqPF17n0uN6sU/BdaG8A.0
3030
request-context: appId=
3131
transfer-encoding: chunked
32-
x-processing-time: 279ms
32+
x-processing-time: 403ms
3333
status:
3434
code: 202
3535
message: Accepted

sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_from_managed_identity_async.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interactions:
1111
Content-Type:
1212
- application/json
1313
User-Agent:
14-
- azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0)
14+
- azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)
1515
method: POST
1616
uri: https://sanitized.communication.azure.com/sms?api-version=2021-03-07
1717
response:
@@ -21,11 +21,11 @@ interactions:
2121
headers:
2222
api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07
2323
content-type: application/json; charset=utf-8
24-
date: Fri, 05 Mar 2021 19:37:49 GMT
25-
ms-cv: QyWWVYlSG0KPRPl9fcp32A.0
24+
date: Tue, 13 Apr 2021 18:38:13 GMT
25+
ms-cv: KUAqE6zPEkWUxs7nDfgQRQ.0
2626
request-context: appId=
2727
transfer-encoding: chunked
28-
x-processing-time: 654ms
28+
x-processing-time: 423ms
2929
status:
3030
code: 202
3131
message: Accepted

0 commit comments

Comments
 (0)