diff --git a/sdk/communication/Azure.Communication.Sms/tests.yml b/sdk/communication/Azure.Communication.Sms/tests.yml index 068b700aff7d..ecafa56d8b9a 100644 --- a/sdk/communication/Azure.Communication.Sms/tests.yml +++ b/sdk/communication/Azure.Communication.Sms/tests.yml @@ -11,10 +11,6 @@ extends: - $(sub-config-azure-cloud-test-resources) - $(sub-config-communication-services-cloud-test-resources-common) - $(sub-config-communication-services-cloud-test-resources-net) - Int: - SubscriptionConfigurations: - - $(sub-config-communication-int-test-resources-common) - - $(sub-config-communication-int-test-resources-net) - Clouds: Public,Int + Clouds: Public TestResourceDirectories: - communication/test-resources/ diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendMessageTroubleShooting.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendMessageTroubleShooting.json index a2b82aa7235b..05d4a7dc62d6 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendMessageTroubleShooting.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendMessageTroubleShooting.json @@ -8,14 +8,11 @@ "Authorization": "Sanitized", "Content-Length": "319", "Content-Type": "application/json", - "traceparent": "00-0cc7c0495575554e8ec67c2eda73e0eb-b4e317fe752e1341-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "ab4633d38c01163b057c8f1198a69332", + "traceparent": "00-b881d57351e63e41bb948892d4b24639-360546114777db4c-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "da5c070dc111b279699e20ae3791ea72", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:05:55 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:48 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -41,27 +38,27 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "351", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:05:55 GMT", - "MS-CV": "pnTIiXPxRkeM6Uw1aff57w.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0w17SYAAAAAD4hO/oo2wjQ5RFKjN9r/OkWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:48 GMT", + "MS-CV": "w1OzGIc1mUOCnEuxn/UVOw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0Oft5ZAAAAACrThN75SodRIb4Y4ntw2BFSEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "856ms" + "X-Processing-Time": "97ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_20210622220555a274e30c-c000-4b2e-9b20-c843f3250f09_noam", + "messageId": "Outgoing_20230602142249e36f1f91-97d4-4986-b48e-e0e0ad65c584_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true }, { "to": "Sanitized", - "messageId": "Outgoing_20210622220555d7915f10-9f5e-4467-b1b1-da19a30342fc_noam", + "messageId": "Outgoing_20230602142249a447ae89-8e0e-445d-a756-7e30deb7fcf1_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -71,8 +68,8 @@ } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "871743876" + "RandomSeed": "1339730150" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendMessageTroubleShootingAsync.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendMessageTroubleShootingAsync.json index 80bb661e03b9..222e42d012dd 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendMessageTroubleShootingAsync.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendMessageTroubleShootingAsync.json @@ -8,14 +8,11 @@ "Authorization": "Sanitized", "Content-Length": "319", "Content-Type": "application/json", - "traceparent": "00-137c89d352eadb42b2688eefda49f66d-e5c952eaeacbbe4e-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "1d7edf013305d3270371ff3fa6afcae5", + "traceparent": "00-aaa6d62b42c71f479eb83d9a07a424ac-7384e5ef2c2b234f-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "578f6603adf85df8fbd4167959a4f2d7", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:05:57 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:49 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -41,27 +38,27 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "351", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:05:57 GMT", - "MS-CV": "ii1CbX52AUS\u002B0xZYOdTX2Q.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0xV7SYAAAAADIE7KEg3GuQr6v70GeuDLKWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:49 GMT", + "MS-CV": "AmwpFoH\u002BNki/GPp9\u002BHLuCA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0Oft5ZAAAAAB5UzT6oeM3S40hZolhzjg5SEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "524ms" + "X-Processing-Time": "101ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_20210622220557f5509f1a-59f9-43ec-8e4d-add8a055e40a_noam", + "messageId": "Outgoing_202306021422502d744eca-3103-45d8-84f4-bb5199a167aa_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true }, { "to": "Sanitized", - "messageId": "Outgoing_2021062222055737aaacd7-5846-49d5-8bcf-58ffdf7a26c7_noam", + "messageId": "Outgoing_20230602142250e09dfb5b-186d-4810-8d0e-40cf8ffa274f_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -71,8 +68,8 @@ } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1089614406" + "RandomSeed": "1602045096" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingGroupSMSMessageWithOptions.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingGroupSMSMessageWithOptions.json index 8d89eef9dc87..7981e12033d4 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingGroupSMSMessageWithOptions.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingGroupSMSMessageWithOptions.json @@ -6,15 +6,13 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", + "Connection": "keep-alive", "Content-Length": "319", "Content-Type": "application/json", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "d8fa31f56e68592e851e8c4f2a785a5c", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "b5e47c408d95d62ee20fe040780ff185", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:05:52 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:44 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -40,27 +38,27 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "351", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:05:53 GMT", - "MS-CV": "cu\u002BeH8a4gUa0n2DvBOMF7w.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0wV7SYAAAAADsBTcDwcPmQ4RmAWgJvIV3WVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:46 GMT", + "MS-CV": "Y546ahlgNUuoviyq3yCumw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0Nft5ZAAAAABZG68R4pGPQ5EixINLaBngSEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "996ms" + "X-Processing-Time": "319ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_20210622220554f14fe814-6241-4d98-aafd-0e24ffb417aa_noam", + "messageId": "Outgoing_20230602142246e76062c4-0502-4995-92a4-b4c2d3958726_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true }, { "to": "Sanitized", - "messageId": "Outgoing_202106222205536e0e1d04-1063-47de-8993-eb16160fa2fc_noam", + "messageId": "Outgoing_202306021422469c4181d7-72cc-43c6-b714-80dc62a6ba35_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -70,8 +68,8 @@ } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "15769138" + "RandomSeed": "2138285584" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingGroupSMSMessageWithOptionsAsyncAsync.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingGroupSMSMessageWithOptionsAsyncAsync.json index 1a60f55e7551..4a518c077b8d 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingGroupSMSMessageWithOptionsAsyncAsync.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingGroupSMSMessageWithOptionsAsyncAsync.json @@ -8,14 +8,11 @@ "Authorization": "Sanitized", "Content-Length": "319", "Content-Type": "application/json", - "traceparent": "00-15edc51403cfd74ba4c24b8167935be3-888e9879f6c43c4c-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "4a2cdd23126b151a820bfd7d2e81920e", + "traceparent": "00-6c6e446a952275448d45ceaf05804090-f12b151bdb34cb4d-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "8827bb3de9edbab7003331d7ec60cc9e", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:05:56 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:48 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -41,27 +38,27 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "351", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:05:55 GMT", - "MS-CV": "3voL3uN5hE2s30XdKCuP6Q.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0xF7SYAAAAACEBuTilwg1Rrl0G641K8i/WVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:49 GMT", + "MS-CV": "r94CJh/cl0GHnR26V6WewA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0Oft5ZAAAAABo6J4KyKewTZo6cx4jSt99SEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "655ms" + "X-Processing-Time": "101ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_20210622220556abbde03e-cbb4-4f7f-ad18-8e1dfb41d7d8_noam", + "messageId": "Outgoing_2023060214224925769e75-c636-41f9-aad5-4956554d37e5_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true }, { "to": "Sanitized", - "messageId": "Outgoing_202106222205562e78b6b6-bd55-4ad4-b771-1384c93522a6_noam", + "messageId": "Outgoing_20230602142249e28fc11d-1c7f-4b4d-a900-b89389f5a90d_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -71,8 +68,8 @@ } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "233639668" + "RandomSeed": "307055389" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingSMSMessage.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingSMSMessage.json index 14fccff1c84d..5d0dfe01b918 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingSMSMessage.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingSMSMessage.json @@ -8,13 +8,10 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "9800f8702cae318fb5b9dcf8ed2f1f21", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "e864eda05d5af46aa2ababdf9ff79c71", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:05:54 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:48 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -31,20 +28,20 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "181", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:05:54 GMT", - "MS-CV": "5Z/DFvzrMU\u002Bc\u002BjkXPf2MjA.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0wl7SYAAAAACsNoMZqA98S72yWu6lqXuNWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:48 GMT", + "MS-CV": "pyssAWg3ZE\u002BLFhrxo2gJLQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0OPt5ZAAAAABBnRNjfNvKR5ysck69BYiKSEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "661ms" + "X-Processing-Time": "86ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_202106222205549e80a873-eeec-4513-9ea1-ab856a8feb2a_noam", + "messageId": "Outgoing_202306021422487c363743-8120-4e7b-b836-1195d8b0a2b8_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -54,8 +51,8 @@ } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1804854755" + "RandomSeed": "1421696162" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingSMSMessageAsyncAsync.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingSMSMessageAsyncAsync.json index ac869d475044..2be97b6677f3 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingSMSMessageAsyncAsync.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/Sample1_SmsClient/SendingSMSMessageAsyncAsync.json @@ -8,14 +8,11 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "traceparent": "00-2b47b6b37cb8f740ab2440460d179c17-c76ea72efc63dd4d-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "2137aa3c184510cc4fe81e40299964e8", + "traceparent": "00-144b799ab96cde4a975ea2c734e1b989-7c19018e31daa047-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "f0d89020c9738c57fdfa23a818825f3b", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:05:56 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:49 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -32,20 +29,20 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "181", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:05:56 GMT", - "MS-CV": "XG7NSci3R02PJbuYHMqG5w.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0xF7SYAAAAACGVSPst9cKSYHPacbTHE/nWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:49 GMT", + "MS-CV": "UQr\u002BaCQk/E\u002BuLNfhF6KeGA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0Oft5ZAAAAACfYnRbCW3PTqyQcn52IUBESEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "670ms" + "X-Processing-Time": "94ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_2021062222055778077b24-32f1-4830-8fe6-7f09fce837a0_noam", + "messageId": "Outgoing_202306021422490cb172ed-6795-4f3c-aa99-82c149aae99e_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -55,8 +52,8 @@ } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "5781508" + "RandomSeed": "2028292066" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsFromNullNumberShouldThrow.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsFromNullNumberShouldThrow.json index 1eccb96697b6..95ba63968864 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsFromNullNumberShouldThrow.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsFromNullNumberShouldThrow.json @@ -1,8 +1,7 @@ { "Entries": [], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", - "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "561786426" + "AZURE_PHONE_NUMBER": "\u002B18772125291", + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsFromNullNumberShouldThrowAsync.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsFromNullNumberShouldThrowAsync.json index 1eb30921bdad..95ba63968864 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsFromNullNumberShouldThrowAsync.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsFromNullNumberShouldThrowAsync.json @@ -1,8 +1,7 @@ { "Entries": [], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", - "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "435207885" + "AZURE_PHONE_NUMBER": "\u002B18772125291", + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessage.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessage.json index 9279bb2b36c2..723586f0c687 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessage.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessage.json @@ -8,14 +8,11 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "traceparent": "00-ab4f9f5bf80b914aa152c70519d260e8-3aad9fd8cb2c724a-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "d94de0ec3b168e8a70f9894f483cef21", + "traceparent": "00-9d1987953007b24d9575e44a19d5e0f0-d6cdc412b4944f49-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "5b9c99ceff5eb1569f8c1b0d9600d424", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:05:58 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:49 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -32,20 +29,20 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "181", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:05:57 GMT", - "MS-CV": "950NYg9V\u002BEaJnXfUc7rsSQ.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0xl7SYAAAAAD0aVucPSmKRqQ8r9e\u002BAmfDWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:50 GMT", + "MS-CV": "oe0OB7L5QkaObV5LQHS5kw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0Ovt5ZAAAAACR2lWnjmVgTI1ln4cl0FR/SEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "489ms" + "X-Processing-Time": "141ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_202106222205589da2168c-b143-4734-86c2-713d00ef7d8b_noam", + "messageId": "Outgoing_2023060214225073242eb1-4011-4718-b8a7-22e8bc8de6f2_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -55,8 +52,8 @@ } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "780012571" + "RandomSeed": "1639566692" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageAsync.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageAsync.json index 43362639d63c..4208e01d2862 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageAsync.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageAsync.json @@ -8,14 +8,11 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "traceparent": "00-a53d16f395fcc14f9ce3d5a2b363263d-e976b66c771a7440-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "d2da5067b9e869b758c535d03946972b", + "traceparent": "00-8804ab683b7cc64bb38f0aab6356e0be-51b34c5384429049-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "95e131ddb1a0851e92ca83344ecc4379", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:06:04 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:53 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -32,20 +29,20 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "181", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:06:05 GMT", - "MS-CV": "weqzjmwZC0qjsYxM\u002BZxT3Q.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0zF7SYAAAAAC5DSHuF0UmSL/zNPMLYQDpWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:54 GMT", + "MS-CV": "HRbXnE2KE0SG\u002BQGSP12pGw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0Pvt5ZAAAAAAU6WbjGndERreRyGktMSDPSEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "514ms" + "X-Processing-Time": "94ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_202106222206056d2899d2-1594-421e-b70f-18a4d2f349e2_noam", + "messageId": "Outgoing_2023060214225407876861-840a-4f15-9c67-7cf623d5ac0f_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -55,8 +52,8 @@ } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1981761896" + "RandomSeed": "466467750" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromFakeNumber.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromFakeNumber.json deleted file mode 100644 index dcbca4a8690d..000000000000 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromFakeNumber.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://smstestapp.communication.azure.com/sms?api-version=2021-03-07", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "146", - "Content-Type": "application/json", - "traceparent": "00-7a7418cb73873448b9d630dd442e5278-f03549bf9804324d-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "45c8957597a6dffe099e7013371db1f0", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:05:58 GMT", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "from": "Sanitized", - "smsRecipients": [ - { - "to": "Sanitized", - "repeatabilityRequestId": "Sanitized", - "repeatabilityFirstSent": "Sanitized" - } - ], - "message": "Hi" - }, - "StatusCode": 400, - "ResponseHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:05:58 GMT", - "MS-CV": "VmLnjc2WdEycj0LIK\u002BA9bA.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0xl7SYAAAAABJEvBO5loYQ6NrIeA/49NEWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "50ms" - }, - "ResponseBody": { - "From": [ - "Invalid From phone number format" - ] - } - } - ], - "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", - "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1661011836" - } -} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromFakeNumberAsync.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromFakeNumberAsync.json deleted file mode 100644 index d0e9791a8ef4..000000000000 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromFakeNumberAsync.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://smstestapp.communication.azure.com/sms?api-version=2021-03-07", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "146", - "Content-Type": "application/json", - "traceparent": "00-4db7cc45d245cf489593b82c64e73658-b215462c50a6db46-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "621800f0d36e41fb0d285a768c6de9b3", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:06:05 GMT", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "from": "Sanitized", - "smsRecipients": [ - { - "to": "Sanitized", - "repeatabilityRequestId": "Sanitized", - "repeatabilityFirstSent": "Sanitized" - } - ], - "message": "Hi" - }, - "StatusCode": 400, - "ResponseHeaders": { - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:06:05 GMT", - "MS-CV": "/7l0sh3XRk2VBiqnWx8Q\u002Bg.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0zV7SYAAAAAD6qjW1o0hGTLo4bBmnd\u002BdpWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "92ms" - }, - "ResponseBody": { - "From": [ - "Invalid From phone number format" - ] - } - } - ], - "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", - "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1340238721" - } -} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumberAsync.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber(%+15550000000%).json similarity index 58% rename from sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumberAsync.json rename to sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber(%+15550000000%).json index d6a625e07f31..dba17a8fad3f 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumberAsync.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber(%+15550000000%).json @@ -8,14 +8,11 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "traceparent": "00-1d7dd534e8bf7041974cbdaf8e29be54-ad36b266f508a342-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "29955a9cfed96eb9debd52c0effcf838", + "traceparent": "00-754ae216ccb81c46af4d7dc51ff893f7-0eeb51ba93410e48-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "60d66bee5df8e3cfd5e2f5a28ee08834", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:06:05 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:53 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -33,25 +30,25 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json", - "Date": "Tue, 22 Jun 2021 22:06:05 GMT", - "MS-CV": "F5WOaicwKEyu3Zrnz0A5eg.0", - "Request-Context": "appId=", + "Date": "Fri, 02 Jun 2023 14:22:53 GMT", + "MS-CV": "2VDc\u002BSpIp0a\u002BarnU/VYHxg.0", + "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0zV7SYAAAAACEN57q/m0SR7HRSp3SN4ZdWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0Pvt5ZAAAAACVM8WFrG/1QoYsMwPnZf28SEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "307ms" + "X-Processing-Time": "16ms" }, "ResponseBody": { "error": { - "code": "InternalError", - "message": "The server encountered an internal error." + "code": "Unauthorized", + "message": "" } } } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "257421069" + "RandomSeed": "1192383149" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber(%+15550000000%)Async.json similarity index 58% rename from sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber.json rename to sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber(%+15550000000%)Async.json index 622a2d2ae8da..05dbd26ec48c 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber(%+15550000000%)Async.json @@ -8,14 +8,11 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "traceparent": "00-8d2d6d66598f8242bc0170eb9d70af2e-917ecd4c0453e942-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "07041c006777da44a4e98ec8aecb0d65", + "traceparent": "00-27bec0adb12df94d903c27ef2bbbd404-c996400ca581be4d-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "014db55d71268b7e5b0b57dab5f0b7c2", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:05:59 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:54 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -33,25 +30,25 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json", - "Date": "Tue, 22 Jun 2021 22:05:58 GMT", - "MS-CV": "Hv5ujXkLaEKGOoVEPm4SgQ.0", - "Request-Context": "appId=", + "Date": "Fri, 02 Jun 2023 14:22:55 GMT", + "MS-CV": "ddXFbvtEmUO0PsGsHsG9Wg.0", + "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0x17SYAAAAABgN2dXXF\u002BrR4iadeEIoUNlWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0P/t5ZAAAAABhh3BKXuv9T7rNlVt9evohSEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "308ms" + "X-Processing-Time": "13ms" }, "ResponseBody": { "error": { - "code": "InternalError", - "message": "The server encountered an internal error." + "code": "Unauthorized", + "message": "" } } } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1025377727" + "RandomSeed": "1140847800" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageToFakeNumber.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber(%+18007342577%).json similarity index 51% rename from sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageToFakeNumber.json rename to sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber(%+18007342577%).json index a3b3f62cd86c..cdc66f8960db 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageToFakeNumber.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber(%+18007342577%).json @@ -8,14 +8,11 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "traceparent": "00-89229888a2bf364eaddb19519535aaee-8d3ef7d33ed34241-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "fae53e094b1227be96cc60f4a7c8893c", + "traceparent": "00-b0cbbc9b153d834b999508ae987c398f-3433c066fd5b114b-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "a34355591037b73fdfa27c069c05f5a8", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:05:59 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:53 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -29,33 +26,29 @@ ], "message": "Hi" }, - "StatusCode": 202, + "StatusCode": 401, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:05:58 GMT", - "MS-CV": "rbgNKDsvAUWBoa2Ap/UnmA.0", - "Request-Context": "appId=", + "Content-Type": "application/json", + "Date": "Fri, 02 Jun 2023 14:22:53 GMT", + "MS-CV": "xYln2nn8uEKAf1dyB1Ub3w.0", + "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0x17SYAAAAAAxsH0ywtQJSIkSUHkGJKNNWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0Pft5ZAAAAAAJZZmPLI0kR5dvokGbL/CESEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "327ms" + "X-Processing-Time": "18ms" }, "ResponseBody": { - "value": [ - { - "to": "Sanitized", - "httpStatusCode": 400, - "errorMessage": "Invalid To phone number format.", - "successful": false - } - ] + "error": { + "code": "Unauthorized", + "message": "" + } } } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "543693712" + "RandomSeed": "1079986474" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageToFakeNumberAsync.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber(%+18007342577%)Async.json similarity index 51% rename from sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageToFakeNumberAsync.json rename to sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber(%+18007342577%)Async.json index 513dd6ed39c2..a8ac8d6a9b0e 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageToFakeNumberAsync.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber(%+18007342577%)Async.json @@ -8,14 +8,11 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "traceparent": "00-790dcefb183a1444b66f9666c6daa3c0-22a84cf86884be4f-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "d31443484701d4e869dfe7b2fd4c552b", + "traceparent": "00-4bc922a660bf0e4abae3ac61c74933f3-79f9cae5176e584d-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "efd85e15c02905fe6b7d58742c5b2346", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:06:06 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:54 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -29,33 +26,29 @@ ], "message": "Hi" }, - "StatusCode": 202, + "StatusCode": 401, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:06:06 GMT", - "MS-CV": "QjOmCiAYYkuDxIwT9vjI0g.0", - "Request-Context": "appId=", + "Content-Type": "application/json", + "Date": "Fri, 02 Jun 2023 14:22:55 GMT", + "MS-CV": "kM1r\u002BVgrq0qjimys1WoolQ.0", + "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0zl7SYAAAAADeXBzkK5X5RLqX5nkUzJZLWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0P/t5ZAAAAAA/dyHqTvFUT5216AXgiqzSSEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "317ms" + "X-Processing-Time": "13ms" }, "ResponseBody": { - "value": [ - { - "to": "Sanitized", - "httpStatusCode": 400, - "errorMessage": "Invalid To phone number format.", - "successful": false - } - ] + "error": { + "code": "Unauthorized", + "message": "" + } } } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1419695495" + "RandomSeed": "489807480" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageToGroupWithOptions.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageToGroupWithOptions.json index 62431be3658c..8f03ece48ca7 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageToGroupWithOptions.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageToGroupWithOptions.json @@ -8,14 +8,11 @@ "Authorization": "Sanitized", "Content-Length": "304", "Content-Type": "application/json", - "traceparent": "00-7208bc41c3cfe1498fadf6f3a5c60c36-cf0d32823bd18a4d-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "5ec843cdd5febfe0dc325e42938b8de4", + "traceparent": "00-261dd1caa19626408542990438cf3aea-a53ca6e12d89274d-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "5ea9cb9a54c304b4434e21a1df5cb570", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:05:59 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:50 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -41,27 +38,27 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "351", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:05:59 GMT", - "MS-CV": "h5D08F0pPkqtshl8X0Ikjg.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0x17SYAAAAAA3htMdIW2SRYiuezhzT519WVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:50 GMT", + "MS-CV": "0sJTGurw4U2JcfvgvYX0hA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0Ovt5ZAAAAAAAAHyHbx34Sp6vi1AhjaI7SEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "528ms" + "X-Processing-Time": "92ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_202106222206009d118917-210b-4011-8e63-db138a724469_noam", + "messageId": "Outgoing_20230602142250decba85d-85a7-4453-84a7-97073023bdc6_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true }, { "to": "Sanitized", - "messageId": "Outgoing_2021062222060028013b9b-99e4-43a8-9da5-ec68c0c20090_noam", + "messageId": "Outgoing_202306021422501a7d3b84-7171-4a97-a0f8-336d9393e588_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -71,8 +68,8 @@ } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "632665570" + "RandomSeed": "1677088288" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageToGroupWithOptionsAsync.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageToGroupWithOptionsAsync.json index b93a2121c3e6..0a7beb389297 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageToGroupWithOptionsAsync.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageToGroupWithOptionsAsync.json @@ -8,14 +8,11 @@ "Authorization": "Sanitized", "Content-Length": "304", "Content-Type": "application/json", - "traceparent": "00-ae4e7461655d40479a3edfd205777c67-5efd688142fc6b4e-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "617c06a557cc9ab5da8c2a02e6ee330c", + "traceparent": "00-b97eda2b486c8b46848d3a29b4593870-df30e5ea91f4974f-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "72a5ff1fd6425a80d95061a817491be1", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:06:06 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:53 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -41,27 +38,27 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "351", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:06:06 GMT", - "MS-CV": "Oq9NeihT2Eev/JaIj0JTsw.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0zl7SYAAAAAAYD/hGShi0T4uXdQ0a/JT2WVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:54 GMT", + "MS-CV": "cul12qn9DEGViGBEbyecqg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0Pvt5ZAAAAAAmVekYjpD\u002BS5FJOidoRkHlSEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "496ms" + "X-Processing-Time": "89ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_20210622220606d587f643-94ba-4cc7-86ee-364b48a0997c_noam", + "messageId": "Outgoing_20230602142254ca068acf-b0dc-497b-991b-e2fa8c167548_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true }, { "to": "Sanitized", - "messageId": "Outgoing_20210622220606850a6b46-1aa7-46fb-8754-af48d5432c5e_noam", + "messageId": "Outgoing_202306021422546c5e89aa-078a-4d85-9bc2-922cd3514cfe_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -71,8 +68,8 @@ } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "747633515" + "RandomSeed": "227492534" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageUsingTokenCredential.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageUsingTokenCredential.json index e6dd813bdaf5..d52887388951 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageUsingTokenCredential.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageUsingTokenCredential.json @@ -8,12 +8,9 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "traceparent": "00-b1f3ce93d6c06a4b8222a10e4a22fd9e-70487fb29b81a745-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "43b277a6a16a3bff6b2e48dfdec028e6", + "traceparent": "00-bbee63c3b10c0841bcf79827a06ebfd4-d7e56a898e2f934a-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "a57d26b922b51db304b01b3a34b00361", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -30,20 +27,20 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "181", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:06:03 GMT", - "MS-CV": "yYjQIurAX0Cbi21OZ\u002BZSsg.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0yl7SYAAAAABqLSOKAeaDRokFEAmcVe3lWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:53 GMT", + "MS-CV": "SZKZLK/CUE2CYT0XU7W6AQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0PPt5ZAAAAAB39UkJXpVfSKDGgwQm9ozgSEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "733ms" + "X-Processing-Time": "301ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_20210622220603ab90a67c-f2fe-48f1-aa87-b8d2cad66eac_noam", + "messageId": "Outgoing_202306021422533ca52288-9676-4c49-8fe1-a9d53fc6ae9d_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -53,8 +50,8 @@ } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "468733546" + "RandomSeed": "2133765921" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageUsingTokenCredentialAsync.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageUsingTokenCredentialAsync.json index a577abe1b014..e24a81e58d05 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageUsingTokenCredentialAsync.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageUsingTokenCredentialAsync.json @@ -8,12 +8,9 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "traceparent": "00-c2f5b2f26a03f540a29841485c2bab9e-b1a1b098a90dc541-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "211c4f06f8f31aa4758da8322125a8e5", + "traceparent": "00-6fd7470af93fdb4ba274f8c6153a7090-a76b840d574b0444-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "52c8855bc3aea1df9de16970357bd635", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -30,20 +27,20 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "181", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:06:09 GMT", - "MS-CV": "\u002B21ml8vhX0eLD3RMfg5a/g.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "00F7SYAAAAAAh4gz1fhtBQ6U9Huf3sfrSWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:54 GMT", + "MS-CV": "/HMxvQzPF0Gipb1trjsAeA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0Pvt5ZAAAAACzEKdlFdynQJZ3CYWQwmwzSEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "509ms" + "X-Processing-Time": "85ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_202106222206093accd1a1-691a-435b-a62e-0ffc9e35c44f_noam", + "messageId": "Outgoing_20230602142254988f40e7-9724-4b88-96b3-dfaa2f45a601_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -53,8 +50,8 @@ } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "897551786" + "RandomSeed": "1110417137" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsToNullNumberShouldThrow.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsToNullNumberShouldThrow.json new file mode 100644 index 000000000000..95ba63968864 --- /dev/null +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsToNullNumberShouldThrow.json @@ -0,0 +1,7 @@ +{ + "Entries": [], + "Variables": { + "AZURE_PHONE_NUMBER": "\u002B18772125291", + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==" + } +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsToNullNumberShouldThrowAsync.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsToNullNumberShouldThrowAsync.json new file mode 100644 index 000000000000..95ba63968864 --- /dev/null +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsToNullNumberShouldThrowAsync.json @@ -0,0 +1,7 @@ +{ + "Entries": [], + "Variables": { + "AZURE_PHONE_NUMBER": "\u002B18772125291", + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==" + } +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingTwoSmsMessages.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingTwoSmsMessages.json index 184354f534f3..4df498bd2b39 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingTwoSmsMessages.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingTwoSmsMessages.json @@ -8,14 +8,11 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "traceparent": "00-4d73fbe50ef33846807821996f915b17-e35c00f2107a0a42-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "5343ad252b7d1aae4d84188177d6b15b", + "traceparent": "00-0b9ce051ce33e2488fb4c17f9c8da13f-5f2bc1512668cb41-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "2a1d292f7ab5601ff1388bced04ece90", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:06:03 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:52 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -32,20 +29,20 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "181", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:06:04 GMT", - "MS-CV": "rH10vEYkbECPacbdKs4PRw.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0y17SYAAAAACB5Yqy3cNxQpdlFxPVEwa8WVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:53 GMT", + "MS-CV": "A95RmdRLnUa4NNqBzJtSUQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0Pft5ZAAAAADxsUn/fA3yT725VpesNZNBSEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "537ms" + "X-Processing-Time": "93ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_20210622220603b7d645c6-03c3-4c8f-bb3e-fff030ed554c_noam", + "messageId": "Outgoing_202306021422530b89fe97-105b-4109-9e24-33a0d634c731_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -61,14 +58,11 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "traceparent": "00-c9f62f5a1f216e498a29dff468fd6e37-911e5ec5637c2d45-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "eeb77bd91b80173c8379017571460eb3", + "traceparent": "00-a4abf27626dfe34c97fb9233ae16c9d0-b9a7e3435872ef40-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "146c564e113a1b780c8a9c77a2d1f910", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:06:04 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:53 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -85,20 +79,20 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "181", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:06:04 GMT", - "MS-CV": "wdf4J/yysECpgmMbHwCmvQ.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0zF7SYAAAAACGnvfxefbvR7UwyKXuUtq5WVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:53 GMT", + "MS-CV": "SK1AdEuClUuh7DfVG2z/2Q.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0Pft5ZAAAAADcblR7QIHFRLiu8k1yn06PSEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "579ms" + "X-Processing-Time": "90ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_20210622220604d986f0bc-d86e-43fc-a0cc-1cdbbfd65a04_noam", + "messageId": "Outgoing_202306021422531c64db44-75be-440d-b273-3fe3cb0d5c8c_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -108,8 +102,8 @@ } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "210482935" + "RandomSeed": "855193124" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingTwoSmsMessagesAsync.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingTwoSmsMessagesAsync.json index 7b98c9659deb..853e8ecac563 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingTwoSmsMessagesAsync.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingTwoSmsMessagesAsync.json @@ -8,14 +8,11 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "traceparent": "00-7934a89c2e72ef418bb6e44a2804188d-be21fe79a8447640-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "88b7067210caa5e061a1e638b75e90ad", + "traceparent": "00-8d26b2415782d04d9d1292998b24907b-81da0f423b6cff43-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "76b232ea2aa7adde7d12673c5fa5fd2e", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:06:09 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:54 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -32,20 +29,20 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "181", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:06:10 GMT", - "MS-CV": "kgVg0l1BaEePrsh\u002B5ZwPMw.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "00V7SYAAAAABtCZIvOsOQSJDTKkkiWCazWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:54 GMT", + "MS-CV": "wC7MY2GsOUyqej5LetwXiQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0Pvt5ZAAAAADasWMIvJfISakHH3TfIRhXSEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "528ms" + "X-Processing-Time": "85ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_2021062222060940927daa-1e72-4b1e-8889-28d9fe3fbc74_noam", + "messageId": "Outgoing_20230602142254f7df06ff-691f-495a-92e7-7df8df69e277_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -61,14 +58,11 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "traceparent": "00-97ac9021221e7d4bac95340ecd465bf5-afad064bfee1874f-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.1.0-alpha.20210622.1", - "(.NET 5.0.7; Microsoft Windows 10.0.19043)" - ], - "x-ms-client-request-id": "427574d3b632022eac493e894b6f0e57", + "traceparent": "00-22e8496119d7b340ba62aede976219b9-520876424f370841-00", + "User-Agent": "azsdk-net-Communication.Sms/1.0.2-alpha.20230602.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )", + "x-ms-client-request-id": "0abf83cbf8497081e5426cc386e83f45", "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Tue, 22 Jun 2021 22:06:10 GMT", + "x-ms-date": "Fri, 02 Jun 2023 14:22:54 GMT", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -85,20 +79,20 @@ "StatusCode": 202, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Length": "181", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 22 Jun 2021 22:06:10 GMT", - "MS-CV": "gJh4lQyFy0iJPjHzqn7s3g.0", - "Request-Context": "appId=", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "00l7SYAAAAADYijJhsV0DRbOTYi3n2lHMWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "Date": "Fri, 02 Jun 2023 14:22:54 GMT", + "MS-CV": "JdACAbydL0WCYBuJ9aFw4w.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0P/t5ZAAAAACQeG13N0dAQ45M3HK8ZmwFSEVMMDFFREdFMjAyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "516ms" + "X-Processing-Time": "84ms" }, "ResponseBody": { "value": [ { "to": "Sanitized", - "messageId": "Outgoing_20210622220610448d3c4a-1886-437d-9d49-07ad5c86c576_noam", + "messageId": "Outgoing_20230602142255a52baf58-68a0-40dd-8391-55cd4f6636f9_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -108,8 +102,8 @@ } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B14255550123", + "AZURE_PHONE_NUMBER": "\u002B18772125291", "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://smstestapp.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "203598891" + "RandomSeed": "265014130" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.Sms/tests/SmsClientLiveTests.cs b/sdk/communication/Azure.Communication.Sms/tests/SmsClientLiveTests.cs index e24b552feb28..67ba2c35ac69 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SmsClientLiveTests.cs +++ b/sdk/communication/Azure.Communication.Sms/tests/SmsClientLiveTests.cs @@ -6,6 +6,8 @@ /*@@*/ using System.IO; //@@ using Azure.Communication.Sms; #endregion Snippet:Azure_Communication_Sms_Tests_UsingStatements + +using System.Collections.Generic; using System.Threading.Tasks; using Newtonsoft.Json.Linq; using NUnit.Framework; @@ -30,8 +32,8 @@ public async Task SendingSmsMessage() message: "Hi"); SmsSendResult result = response.Value; Console.WriteLine($"Sms id: {result.MessageId}"); - assertHappyPath(result); - assertRawResponseHappyPath(response.GetRawResponse().ContentStream ?? new MemoryStream()); + AssertHappyPath(result); + AssertRawResponseHappyPath(response.GetRawResponse().ContentStream ?? new MemoryStream()); } catch (RequestFailedException ex) { @@ -56,8 +58,8 @@ public async Task SendingSmsMessageUsingTokenCredential() message: "Hi"); SmsSendResult result = response.Value; Console.WriteLine($"Sms id: {result.MessageId}"); - assertHappyPath(result); - assertRawResponseHappyPath(response.GetRawResponse().ContentStream ?? new MemoryStream()); + AssertHappyPath(result); + AssertRawResponseHappyPath(response.GetRawResponse().ContentStream ?? new MemoryStream()); } catch (RequestFailedException ex) { @@ -70,68 +72,22 @@ public async Task SendingSmsMessageUsingTokenCredential() } } - [Test] - public async Task SendingSmsMessageFromFakeNumber() + [TestCase("+18007342577", Description = "Unauthorized number")] + [TestCase("+15550000000", Description = "Fake number")] + public async Task SendingSmsMessageFromUnauthorizedNumber(string from) { SmsClient client = CreateSmsClient(); try { SmsSendResult result = await client.SendAsync( - from: "+15550000000", + from: from, to: TestEnvironment.ToPhoneNumber, message: "Hi"); } catch (RequestFailedException ex) { Assert.IsNotEmpty(ex.Message); - Assert.True(ex.Message.Contains("400")); - Console.WriteLine(ex.Message); - } - catch (Exception ex) - { - Assert.Fail($"Unexpected error: {ex}"); - } - } - - [Test] - public async Task SendingSmsMessageToFakeNumber() - { - SmsClient client = CreateSmsClient(); - try - { - SmsSendResult result = await client.SendAsync( - from: TestEnvironment.FromPhoneNumber, - to: "+15550000000", - message: "Hi"); - Assert.AreEqual(400, result.HttpStatusCode); - } - catch (RequestFailedException ex) - { - Console.WriteLine(ex.Message); - Assert.Fail($"Unexpected error: {ex}"); - } - - catch (Exception ex) - { - Assert.Fail($"Unexpected error: {ex}"); - } - } - - [Test] - public async Task SendingSmsMessageFromUnauthorizedNumber() - { - SmsClient client = CreateSmsClient(); - try - { - SmsSendResult result = await client.SendAsync( - from: "+18007342577", - to: TestEnvironment.ToPhoneNumber, - message: "Hi"); - } - catch (RequestFailedException ex) - { - Assert.IsNotEmpty(ex.Message); - Assert.True(ex.Message.Contains("401")); + Assert.True(ex.Message.Contains("401")); // Unauthorized Console.WriteLine(ex.Message); } catch (Exception ex) @@ -154,11 +110,11 @@ public async Task SendingSmsMessageToGroupWithOptions() { Tag = "marketing", // custom tags }); - assertRawResponseHappyPath(response.GetRawResponse().ContentStream ?? new MemoryStream()); + AssertRawResponseHappyPath(response.GetRawResponse().ContentStream ?? new MemoryStream()); foreach (SmsSendResult result in response.Value) { Console.WriteLine($"Sms id: {result.MessageId}"); - assertHappyPath(result); + AssertHappyPath(result); } } catch (RequestFailedException ex) @@ -187,15 +143,15 @@ public async Task SendingTwoSmsMessages() to: TestEnvironment.ToPhoneNumber, message: "Hi"); - assertRawResponseHappyPath(firstMessageResponse.GetRawResponse().ContentStream ?? new MemoryStream()); - assertRawResponseHappyPath(secondMessageResponse.GetRawResponse().ContentStream ?? new MemoryStream()); + AssertRawResponseHappyPath(firstMessageResponse.GetRawResponse().ContentStream ?? new MemoryStream()); + AssertRawResponseHappyPath(secondMessageResponse.GetRawResponse().ContentStream ?? new MemoryStream()); SmsSendResult firstMessageResult = firstMessageResponse.Value; SmsSendResult secondMessageResult = secondMessageResponse.Value; Assert.AreNotEqual(firstMessageResult.MessageId, secondMessageResult.MessageId); - assertHappyPath(firstMessageResult); - assertHappyPath(secondMessageResult); + AssertHappyPath(firstMessageResult); + AssertHappyPath(secondMessageResult); } catch (RequestFailedException ex) { @@ -227,14 +183,34 @@ public async Task SendingSmsFromNullNumberShouldThrow() Assert.Fail("SendAsync should have thrown an exception."); } - public void assertHappyPath(SmsSendResult sendResult) + [Test] + public async Task SendingSmsToNullNumberShouldThrow() + { + SmsClient client = CreateSmsClient(); + try + { + IEnumerable? to = null; + Response> result = await client.SendAsync( + from: TestEnvironment.FromPhoneNumber, + to: to, + message: "Hi"); + } + catch (ArgumentNullException ex) + { + Assert.AreEqual("to", ex.ParamName); + return; + } + Assert.Fail("SendAsync should have thrown an exception."); + } + + private void AssertHappyPath(SmsSendResult sendResult) { Assert.True(sendResult.Successful); Assert.AreEqual(202, sendResult.HttpStatusCode); Assert.IsFalse(string.IsNullOrWhiteSpace(sendResult.MessageId)); } - public void assertRawResponseHappyPath(Stream contentStream) + private void AssertRawResponseHappyPath(Stream contentStream) { if (contentStream.Length > 0) {