diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber.json index deee671cd2b97..35f1e1262c227 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumber.json @@ -8,12 +8,9 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "Date": "Tue, 09 Mar 2021 21:32:28 GMT", - "traceparent": "00-b6c280a393a15c40bce6a9bc3ae32d33-6757ede156d50449-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.0.0-alpha.20210309.1", - "(.NET Core 4.6.29719.03; Microsoft Windows 10.0.19042 )" - ], + "Date": "Mon, 26 Apr 2021 16:58:12 GMT", + "traceparent": "00-122ea6a98bf00c4b924f53d47cfd3e8b-b3f13c61b6114445-00", + "User-Agent": "azsdk-net-Communication.Sms/1.1.0-alpha.20210426.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "07041c006777da44a4e98ec8aecb0d65", "x-ms-content-sha256": "Sanitized", "x-ms-return-client-request-id": "true" @@ -29,15 +26,15 @@ ], "message": "Hi" }, - "StatusCode": 404, + "StatusCode": 401, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Length": "0", - "Date": "Tue, 09 Mar 2021 21:32:28 GMT", - "MS-CV": "mLIKSwDzW0e9Ofw97zdQCg.0", + "Date": "Mon, 26 Apr 2021 16:58:12 GMT", + "MS-CV": "69qllnqj50O4RlZvnZckpw.0", "Request-Context": "appId=", - "X-Azure-Ref": "0belHYAAAAAD6DO2ahVPYSZXA77RGd8UARVdSMzBFREdFMDYyMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "371ms" + "X-Azure-Ref": "0JPGGYAAAAAAdk7ImWxBcR4SWq/U0dPDIWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "281ms" }, "ResponseBody": [] } diff --git a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumberAsync.json b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumberAsync.json index b1ebb87d536c0..cace4ea78dfc1 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumberAsync.json +++ b/sdk/communication/Azure.Communication.Sms/tests/SessionRecords/SmsClientLiveTests/SendingSmsMessageFromUnauthorizedNumberAsync.json @@ -8,12 +8,9 @@ "Authorization": "Sanitized", "Content-Length": "146", "Content-Type": "application/json", - "Date": "Tue, 09 Mar 2021 21:32:33 GMT", - "traceparent": "00-97976ad1556de740b1caed6aac78b444-c71a6733d56f0044-00", - "User-Agent": [ - "azsdk-net-Communication.Sms/1.0.0-alpha.20210309.1", - "(.NET Core 4.6.29719.03; Microsoft Windows 10.0.19042 )" - ], + "Date": "Mon, 26 Apr 2021 16:58:14 GMT", + "traceparent": "00-6c4e249a8883d749a2d437d57828a8b1-0d222d8f848a974e-00", + "User-Agent": "azsdk-net-Communication.Sms/1.1.0-alpha.20210426.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "29955a9cfed96eb9debd52c0effcf838", "x-ms-content-sha256": "Sanitized", "x-ms-return-client-request-id": "true" @@ -29,15 +26,15 @@ ], "message": "Hi" }, - "StatusCode": 404, + "StatusCode": 401, "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Length": "0", - "Date": "Tue, 09 Mar 2021 21:32:33 GMT", - "MS-CV": "ALuFUUi3dkSPs0KFD/6Txg.0", + "Date": "Mon, 26 Apr 2021 16:58:13 GMT", + "MS-CV": "QXYzWaUeJ0m083rd1JW0iw.0", "Request-Context": "appId=", - "X-Azure-Ref": "0culHYAAAAADCmIGeXzeGRrLSJBSp5j39RVdSMzBFREdFMDYyMAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "X-Processing-Time": "342ms" + "X-Azure-Ref": "0JfGGYAAAAADa/6n8fhI4TaMPPJDsV//oWVZSMzBFREdFMDQxNAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Processing-Time": "267ms" }, "ResponseBody": [] } diff --git a/sdk/communication/Azure.Communication.Sms/tests/SmsClientLiveTests.cs b/sdk/communication/Azure.Communication.Sms/tests/SmsClientLiveTests.cs index 6b46625855f5e..1670c6b65dac0 100644 --- a/sdk/communication/Azure.Communication.Sms/tests/SmsClientLiveTests.cs +++ b/sdk/communication/Azure.Communication.Sms/tests/SmsClientLiveTests.cs @@ -126,8 +126,7 @@ public async Task SendingSmsMessageFromUnauthorizedNumber() catch (RequestFailedException ex) { Assert.IsNotEmpty(ex.Message); - // TODO: re-enable this when service change is made - // Assert.True(ex.Message.Contains("401")); + Assert.True(ex.Message.Contains("401")); Console.WriteLine(ex.Message); } catch (Exception ex)