From 63df5bbace46571aa28761c013e83b3e973cca13 Mon Sep 17 00:00:00 2001 From: Lakshman Sundaralingam Date: Fri, 9 Apr 2021 18:25:30 -0700 Subject: [PATCH 1/2] Updated expected error code --- ....test_send_sms_fake_from_phone_number.yaml | 10 +++++----- ...2e.test_send_sms_fake_to_phone_number.yaml | 10 +++++----- ...e.test_send_sms_from_managed_identity.yaml | 8 ++++---- ...e.test_send_sms_multiple_with_options.yaml | 10 +++++----- ...t_sms_client_e2e.test_send_sms_single.yaml | 10 +++++----- ...nd_sms_unauthorized_from_phone_number.yaml | 14 ++++++------- ..._e2e.test_send_sms_unique_message_ids.yaml | 20 +++++++++---------- ...send_sms_fake_from_phone_number_async.yaml | 10 +++++----- ...t_send_sms_fake_to_phone_number_async.yaml | 10 +++++----- ..._send_sms_from_managed_identity_async.yaml | 8 ++++---- ..._send_sms_multiple_with_options_async.yaml | 10 +++++----- ..._e2e_async.test_send_sms_single_async.yaml | 10 +++++----- ..._unauthorized_from_phone_number_async.yaml | 14 ++++++------- ...est_send_sms_unique_message_ids_async.yaml | 20 +++++++++---------- .../tests/test_sms_client_e2e.py | 2 +- .../tests/test_sms_client_e2e_async.py | 2 +- 16 files changed, 84 insertions(+), 84 deletions(-) diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_from_phone_number.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_from_phone_number.yaml index 01a9afd57e4a..4d463da48b9f 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_from_phone_number.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_from_phone_number.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Mar 2021 19:37:41 GMT + - Sat, 10 Apr 2021 01:23:12 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -29,15 +29,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Mar 2021 19:37:40 GMT + - Sat, 10 Apr 2021 01:23:07 GMT ms-cv: - - B1peb4SWBkGyyLodTehCIQ.0 + - ypbzSdtTnEeTR08WVOho1Q.0 request-context: - appId= transfer-encoding: - chunked x-processing-time: - - 66ms + - 28ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_to_phone_number.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_to_phone_number.yaml index befb11b62b6c..95092e8487ed 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_to_phone_number.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_to_phone_number.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Mar 2021 19:37:42 GMT + - Sat, 10 Apr 2021 01:23:13 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -32,15 +32,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Mar 2021 19:37:41 GMT + - Sat, 10 Apr 2021 01:23:08 GMT ms-cv: - - tcnexSDlz0yoF5QZkqJumg.0 + - FDWwNA5NmUGCTFetGHRW4A.0 request-context: - appId= transfer-encoding: - chunked x-processing-time: - - 509ms + - 274ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_from_managed_identity.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_from_managed_identity.yaml index e1fb37211bff..00e9483c1f2c 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_from_managed_identity.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/sms?api-version=2021-03-07 response: @@ -28,15 +28,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Mar 2021 19:37:42 GMT + - Sat, 10 Apr 2021 01:23:09 GMT ms-cv: - - pQOMLyptt0COSfJpL6UUHA.0 + - ZOtg8aYVVEOfAM+GVYYctg.0 request-context: - appId= transfer-encoding: - chunked x-processing-time: - - 761ms + - 1187ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_multiple_with_options.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_multiple_with_options.yaml index 0e2375834e1a..ef28049af6ac 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_multiple_with_options.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_multiple_with_options.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Mar 2021 19:37:44 GMT + - Sat, 10 Apr 2021 01:23:16 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -35,15 +35,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Mar 2021 19:37:43 GMT + - Sat, 10 Apr 2021 01:23:11 GMT ms-cv: - - cp34G5Z9HUiBs73cc6I02A.0 + - OLBhn44OzkG9va+B5A8sZg.0 request-context: - appId= transfer-encoding: - chunked x-processing-time: - - 856ms + - 1099ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_single.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_single.yaml index 34dc3986833b..f86cd312e810 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_single.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_single.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Mar 2021 19:37:45 GMT + - Sat, 10 Apr 2021 01:23:17 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -32,15 +32,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Mar 2021 19:37:45 GMT + - Sat, 10 Apr 2021 01:23:13 GMT ms-cv: - - FtedoPGlX0erQ8KTINWxsw.0 + - ss0KRpBKPUW0abc44FmPvw.0 request-context: - appId= transfer-encoding: - chunked x-processing-time: - - 613ms + - 1154ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unauthorized_from_phone_number.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unauthorized_from_phone_number.yaml index 5339dd0954e8..e97be83c61c0 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unauthorized_from_phone_number.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unauthorized_from_phone_number.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Mar 2021 19:37:46 GMT + - Sat, 10 Apr 2021 01:23:19 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -31,14 +31,14 @@ interactions: content-length: - '0' date: - - Fri, 05 Mar 2021 19:37:45 GMT + - Sat, 10 Apr 2021 01:23:13 GMT ms-cv: - - RtlQyDjBIECesyWgMgF3kA.0 + - qyDwOXurBE+K+rkBObWtXQ.0 request-context: - appId= x-processing-time: - - 451ms + - 419ms status: - code: 404 - message: Not Found + code: 401 + message: Unauthorized version: 1 diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unique_message_ids.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unique_message_ids.yaml index ba9e54e79c81..2277a25b77ca 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unique_message_ids.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unique_message_ids.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Mar 2021 19:37:47 GMT + - Sat, 10 Apr 2021 01:23:19 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -32,15 +32,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Mar 2021 19:37:46 GMT + - Sat, 10 Apr 2021 01:23:15 GMT ms-cv: - - DUSFMGFqaUqlOhACHICxeA.0 + - 0Ev69SAHYka4CT0iQNNl1A.0 request-context: - appId= transfer-encoding: - chunked x-processing-time: - - 472ms + - 591ms status: code: 202 message: Accepted @@ -60,9 +60,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Mar 2021 19:37:47 GMT + - Sat, 10 Apr 2021 01:23:20 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -77,15 +77,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 05 Mar 2021 19:37:46 GMT + - Sat, 10 Apr 2021 01:23:15 GMT ms-cv: - - a4HG1QiWf0u07hIJSeUs2w.0 + - OjVTVg7K4k23YRaesFlyYA.0 request-context: - appId= transfer-encoding: - chunked x-processing-time: - - 520ms + - 601ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_from_phone_number_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_from_phone_number_async.yaml index 152fc986eec7..8fc31ce98ba4 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_from_phone_number_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_from_phone_number_async.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Mar 2021 19:37:48 GMT + - Sat, 10 Apr 2021 01:23:21 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -23,11 +23,11 @@ interactions: string: '{"From": ["Invalid From phone number format"]}' headers: content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 19:37:47 GMT - ms-cv: X3+7Z5l3CkuQo9Appa1aAA.0 + date: Sat, 10 Apr 2021 01:23:15 GMT + ms-cv: 5kzGnhl8gUCFZriHitaEIg.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 13ms + x-processing-time: 31ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_to_phone_number_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_to_phone_number_async.yaml index d29821bc5dfd..fca4e5512228 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_to_phone_number_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_to_phone_number_async.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Mar 2021 19:37:48 GMT + - Sat, 10 Apr 2021 01:23:21 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -25,11 +25,11 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 19:37:47 GMT - ms-cv: xqMpm6pOFU+3jP9DpCx5uw.0 + date: Sat, 10 Apr 2021 01:23:16 GMT + ms-cv: IcKiMTowhUaSiaVY1iHXGg.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 279ms + x-processing-time: 494ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_from_managed_identity_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_from_managed_identity_async.yaml index 29f9b11ea41b..47eabcf51dde 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_from_managed_identity_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_from_managed_identity_async.yaml @@ -11,7 +11,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/sms?api-version=2021-03-07 response: @@ -21,11 +21,11 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 19:37:49 GMT - ms-cv: QyWWVYlSG0KPRPl9fcp32A.0 + date: Sat, 10 Apr 2021 01:23:18 GMT + ms-cv: gP02rDsddkuFItDAL8Ym+g.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 654ms + x-processing-time: 627ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_multiple_with_options_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_multiple_with_options_async.yaml index b90f4cc8f0bf..20a4365563d3 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_multiple_with_options_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_multiple_with_options_async.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Mar 2021 19:37:50 GMT + - Sat, 10 Apr 2021 01:23:24 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -28,11 +28,11 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 19:37:49 GMT - ms-cv: xW88NCGOnEqlhojCCdma4A.0 + date: Sat, 10 Apr 2021 01:23:19 GMT + ms-cv: o+amvLH2fEaxImoSh9mLhQ.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 520ms + x-processing-time: 898ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_single_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_single_async.yaml index 1e102b6e8501..4169d2722823 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_single_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_single_async.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Mar 2021 19:37:51 GMT + - Sat, 10 Apr 2021 01:23:25 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -25,11 +25,11 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 19:37:51 GMT - ms-cv: y/mtKUmYwESAo3wmzBI5gg.0 + date: Sat, 10 Apr 2021 01:23:20 GMT + ms-cv: RSh72Q3qDUebfsuYCi1tkA.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 786ms + x-processing-time: 789ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unauthorized_from_phone_number_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unauthorized_from_phone_number_async.yaml index fd10672d4fcd..e97e19c78dc9 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unauthorized_from_phone_number_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unauthorized_from_phone_number_async.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Mar 2021 19:37:52 GMT + - Sat, 10 Apr 2021 01:23:26 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -24,12 +24,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-length: '0' - date: Fri, 05 Mar 2021 19:37:51 GMT - ms-cv: LQh/OoGhJkyXAehxcLm7xA.0 + date: Sat, 10 Apr 2021 01:23:20 GMT + ms-cv: 3EEp8O7Gc0aNfvwjBNInkA.0 request-context: appId= - x-processing-time: 282ms + x-processing-time: 427ms status: - code: 404 - message: Not Found + code: 401 + message: Unauthorized url: https://sanitized.communication.azure.com/sms?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unique_message_ids_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unique_message_ids_async.yaml index 71e058d41ae4..dfe54a8b33f0 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unique_message_ids_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unique_message_ids_async.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Mar 2021 19:37:52 GMT + - Sat, 10 Apr 2021 01:23:26 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -25,11 +25,11 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 19:37:51 GMT - ms-cv: OT6tCGA4pUC/wNDAMoE3Hg.0 + date: Sat, 10 Apr 2021 01:23:21 GMT + ms-cv: LRtMaHncekOmC9gKKiPaxg.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 476ms + x-processing-time: 509ms status: code: 202 message: Accepted @@ -46,9 +46,9 @@ interactions: Content-Type: - application/json Date: - - Fri, 05 Mar 2021 19:37:53 GMT + - Sat, 10 Apr 2021 01:23:27 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -60,11 +60,11 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 19:37:52 GMT - ms-cv: XbLWEgZA+UmfKXEe9RDtBw.0 + date: Sat, 10 Apr 2021 01:23:21 GMT + ms-cv: U4nCh8H6GkGQ9vYhlJw3dQ.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 514ms + x-processing-time: 523ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e.py b/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e.py index e17efb7b0407..e0fcfbbc1159 100644 --- a/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e.py +++ b/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e.py @@ -133,7 +133,7 @@ def test_send_sms_unauthorized_from_phone_number(self): to=[self.phone_number], message="Hello World via SMS") - assert str(ex.value.status_code) == "404" + assert str(ex.value.status_code) == "401" assert ex.value.message is not None @pytest.mark.live_test_only diff --git a/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e_async.py b/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e_async.py index a4af5de514ca..89930eb34581 100644 --- a/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e_async.py +++ b/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e_async.py @@ -144,7 +144,7 @@ async def test_send_sms_unauthorized_from_phone_number_async(self): to=[self.phone_number], message="Hello World via SMS") - assert str(ex.value.status_code) == "404" + assert str(ex.value.status_code) == "401" assert ex.value.message is not None @AsyncCommunicationTestCase.await_prepared_test From 1fed63deec46bd46979e7e77cd7a36928d82edee Mon Sep 17 00:00:00 2001 From: Lakshman Sundaralingam Date: Tue, 13 Apr 2021 11:39:31 -0700 Subject: [PATCH 2/2] Removed error code assertion from unauthorized phone number test --- ...e2e.test_send_sms_fake_from_phone_number.yaml | 8 ++++---- ...t_e2e.test_send_sms_fake_to_phone_number.yaml | 8 ++++---- ..._e2e.test_send_sms_from_managed_identity.yaml | 6 +++--- ..._e2e.test_send_sms_multiple_with_options.yaml | 8 ++++---- ...test_sms_client_e2e.test_send_sms_single.yaml | 8 ++++---- ..._send_sms_unauthorized_from_phone_number.yaml | 12 ++++++------ ...ent_e2e.test_send_sms_unique_message_ids.yaml | 16 ++++++++-------- ...st_send_sms_fake_from_phone_number_async.yaml | 8 ++++---- ...test_send_sms_fake_to_phone_number_async.yaml | 8 ++++---- ...est_send_sms_from_managed_identity_async.yaml | 6 +++--- ...est_send_sms_multiple_with_options_async.yaml | 8 ++++---- ...ent_e2e_async.test_send_sms_single_async.yaml | 8 ++++---- ...sms_unauthorized_from_phone_number_async.yaml | 12 ++++++------ ...c.test_send_sms_unique_message_ids_async.yaml | 16 ++++++++-------- .../tests/test_sms_client_e2e.py | 1 - .../tests/test_sms_client_e2e_async.py | 1 - 16 files changed, 66 insertions(+), 68 deletions(-) diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_from_phone_number.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_from_phone_number.yaml index 4d463da48b9f..b329522d9fe1 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_from_phone_number.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_from_phone_number.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json Date: - - Sat, 10 Apr 2021 01:23:12 GMT + - Tue, 13 Apr 2021 18:38:02 GMT User-Agent: - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -29,15 +29,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Apr 2021 01:23:07 GMT + - Tue, 13 Apr 2021 18:38:03 GMT ms-cv: - - ypbzSdtTnEeTR08WVOho1Q.0 + - K5QlPZ6p/0qNhQ7fRebKJg.0 request-context: - appId= transfer-encoding: - chunked x-processing-time: - - 28ms + - 11ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_to_phone_number.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_to_phone_number.yaml index 95092e8487ed..1b552a76f2a8 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_to_phone_number.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_to_phone_number.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json Date: - - Sat, 10 Apr 2021 01:23:13 GMT + - Tue, 13 Apr 2021 18:38:03 GMT User-Agent: - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -32,15 +32,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Apr 2021 01:23:08 GMT + - Tue, 13 Apr 2021 18:38:03 GMT ms-cv: - - FDWwNA5NmUGCTFetGHRW4A.0 + - gw4wVjhc2U2L30f0iIDuZg.0 request-context: - appId= transfer-encoding: - chunked x-processing-time: - - 274ms + - 316ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_from_managed_identity.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_from_managed_identity.yaml index 00e9483c1f2c..0aceff61bf54 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_from_managed_identity.yaml @@ -28,15 +28,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Apr 2021 01:23:09 GMT + - Tue, 13 Apr 2021 18:38:05 GMT ms-cv: - - ZOtg8aYVVEOfAM+GVYYctg.0 + - olGG26idwE+LzaOTnK/I+w.0 request-context: - appId= transfer-encoding: - chunked x-processing-time: - - 1187ms + - 843ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_multiple_with_options.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_multiple_with_options.yaml index ef28049af6ac..80d3c413c085 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_multiple_with_options.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_multiple_with_options.yaml @@ -16,7 +16,7 @@ interactions: Content-Type: - application/json Date: - - Sat, 10 Apr 2021 01:23:16 GMT + - Tue, 13 Apr 2021 18:38:05 GMT User-Agent: - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -35,15 +35,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Apr 2021 01:23:11 GMT + - Tue, 13 Apr 2021 18:38:06 GMT ms-cv: - - OLBhn44OzkG9va+B5A8sZg.0 + - ovcS8YyU6UauDrfEXMFaqQ.0 request-context: - appId= transfer-encoding: - chunked x-processing-time: - - 1099ms + - 629ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_single.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_single.yaml index f86cd312e810..15eeee51ea91 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_single.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_single.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json Date: - - Sat, 10 Apr 2021 01:23:17 GMT + - Tue, 13 Apr 2021 18:38:06 GMT User-Agent: - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -32,15 +32,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Apr 2021 01:23:13 GMT + - Tue, 13 Apr 2021 18:38:07 GMT ms-cv: - - ss0KRpBKPUW0abc44FmPvw.0 + - lf9zHoiaa06EpPwt/ZkcGg.0 request-context: - appId= transfer-encoding: - chunked x-processing-time: - - 1154ms + - 539ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unauthorized_from_phone_number.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unauthorized_from_phone_number.yaml index e97be83c61c0..b0f002cebf84 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unauthorized_from_phone_number.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unauthorized_from_phone_number.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json Date: - - Sat, 10 Apr 2021 01:23:19 GMT + - Tue, 13 Apr 2021 18:38:07 GMT User-Agent: - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -31,14 +31,14 @@ interactions: content-length: - '0' date: - - Sat, 10 Apr 2021 01:23:13 GMT + - Tue, 13 Apr 2021 18:38:07 GMT ms-cv: - - qyDwOXurBE+K+rkBObWtXQ.0 + - K2Dj4s4VfUSSX85g/GLf7Q.0 request-context: - appId= x-processing-time: - - 419ms + - 429ms status: - code: 401 - message: Unauthorized + code: 404 + message: Not Found version: 1 diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unique_message_ids.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unique_message_ids.yaml index 2277a25b77ca..518f1638d17a 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unique_message_ids.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unique_message_ids.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json Date: - - Sat, 10 Apr 2021 01:23:19 GMT + - Tue, 13 Apr 2021 18:38:07 GMT User-Agent: - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -32,15 +32,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Apr 2021 01:23:15 GMT + - Tue, 13 Apr 2021 18:38:08 GMT ms-cv: - - 0Ev69SAHYka4CT0iQNNl1A.0 + - NaeHfjm8vEa2kzQRYtt98w.0 request-context: - appId= transfer-encoding: - chunked x-processing-time: - - 591ms + - 545ms status: code: 202 message: Accepted @@ -60,7 +60,7 @@ interactions: Content-Type: - application/json Date: - - Sat, 10 Apr 2021 01:23:20 GMT + - Tue, 13 Apr 2021 18:38:08 GMT User-Agent: - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -77,15 +77,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Apr 2021 01:23:15 GMT + - Tue, 13 Apr 2021 18:38:08 GMT ms-cv: - - OjVTVg7K4k23YRaesFlyYA.0 + - S/65ens12keVDGV4IohU4g.0 request-context: - appId= transfer-encoding: - chunked x-processing-time: - - 601ms + - 557ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_from_phone_number_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_from_phone_number_async.yaml index 8fc31ce98ba4..75f4588ee94c 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_from_phone_number_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_from_phone_number_async.yaml @@ -11,7 +11,7 @@ interactions: Content-Type: - application/json Date: - - Sat, 10 Apr 2021 01:23:21 GMT + - Tue, 13 Apr 2021 18:38:09 GMT User-Agent: - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -23,11 +23,11 @@ interactions: string: '{"From": ["Invalid From phone number format"]}' headers: content-type: application/json; charset=utf-8 - date: Sat, 10 Apr 2021 01:23:15 GMT - ms-cv: 5kzGnhl8gUCFZriHitaEIg.0 + date: Tue, 13 Apr 2021 18:38:09 GMT + ms-cv: QucM3d0xPEu+KcFVDrOwOw.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 31ms + x-processing-time: 11ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_to_phone_number_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_to_phone_number_async.yaml index fca4e5512228..4d66a08fc98d 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_to_phone_number_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_to_phone_number_async.yaml @@ -11,7 +11,7 @@ interactions: Content-Type: - application/json Date: - - Sat, 10 Apr 2021 01:23:21 GMT + - Tue, 13 Apr 2021 18:38:09 GMT User-Agent: - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -25,11 +25,11 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Sat, 10 Apr 2021 01:23:16 GMT - ms-cv: IcKiMTowhUaSiaVY1iHXGg.0 + date: Tue, 13 Apr 2021 18:38:10 GMT + ms-cv: XiBqPF17n0uN6sU/BdaG8A.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 494ms + x-processing-time: 403ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_from_managed_identity_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_from_managed_identity_async.yaml index 47eabcf51dde..5e04c65db21a 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_from_managed_identity_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_from_managed_identity_async.yaml @@ -21,11 +21,11 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Sat, 10 Apr 2021 01:23:18 GMT - ms-cv: gP02rDsddkuFItDAL8Ym+g.0 + date: Tue, 13 Apr 2021 18:38:13 GMT + ms-cv: KUAqE6zPEkWUxs7nDfgQRQ.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 627ms + x-processing-time: 423ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_multiple_with_options_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_multiple_with_options_async.yaml index 20a4365563d3..ad678856f5d2 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_multiple_with_options_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_multiple_with_options_async.yaml @@ -12,7 +12,7 @@ interactions: Content-Type: - application/json Date: - - Sat, 10 Apr 2021 01:23:24 GMT + - Tue, 13 Apr 2021 18:38:13 GMT User-Agent: - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -28,11 +28,11 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Sat, 10 Apr 2021 01:23:19 GMT - ms-cv: o+amvLH2fEaxImoSh9mLhQ.0 + date: Tue, 13 Apr 2021 18:38:14 GMT + ms-cv: x7S22jrJvECxJVGZiDIbHA.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 898ms + x-processing-time: 565ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_single_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_single_async.yaml index 4169d2722823..22305bf06c85 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_single_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_single_async.yaml @@ -11,7 +11,7 @@ interactions: Content-Type: - application/json Date: - - Sat, 10 Apr 2021 01:23:25 GMT + - Tue, 13 Apr 2021 18:38:14 GMT User-Agent: - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -25,11 +25,11 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Sat, 10 Apr 2021 01:23:20 GMT - ms-cv: RSh72Q3qDUebfsuYCi1tkA.0 + date: Tue, 13 Apr 2021 18:38:15 GMT + ms-cv: QuTYQM60jk61jhpAbrjtpQ.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 789ms + x-processing-time: 415ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unauthorized_from_phone_number_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unauthorized_from_phone_number_async.yaml index e97e19c78dc9..954d57bc4e74 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unauthorized_from_phone_number_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unauthorized_from_phone_number_async.yaml @@ -11,7 +11,7 @@ interactions: Content-Type: - application/json Date: - - Sat, 10 Apr 2021 01:23:26 GMT + - Tue, 13 Apr 2021 18:38:14 GMT User-Agent: - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -24,12 +24,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-length: '0' - date: Sat, 10 Apr 2021 01:23:20 GMT - ms-cv: 3EEp8O7Gc0aNfvwjBNInkA.0 + date: Tue, 13 Apr 2021 18:38:15 GMT + ms-cv: 5QaPxrtpUUaGdFDPDzndrw.0 request-context: appId= - x-processing-time: 427ms + x-processing-time: 326ms status: - code: 401 - message: Unauthorized + code: 404 + message: Not Found url: https://sanitized.communication.azure.com/sms?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unique_message_ids_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unique_message_ids_async.yaml index dfe54a8b33f0..f5a92c8ebfa9 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unique_message_ids_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unique_message_ids_async.yaml @@ -11,7 +11,7 @@ interactions: Content-Type: - application/json Date: - - Sat, 10 Apr 2021 01:23:26 GMT + - Tue, 13 Apr 2021 18:38:15 GMT User-Agent: - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -25,11 +25,11 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Sat, 10 Apr 2021 01:23:21 GMT - ms-cv: LRtMaHncekOmC9gKKiPaxg.0 + date: Tue, 13 Apr 2021 18:38:16 GMT + ms-cv: ihlwg7nsO0esXTalhuPp4g.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 509ms + x-processing-time: 504ms status: code: 202 message: Accepted @@ -46,7 +46,7 @@ interactions: Content-Type: - application/json Date: - - Sat, 10 Apr 2021 01:23:27 GMT + - Tue, 13 Apr 2021 18:38:16 GMT User-Agent: - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,11 +60,11 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Sat, 10 Apr 2021 01:23:21 GMT - ms-cv: U4nCh8H6GkGQ9vYhlJw3dQ.0 + date: Tue, 13 Apr 2021 18:38:16 GMT + ms-cv: TPMC9LfJX0mL0Z5sa13JNQ.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 523ms + x-processing-time: 510ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e.py b/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e.py index e0fcfbbc1159..23db8e4d55cd 100644 --- a/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e.py +++ b/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e.py @@ -133,7 +133,6 @@ def test_send_sms_unauthorized_from_phone_number(self): to=[self.phone_number], message="Hello World via SMS") - assert str(ex.value.status_code) == "401" assert ex.value.message is not None @pytest.mark.live_test_only diff --git a/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e_async.py b/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e_async.py index 89930eb34581..9f187d9b075c 100644 --- a/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e_async.py +++ b/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e_async.py @@ -144,7 +144,6 @@ async def test_send_sms_unauthorized_from_phone_number_async(self): to=[self.phone_number], message="Hello World via SMS") - assert str(ex.value.status_code) == "401" assert ex.value.message is not None @AsyncCommunicationTestCase.await_prepared_test