From f03aa125304f5a38bbb0cca34ac07f8b3ff1a238 Mon Sep 17 00:00:00 2001 From: Arif Ibrahim Mohamed Date: Wed, 6 Apr 2022 17:15:59 -0700 Subject: [PATCH 01/10] sms core v2 migration changes --- .../communication-sms/CHANGELOG.md | 4 +- .../communication-sms/package.json | 14 +- .../review/communication-sms.api.md | 6 +- .../samples-dev/usingAadAuth.ts | 2 +- .../communication-sms/src/constants.ts | 2 +- .../src/extractOperationOptions.ts | 2 +- .../src/generated/src/index.ts | 12 ++ .../src/generated/src/models/index.ts | 133 ++++++------------ .../src/generated/src/models/mappers.ts | 24 ++-- .../src/generated/src/models/parameters.ts | 14 +- .../src/generated/src/operations/sms.ts | 37 +++-- .../src/operationsInterfaces/index.ts | 9 ++ .../generated/src/operationsInterfaces/sms.ts | 26 ++++ .../src/generated/src/smsApiClient.ts | 21 +-- .../src/generated/src/smsApiClientContext.ts | 38 ++--- .../communication-sms/src/smsClient.ts | 32 ++--- .../communication-sms/src/utils/uuid.ts | 10 +- .../communication-sms/swagger/README.md | 6 +- .../smsClient.internal.mocked.spec.ts | 2 +- .../test/internal/smsClient.internal.spec.ts | 2 +- .../test/public/smsClient.mocked.spec.ts | 4 +- .../test/public/smsClient.spec.ts | 2 +- .../test/public/utils/mockHttpClient.ts | 10 +- .../test/public/utils/recordedClient.ts | 34 +---- 24 files changed, 214 insertions(+), 232 deletions(-) create mode 100644 sdk/communication/communication-sms/src/generated/src/index.ts create mode 100644 sdk/communication/communication-sms/src/generated/src/operationsInterfaces/index.ts create mode 100644 sdk/communication/communication-sms/src/generated/src/operationsInterfaces/sms.ts diff --git a/sdk/communication/communication-sms/CHANGELOG.md b/sdk/communication/communication-sms/CHANGELOG.md index 160d031041be..76d440900e65 100644 --- a/sdk/communication/communication-sms/CHANGELOG.md +++ b/sdk/communication/communication-sms/CHANGELOG.md @@ -1,9 +1,11 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.2.0-beta.1 (Unreleased) ### Features Added +- Migrated from using `@azure/core-http` to `@azure/core-rest-pipeline` for the handling of HTTP requests. See [Azure Core v1 vs v2](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-rest-pipeline/documentation/core2.md) for more on the difference and benefits of the move. + ### Breaking Changes ### Bugs Fixed diff --git a/sdk/communication/communication-sms/package.json b/sdk/communication/communication-sms/package.json index ef947faca455..2bb6b322d89a 100644 --- a/sdk/communication/communication-sms/package.json +++ b/sdk/communication/communication-sms/package.json @@ -1,6 +1,6 @@ { "name": "@azure/communication-sms", - "version": "1.1.0", + "version": "1.2.0-beta.1", "description": "SDK for Azure Communication SMS service which facilitates the sending of SMS messages.", "sdk-type": "client", "main": "dist/index.js", @@ -64,15 +64,18 @@ "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", "dependencies": { "@azure/abort-controller": "^1.0.0", - "@azure/communication-common": "^1.1.0", + "@azure/communication-common": "^2.0.0", "@azure/core-auth": "^1.3.0", - "@azure/core-http": "^2.0.0", + "@azure/core-client": "^1.3.2", + "@azure/core-rest-pipeline": "^1.3.2", "@azure/core-tracing": "1.0.0-preview.13", "@azure/logger": "^1.0.0", "events": "^3.0.0", - "tslib": "^2.2.0" + "tslib": "^2.2.0", + "uuid": "^8.3.0" }, "devDependencies": { + "@azure/core-util": "^1.0.0-beta.1", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/identity": "^2.0.1", @@ -105,6 +108,7 @@ "prettier": "^2.5.1", "rimraf": "^3.0.0", "sinon": "^9.0.2", + "@types/uuid": "^8.0.0", "typescript": "~4.2.0", "util": "^0.12.1" }, @@ -112,7 +116,7 @@ "constantPaths": [ { "path": "src/generated/src/smsApiClientContext.ts", - "prefix": "packageVersion" + "prefix": "packageDetails" }, { "path": "src/constants.ts", diff --git a/sdk/communication/communication-sms/review/communication-sms.api.md b/sdk/communication/communication-sms/review/communication-sms.api.md index 28919f247a5b..c98753fea219 100644 --- a/sdk/communication/communication-sms/review/communication-sms.api.md +++ b/sdk/communication/communication-sms/review/communication-sms.api.md @@ -6,9 +6,9 @@ /// +import { CommonClientOptions } from '@azure/core-client'; import { KeyCredential } from '@azure/core-auth'; -import { OperationOptions } from '@azure/core-http'; -import { PipelineOptions } from '@azure/core-http'; +import { OperationOptions } from '@azure/core-client'; import { TokenCredential } from '@azure/core-auth'; // @public @@ -20,7 +20,7 @@ export class SmsClient { } // @public -export interface SmsClientOptions extends PipelineOptions { +export interface SmsClientOptions extends CommonClientOptions { } // @public diff --git a/sdk/communication/communication-sms/samples-dev/usingAadAuth.ts b/sdk/communication/communication-sms/samples-dev/usingAadAuth.ts index c5d930e35a5a..b8f263eede6d 100644 --- a/sdk/communication/communication-sms/samples-dev/usingAadAuth.ts +++ b/sdk/communication/communication-sms/samples-dev/usingAadAuth.ts @@ -7,7 +7,7 @@ import { parseConnectionString } from "@azure/communication-common"; import { SmsClient, SmsSendRequest } from "@azure/communication-sms"; -import { isNode } from "@azure/core-http"; +import { isNode } from "@azure/core-util"; import { ClientSecretCredential, DefaultAzureCredential, TokenCredential } from "@azure/identity"; // Load the .env file if it exists diff --git a/sdk/communication/communication-sms/src/constants.ts b/sdk/communication/communication-sms/src/constants.ts index 9ffa1892ce39..85e3e7f17866 100644 --- a/sdk/communication/communication-sms/src/constants.ts +++ b/sdk/communication/communication-sms/src/constants.ts @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export const SDK_VERSION: string = "1.1.0"; +export const SDK_VERSION: string = "1.2.0-beta.1"; diff --git a/sdk/communication/communication-sms/src/extractOperationOptions.ts b/sdk/communication/communication-sms/src/extractOperationOptions.ts index a8fa2e5ecf12..b04081580731 100644 --- a/sdk/communication/communication-sms/src/extractOperationOptions.ts +++ b/sdk/communication/communication-sms/src/extractOperationOptions.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { OperationOptions } from "@azure/core-http"; +import { OperationOptions } from "@azure/core-client"; export const extractOperationOptions = ( obj: T diff --git a/sdk/communication/communication-sms/src/generated/src/index.ts b/sdk/communication/communication-sms/src/generated/src/index.ts new file mode 100644 index 000000000000..7fec41dc8fd5 --- /dev/null +++ b/sdk/communication/communication-sms/src/generated/src/index.ts @@ -0,0 +1,12 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export * from "./models"; +export { SmsApiClient } from "./smsApiClient"; +export { SmsApiClientContext } from "./smsApiClientContext"; +export * from "./operationsInterfaces"; diff --git a/sdk/communication/communication-sms/src/generated/src/models/index.ts b/sdk/communication/communication-sms/src/generated/src/models/index.ts index 277a772301dc..e08170980d8c 100644 --- a/sdk/communication/communication-sms/src/generated/src/models/index.ts +++ b/sdk/communication/communication-sms/src/generated/src/models/index.ts @@ -6,135 +6,86 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; -/** - * Represents the properties of a send message request. - */ +/** Represents the properties of a send message request. */ export interface SendMessageRequest { - /** - * The sender's phone number in E.164 format that is owned by the authenticated account. - */ + /** The sender's phone number in E.164 format that is owned by the authenticated account. */ from: string; - /** - * The recipient's phone number in E.164 format. In this version, a minimum of 1 and upto 100 recipients in the list are supported. - */ + /** The recipient's phone number in E.164 format. In this version, a minimum of 1 and upto 100 recipients in the list are supported. */ smsRecipients: SmsRecipient[]; - /** - * The contents of the message that will be sent to the recipient. The allowable content is defined by RFC 5724. - */ + /** The contents of the message that will be sent to the recipient. The allowable content is defined by RFC 5724. */ message: string; - /** - * Optional configuration for sending SMS messages. - */ + /** Optional configuration for sending SMS messages. */ smsSendOptions?: SmsSendOptions; } -/** - * Recipient details for sending SMS messages. - */ +/** Recipient details for sending SMS messages. */ export interface SmsRecipient { - /** - * The recipient's phone number in E.164 format. - */ + /** The recipient's phone number in E.164 format. */ to: string; - /** - * If specified, the client directs that the request is repeatable; that is, the client can make the request multiple times with the same Repeatability-Request-ID and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-ID is an opaque string representing a client-generated, 36-character hexadecimal case-insensitive encoding of a UUID (GUID), identifier for the request. - */ + /** If specified, the client directs that the request is repeatable; that is, the client can make the request multiple times with the same Repeatability-Request-ID and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-ID is an opaque string representing a client-generated, 36-character hexadecimal case-insensitive encoding of a UUID (GUID), identifier for the request. */ repeatabilityRequestId?: string; - /** - * MUST be sent by clients to specify that a request is repeatable. Repeatability-First-Sent is used to specify the date and time at which the request was first created.eg- Tue, 26 Mar 2019 16:06:51 GMT - */ + /** MUST be sent by clients to specify that a request is repeatable. Repeatability-First-Sent is used to specify the date and time at which the request was first created.eg- Tue, 26 Mar 2019 16:06:51 GMT */ repeatabilityFirstSent?: string; } -/** - * Optional configuration for sending SMS messages. - */ +/** Optional configuration for sending SMS messages. */ export interface SmsSendOptions { - /** - * Enable this flag to receive a delivery report for this message on the Azure Resource EventGrid. - */ + /** Enable this flag to receive a delivery report for this message on the Azure Resource EventGrid. */ enableDeliveryReport: boolean; - /** - * Use this field to provide metadata that will then be sent back in the corresponding Delivery Report. - */ + /** Use this field to provide metadata that will then be sent back in the corresponding Delivery Report. */ tag?: string; } -/** - * Response for a successful or multi status send Sms request. - */ +/** Response for a successful or multi status send Sms request. */ export interface SmsSendResponse { value: SmsSendResponseItem[]; } -/** - * Response for a single recipient. - */ +/** Response for a single recipient. */ export interface SmsSendResponseItem { - /** - * The recipient's phone number in E.164 format. - */ + /** The recipient's phone number in E.164 format. */ to: string; - /** - * The identifier of the outgoing Sms message. Only present if message processed. - */ + /** The identifier of the outgoing Sms message. Only present if message processed. */ messageId?: string; - /** - * HTTP Status code. - */ + /** HTTP Status code. */ httpStatusCode: number; - /** - * The result of a repeatable request with one of the case-insensitive values accepted or rejected. - */ + /** The result of a repeatable request with one of the case-insensitive values accepted or rejected. */ repeatabilityResult?: SmsSendResponseItemRepeatabilityResult; - /** - * Indicates if the message is processed successfully or not. - */ + /** Indicates if the message is processed successfully or not. */ successful: boolean; - /** - * Optional error message in case of 4xx/5xx/repeatable errors. - */ + /** Optional error message in case of 4xx/5xx/repeatable errors. */ errorMessage?: string; } -/** - * Defines values for SmsSendResponseItemRepeatabilityResult. - */ -export type SmsSendResponseItemRepeatabilityResult = "accepted" | "rejected"; +/** Known values of {@link SmsSendResponseItemRepeatabilityResult} that the service accepts. */ +export enum KnownSmsSendResponseItemRepeatabilityResult { + Accepted = "accepted", + Rejected = "rejected" +} /** - * Contains response data for the send operation. + * Defines values for SmsSendResponseItemRepeatabilityResult. \ + * {@link KnownSmsSendResponseItemRepeatabilityResult} can be used interchangeably with SmsSendResponseItemRepeatabilityResult, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **accepted** \ + * **rejected** */ -export type SmsSendOperationResponse = SmsSendResponse & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type SmsSendResponseItemRepeatabilityResult = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SmsSendResponse; - }; -}; +/** Optional parameters. */ +export interface SmsSendOptionalParams extends coreClient.OperationOptions {} -/** - * Optional parameters. - */ +/** Contains response data for the send operation. */ +export type SmsSendOperationResponse = SmsSendResponse; + +/** Optional parameters. */ export interface SmsApiClientOptionalParams - extends coreHttp.ServiceClientOptions { - /** - * Api Version - */ + extends coreClient.ServiceClientOptions { + /** Api Version */ apiVersion?: string; - /** - * Overrides client endpoint. - */ + /** Overrides client endpoint. */ endpoint?: string; } diff --git a/sdk/communication/communication-sms/src/generated/src/models/mappers.ts b/sdk/communication/communication-sms/src/generated/src/models/mappers.ts index 03b109980491..0ea1f01108b1 100644 --- a/sdk/communication/communication-sms/src/generated/src/models/mappers.ts +++ b/sdk/communication/communication-sms/src/generated/src/models/mappers.ts @@ -6,9 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; -export const SendMessageRequest: coreHttp.CompositeMapper = { +export const SendMessageRequest: coreClient.CompositeMapper = { type: { name: "Composite", className: "SendMessageRequest", @@ -25,7 +25,12 @@ export const SendMessageRequest: coreHttp.CompositeMapper = { required: true, type: { name: "Sequence", - element: { type: { name: "Composite", className: "SmsRecipient" } } + element: { + type: { + name: "Composite", + className: "SmsRecipient" + } + } } }, message: { @@ -49,7 +54,7 @@ export const SendMessageRequest: coreHttp.CompositeMapper = { } }; -export const SmsRecipient: coreHttp.CompositeMapper = { +export const SmsRecipient: coreClient.CompositeMapper = { type: { name: "Composite", className: "SmsRecipient", @@ -77,7 +82,7 @@ export const SmsRecipient: coreHttp.CompositeMapper = { } }; -export const SmsSendOptions: coreHttp.CompositeMapper = { +export const SmsSendOptions: coreClient.CompositeMapper = { type: { name: "Composite", className: "SmsSendOptions", @@ -99,7 +104,7 @@ export const SmsSendOptions: coreHttp.CompositeMapper = { } }; -export const SmsSendResponse: coreHttp.CompositeMapper = { +export const SmsSendResponse: coreClient.CompositeMapper = { type: { name: "Composite", className: "SmsSendResponse", @@ -110,7 +115,10 @@ export const SmsSendResponse: coreHttp.CompositeMapper = { type: { name: "Sequence", element: { - type: { name: "Composite", className: "SmsSendResponseItem" } + type: { + name: "Composite", + className: "SmsSendResponseItem" + } } } } @@ -118,7 +126,7 @@ export const SmsSendResponse: coreHttp.CompositeMapper = { } }; -export const SmsSendResponseItem: coreHttp.CompositeMapper = { +export const SmsSendResponseItem: coreClient.CompositeMapper = { type: { name: "Composite", className: "SmsSendResponseItem", diff --git a/sdk/communication/communication-sms/src/generated/src/models/parameters.ts b/sdk/communication/communication-sms/src/generated/src/models/parameters.ts index ed63cae5ac65..11b554fcc05a 100644 --- a/sdk/communication/communication-sms/src/generated/src/models/parameters.ts +++ b/sdk/communication/communication-sms/src/generated/src/models/parameters.ts @@ -10,7 +10,7 @@ import { OperationParameter, OperationURLParameter, OperationQueryParameter -} from "@azure/core-http"; +} from "@azure/core-client"; import { SendMessageRequest as SendMessageRequestMapper } from "../models/mappers"; export const contentType: OperationParameter = { @@ -30,6 +30,18 @@ export const sendMessageRequest: OperationParameter = { mapper: SendMessageRequestMapper }; +export const accept: OperationParameter = { + parameterPath: "accept", + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Accept", + type: { + name: "String" + } + } +}; + export const endpoint: OperationURLParameter = { parameterPath: "endpoint", mapper: { diff --git a/sdk/communication/communication-sms/src/generated/src/operations/sms.ts b/sdk/communication/communication-sms/src/generated/src/operations/sms.ts index 4d55c19e24f2..4ea871c531de 100644 --- a/sdk/communication/communication-sms/src/generated/src/operations/sms.ts +++ b/sdk/communication/communication-sms/src/generated/src/operations/sms.ts @@ -6,23 +6,26 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; +import { Sms } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SmsApiClient } from "../smsApiClient"; -import { SendMessageRequest, SmsSendOperationResponse } from "../models"; +import { SmsApiClientContext } from "../smsApiClientContext"; +import { + SendMessageRequest, + SmsSendOptionalParams, + SmsSendOperationResponse +} from "../models"; -/** - * Class representing a Sms. - */ -export class Sms { - private readonly client: SmsApiClient; +/** Class containing Sms operations. */ +export class SmsImpl implements Sms { + private readonly client: SmsApiClientContext; /** * Initialize a new instance of the class Sms class. * @param client Reference to the service client */ - constructor(client: SmsApiClient) { + constructor(client: SmsApiClientContext) { this.client = client; } @@ -33,22 +36,18 @@ export class Sms { */ send( sendMessageRequest: SendMessageRequest, - options?: coreHttp.OperationOptions + options?: SmsSendOptionalParams ): Promise { - const operationOptions: coreHttp.RequestOptionsBase = coreHttp.operationOptionsToRequestOptionsBase( - options || {} - ); return this.client.sendOperationRequest( - { sendMessageRequest, options: operationOptions }, + { sendMessageRequest, options }, sendOperationSpec - ) as Promise; + ); } } // Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false); - -const sendOperationSpec: coreHttp.OperationSpec = { +const sendOperationSpec: coreClient.OperationSpec = { path: "/sms", httpMethod: "POST", responses: { @@ -59,7 +58,7 @@ const sendOperationSpec: coreHttp.OperationSpec = { requestBody: Parameters.sendMessageRequest, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; diff --git a/sdk/communication/communication-sms/src/generated/src/operationsInterfaces/index.ts b/sdk/communication/communication-sms/src/generated/src/operationsInterfaces/index.ts new file mode 100644 index 000000000000..6f4eb2ba2dec --- /dev/null +++ b/sdk/communication/communication-sms/src/generated/src/operationsInterfaces/index.ts @@ -0,0 +1,9 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export * from "./sms"; diff --git a/sdk/communication/communication-sms/src/generated/src/operationsInterfaces/sms.ts b/sdk/communication/communication-sms/src/generated/src/operationsInterfaces/sms.ts new file mode 100644 index 000000000000..a0d7248ea800 --- /dev/null +++ b/sdk/communication/communication-sms/src/generated/src/operationsInterfaces/sms.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + SendMessageRequest, + SmsSendOptionalParams, + SmsSendOperationResponse +} from "../models"; + +/** Interface representing a Sms. */ +export interface Sms { + /** + * Sends a SMS message from a phone number that belongs to the authenticated account. + * @param sendMessageRequest Represents the body of the send message request. + * @param options The options parameters. + */ + send( + sendMessageRequest: SendMessageRequest, + options?: SmsSendOptionalParams + ): Promise; +} diff --git a/sdk/communication/communication-sms/src/generated/src/smsApiClient.ts b/sdk/communication/communication-sms/src/generated/src/smsApiClient.ts index 1632590f1d22..8430398a4f27 100644 --- a/sdk/communication/communication-sms/src/generated/src/smsApiClient.ts +++ b/sdk/communication/communication-sms/src/generated/src/smsApiClient.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as operations from "./operations"; -import * as Models from "./models"; -import * as Mappers from "./models/mappers"; +import { SmsImpl } from "./operations"; +import { Sms } from "./operationsInterfaces"; import { SmsApiClientContext } from "./smsApiClientContext"; import { SmsApiClientOptionalParams } from "./models"; -class SmsApiClient extends SmsApiClientContext { +export class SmsApiClient extends SmsApiClientContext { /** * Initializes a new instance of the SmsApiClient class. * @param endpoint The communication resource, for example https://my-resource.communication.azure.com @@ -20,18 +19,8 @@ class SmsApiClient extends SmsApiClientContext { */ constructor(endpoint: string, options?: SmsApiClientOptionalParams) { super(endpoint, options); - this.sms = new operations.Sms(this); + this.sms = new SmsImpl(this); } - sms: operations.Sms; + sms: Sms; } - -// Operation Specifications - -export { - SmsApiClient, - SmsApiClientContext, - Models as SmsApiModels, - Mappers as SmsApiMappers -}; -export * from "./operations"; diff --git a/sdk/communication/communication-sms/src/generated/src/smsApiClientContext.ts b/sdk/communication/communication-sms/src/generated/src/smsApiClientContext.ts index 71c252332588..f0f1a1fea1d0 100644 --- a/sdk/communication/communication-sms/src/generated/src/smsApiClientContext.ts +++ b/sdk/communication/communication-sms/src/generated/src/smsApiClientContext.ts @@ -6,13 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; import { SmsApiClientOptionalParams } from "./models"; -const packageName = "azure-communication-sms"; -const packageVersion = "1.1.0"; - -export class SmsApiClientContext extends coreHttp.ServiceClient { +export class SmsApiClientContext extends coreClient.ServiceClient { endpoint: string; apiVersion: string; @@ -30,18 +27,25 @@ export class SmsApiClientContext extends coreHttp.ServiceClient { if (!options) { options = {}; } - - if (!options.userAgent) { - const defaultUserAgent = coreHttp.getDefaultUserAgentValue(); - options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; - } - - super(undefined, options); - - this.requestContentType = "application/json; charset=utf-8"; - - this.baseUri = options.endpoint || "{endpoint}"; - + const defaults: SmsApiClientOptionalParams = { + requestContentType: "application/json; charset=utf-8" + }; + + const packageDetails = `azsdk-js-communication-sms/1.2.0-beta.1`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` + : `${packageDetails}`; + + const optionsWithDefaults = { + ...defaults, + ...options, + userAgentOptions: { + userAgentPrefix + }, + baseUri: options.endpoint || "{endpoint}" + }; + super(optionsWithDefaults); // Parameter assignments this.endpoint = endpoint; diff --git a/sdk/communication/communication-sms/src/smsClient.ts b/sdk/communication/communication-sms/src/smsClient.ts index b16bc707f715..98748f80d520 100644 --- a/sdk/communication/communication-sms/src/smsClient.ts +++ b/sdk/communication/communication-sms/src/smsClient.ts @@ -9,15 +9,12 @@ import { } from "@azure/communication-common"; import { KeyCredential, TokenCredential } from "@azure/core-auth"; import { - PipelineOptions, - InternalPipelineOptions, - createPipelineFromOptions, - OperationOptions, - operationOptionsToRequestOptionsBase, -} from "@azure/core-http"; + CommonClientOptions, + OperationOptions +} from "@azure/core-client"; +import { InternalPipelineOptions } from "@azure/core-rest-pipeline"; import { SpanStatusCode } from "@azure/core-tracing"; import { SmsApiClient } from "./generated/src/smsApiClient"; -import { SDK_VERSION } from "./constants"; import { createSpan } from "./tracing"; import { logger } from "./logger"; import { extractOperationOptions } from "./extractOperationOptions"; @@ -26,7 +23,7 @@ import { generateSendMessageRequest } from "./utils/smsUtils"; /** * Client options used to configure SMS Client API requests. */ -export interface SmsClientOptions extends PipelineOptions {} +export interface SmsClientOptions extends CommonClientOptions {} /** * Values used to configure Sms message @@ -132,18 +129,7 @@ export class SmsClient { ) { const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions); const options = isSmsClientOptions(credentialOrOptions) ? credentialOrOptions : maybeOptions; - const libInfo = `azsdk-js-communication-sms/${SDK_VERSION}`; - - if (!options.userAgentOptions) { - options.userAgentOptions = {}; - } - - if (options.userAgentOptions.userAgentPrefix) { - options.userAgentOptions.userAgentPrefix = `${options.userAgentOptions.userAgentPrefix} ${libInfo}`; - } else { - options.userAgentOptions.userAgentPrefix = libInfo; - } - + const internalPipelineOptions: InternalPipelineOptions = { ...options, ...{ @@ -154,8 +140,8 @@ export class SmsClient { }; const authPolicy = createCommunicationAuthPolicy(credential); - const pipeline = createPipelineFromOptions(internalPipelineOptions, authPolicy); - this.api = new SmsApiClient(url, pipeline); + this.api = new SmsApiClient(url, internalPipelineOptions); + this.api.pipeline.addPolicy(authPolicy); } /** @@ -174,7 +160,7 @@ export class SmsClient { try { const response = await this.api.sms.send( generateSendMessageRequest(sendRequest, restOptions), - operationOptionsToRequestOptionsBase(updatedOptions) + updatedOptions ); return response.value; } catch (e) { diff --git a/sdk/communication/communication-sms/src/utils/uuid.ts b/sdk/communication/communication-sms/src/utils/uuid.ts index c6cf92396ce3..1be96085e2c8 100644 --- a/sdk/communication/communication-sms/src/utils/uuid.ts +++ b/sdk/communication/communication-sms/src/utils/uuid.ts @@ -1,12 +1,18 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { generateUuid } from "@azure/core-http"; +import { v4 as uuidv4 } from "uuid"; // This is used as a workaround to be able to stub generateUuid // during testing. +/** + * Generated Universally Unique Identifier + * + * @returns RFC4122 v4 UUID. + * @internal + */ export class Uuid { public static generateUuid(): string { - return generateUuid(); + return uuidv4(); } } diff --git a/sdk/communication/communication-sms/swagger/README.md b/sdk/communication/communication-sms/swagger/README.md index 80d7f8371a9b..12ae03ca6144 100644 --- a/sdk/communication/communication-sms/swagger/README.md +++ b/sdk/communication/communication-sms/swagger/README.md @@ -5,7 +5,7 @@ ## Configuration ```yaml -package-name: azure-communication-sms +package-name: "@azure/communication-sms" title: SmsApiClient description: SMS Client generate-metadata: false @@ -16,9 +16,9 @@ require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/896d05e37d model-date-time-as-string: false optional-response-headers: true use-extension: - "@autorest/typescript": "6.0.0-dev.20200623.2" + "@autorest/typescript": "6.0.0-beta.15" azure-arm: false add-credentials: false -package-version: 1.1.0 +package-version: 1.2.0-beta.1 v3: true ``` diff --git a/sdk/communication/communication-sms/test/internal/smsClient.internal.mocked.spec.ts b/sdk/communication/communication-sms/test/internal/smsClient.internal.mocked.spec.ts index 3c4c19787ea5..4fcccaac4f5d 100644 --- a/sdk/communication/communication-sms/test/internal/smsClient.internal.mocked.spec.ts +++ b/sdk/communication/communication-sms/test/internal/smsClient.internal.mocked.spec.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { HttpClient } from "@azure/core-http"; +import { HttpClient } from "@azure/core-rest-pipeline"; import { Uuid } from "../../src/utils/uuid"; import { generateSendMessageRequest } from "../../src/utils/smsUtils"; diff --git a/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts b/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts index 56ae5e36120d..7601b189d4fd 100644 --- a/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts +++ b/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts @@ -10,7 +10,7 @@ import { matrix } from "@azure/test-utils"; import { isLiveMode, isPlaybackMode, record, Recorder } from "@azure-tools/test-recorder"; -import { isNode } from "@azure/core-http"; +import { isNode } from "@azure/core-util"; import * as dotenv from "dotenv"; import * as sinon from "sinon"; import { Uuid } from "../../src/utils/uuid"; diff --git a/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts b/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts index 5242129a8a6b..bee303cb039a 100644 --- a/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts +++ b/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { HttpClient, isNode } from "@azure/core-http"; - +import { isNode } from "@azure/core-util"; +import { HttpClient } from "@azure/core-rest-pipeline"; import { AzureKeyCredential } from "@azure/core-auth"; import { assert } from "chai"; import sinon from "sinon"; diff --git a/sdk/communication/communication-sms/test/public/smsClient.spec.ts b/sdk/communication/communication-sms/test/public/smsClient.spec.ts index 23f4474a6f5c..4928f07a214f 100644 --- a/sdk/communication/communication-sms/test/public/smsClient.spec.ts +++ b/sdk/communication/communication-sms/test/public/smsClient.spec.ts @@ -8,7 +8,7 @@ import { matrix } from "@azure/test-utils"; import { record, Recorder, env } from "@azure-tools/test-recorder"; -import { isNode } from "@azure/core-http"; +import { isNode } from "@azure/core-util"; import * as dotenv from "dotenv"; import { createSmsClient, diff --git a/sdk/communication/communication-sms/test/public/utils/mockHttpClient.ts b/sdk/communication/communication-sms/test/public/utils/mockHttpClient.ts index 67259490f697..abb1525b1fc5 100644 --- a/sdk/communication/communication-sms/test/public/utils/mockHttpClient.ts +++ b/sdk/communication/communication-sms/test/public/utils/mockHttpClient.ts @@ -1,17 +1,17 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { HttpClient, HttpHeaders, WebResourceLike, HttpOperationResponse } from "@azure/core-http"; +import { createHttpHeaders, HttpClient, PipelineRequest, PipelineResponse } from "@azure/core-rest-pipeline"; export class MockHttpClient implements HttpClient { constructor(private _phoneNumber: string) {} - async sendRequest(httpRequest: WebResourceLike): Promise { + async sendRequest(httpRequest: PipelineRequest): Promise { return { status: 202, - headers: new HttpHeaders(), + headers: createHttpHeaders(), request: httpRequest, - parsedBody: { + bodyAsText: JSON.stringify({ value: [ { to: this._phoneNumber, @@ -22,7 +22,7 @@ export class MockHttpClient implements HttpClient { successful: true, }, ], - }, + }), }; } } diff --git a/sdk/communication/communication-sms/test/public/utils/recordedClient.ts b/sdk/communication/communication-sms/test/public/utils/recordedClient.ts index 7d7a1c5e899e..c35da3852d57 100644 --- a/sdk/communication/communication-sms/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-sms/test/public/utils/recordedClient.ts @@ -2,15 +2,10 @@ // Licensed under the MIT license. import { parseConnectionString } from "@azure/communication-common"; -import { - DefaultHttpClient, - HttpClient, - HttpOperationResponse, - isNode, - WebResourceLike, -} from "@azure/core-http"; +import { isNode } from "@azure/core-util"; import { ClientSecretCredential, DefaultAzureCredential, TokenCredential } from "@azure/identity"; import { env, isPlaybackMode, RecorderEnvironmentSetup } from "@azure-tools/test-recorder"; +import { createXhrHttpClient } from "@azure/test-utils"; import { SmsClient, SmsClientOptions } from "../../../src"; export const recorderConfiguration: RecorderEnvironmentSetup = { @@ -63,7 +58,7 @@ function createCredential(): TokenCredential { export function createSmsClient(): SmsClient { // workaround: casting because min testing has issues with httpClient newer versions having extra optional fields return new SmsClient(env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING, { - httpClient: createTestHttpClient(), + httpClient: createXhrHttpClient(), } as SmsClientOptions); } @@ -72,27 +67,6 @@ export function createSmsClientWithToken(): SmsClient { const credential: TokenCredential = createCredential(); // workaround: casting because min testing has issues with httpClient newer versions having extra optional fields return new SmsClient(endpoint, credential, { - httpClient: createTestHttpClient(), + httpClient: createXhrHttpClient(), } as SmsClientOptions); } - -function createTestHttpClient(): HttpClient { - const customHttpClient = new DefaultHttpClient(); - - const originalSendRequest = customHttpClient.sendRequest; - customHttpClient.sendRequest = async function ( - httpRequest: WebResourceLike - ): Promise { - const requestResponse = await originalSendRequest.apply(this, [httpRequest]); - - console.log( - `MS-CV header for request: ${httpRequest.url} (${ - requestResponse.status - } - ${requestResponse.headers.get("ms-cv")})` - ); - - return requestResponse; - }; - - return customHttpClient; -} From 0f613f8e36ba9508b4e0197507689149289f32ff Mon Sep 17 00:00:00 2001 From: Arif Ibrahim Mohamed Date: Wed, 6 Apr 2022 17:38:06 -0700 Subject: [PATCH 02/10] fixed build issue --- .../communication-sms/src/extractOperationOptions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/communication/communication-sms/src/extractOperationOptions.ts b/sdk/communication/communication-sms/src/extractOperationOptions.ts index b04081580731..ca377c609676 100644 --- a/sdk/communication/communication-sms/src/extractOperationOptions.ts +++ b/sdk/communication/communication-sms/src/extractOperationOptions.ts @@ -9,7 +9,7 @@ export const extractOperationOptions = ( operationOptions: OperationOptions; restOptions: Pick>; } => { - const { abortSignal, requestOptions, tracingOptions, ...restOptions } = obj; + const { abortSignal, onResponse, requestOptions, serializerOptions, tracingOptions, ...restOptions } = obj; return { operationOptions: { From 5f824f6039b51ca8d98a31e29f0c4cbca9c693c7 Mon Sep 17 00:00:00 2001 From: Arif Ibrahim Mohamed Date: Thu, 7 Apr 2022 12:49:49 -0700 Subject: [PATCH 03/10] unit test fixes --- .../test/internal/smsClient.internal.mocked.spec.ts | 4 ++-- .../communication-sms/test/public/smsClient.mocked.spec.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/communication/communication-sms/test/internal/smsClient.internal.mocked.spec.ts b/sdk/communication/communication-sms/test/internal/smsClient.internal.mocked.spec.ts index 4fcccaac4f5d..06d62f4982eb 100644 --- a/sdk/communication/communication-sms/test/internal/smsClient.internal.mocked.spec.ts +++ b/sdk/communication/communication-sms/test/internal/smsClient.internal.mocked.spec.ts @@ -16,7 +16,7 @@ const API_VERSION = apiVersion.mapper.defaultValue; const TEST_NUMBER = "+14255550123"; describe("[mocked] SmsClient Internal", async () => { - const baseUri = "https://contoso.api.fake:443"; + const baseUri = "https://contoso.api.fake"; const connectionString = `endpoint=${baseUri};accesskey=banana`; let sendRequestSpy: sinon.SinonSpy; let uuidStub: sinon.SinonStub; @@ -46,7 +46,7 @@ describe("[mocked] SmsClient Internal", async () => { assert.equal(request.url, `${baseUri}/sms?api-version=${API_VERSION}`); assert.equal(request.method, "POST"); const expectedRequestBody = generateSendMessageRequest(testSendRequest); - assert.deepEqual(JSON.parse(request.body), expectedRequestBody); + assert.deepEqual(JSON.parse(request.body as string), expectedRequestBody); }); it("generates a new repeatability id each time", async () => { diff --git a/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts b/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts index bee303cb039a..f49046808fb1 100644 --- a/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts +++ b/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts @@ -13,7 +13,7 @@ import { TokenCredential } from "@azure/identity"; const TEST_NUMBER = "+14255550123"; describe("[mocked] SmsClient", async () => { - const baseUri = "https://contoso.api.fake:443"; + const baseUri = "https://contoso.api.fake"; const connectionString = `endpoint=${baseUri};accesskey=banana`; const dateHeader = "x-ms-date"; let sendRequestSpy: sinon.SinonSpy; @@ -60,7 +60,7 @@ describe("[mocked] SmsClient", async () => { const request = sendRequestSpy.getCall(0).args[0]; if (isNode) { - assert.equal(request.headers.get("host"), "contoso.api.fake:443"); + assert.equal(request.headers.get("host"), "contoso.api.fake"); } assert.typeOf(request.headers.get(dateHeader), "string"); assert.isDefined(request.headers.get("authorization")); From 582dbffe11900f9fba3efbe27f86869655fc52fd Mon Sep 17 00:00:00 2001 From: Arif Ibrahim Mohamed Date: Thu, 7 Apr 2022 16:18:29 -0700 Subject: [PATCH 04/10] record test mode fix --- common/config/rush/pnpm-lock.yaml | 6 ++++-- .../test/public/utils/recordedClient.ts | 11 +++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index d73687344798..09139d63802b 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -13751,7 +13751,7 @@ packages: dev: false file:projects/communication-chat.tgz: - resolution: {integrity: sha512-YqwqjqvbsxN+86jD8WiqsV0F2LLUEa+lKEVxOkshL+IIWqXU0Aurdl2Iqg9hXjRy7B6tVK1Ai8SrihO0uDqg7Q==, tarball: file:projects/communication-chat.tgz} + resolution: {integrity: sha512-F2p5XwoV7jQhN9ZEN8CJLDdTq1UBXLM0Ch9Ciz0KgJIsHFEnC6gts26YWXpJnvqligsIbdgdSoEGQSGxEEcfAA==, tarball: file:projects/communication-chat.tgz} name: '@rush-temp/communication-chat' version: 0.0.0 dependencies: @@ -14056,7 +14056,7 @@ packages: dev: false file:projects/communication-sms.tgz: - resolution: {integrity: sha512-efgxx/5lr5+VFVtYRJA1RDpz855G4/vWDu46HSfmlDgbpmZLRreKcUeB3/2vG8tPyxyJc1BNPDzmpg2SjRKVxw==, tarball: file:projects/communication-sms.tgz} + resolution: {integrity: sha512-FLvHt8YCR95J93gFFd+J0Q6yX1RQMrjeteihyIWNmdk/tukSYrqDAWOlTgvJtPFc9Rw5wVPPkvhkY7GtEjz7xQ==, tarball: file:projects/communication-sms.tgz} name: '@rush-temp/communication-sms' version: 0.0.0 dependencies: @@ -14069,6 +14069,7 @@ packages: '@types/mocha': 7.0.2 '@types/node': 12.20.43 '@types/sinon': 9.0.11 + '@types/uuid': 8.3.4 chai: 4.3.6 cross-env: 7.0.3 dotenv: 8.6.0 @@ -14095,6 +14096,7 @@ packages: tslib: 2.3.1 typescript: 4.2.4 util: 0.12.4 + uuid: 8.3.2 transitivePeerDependencies: - bufferutil - debug diff --git a/sdk/communication/communication-sms/test/public/utils/recordedClient.ts b/sdk/communication/communication-sms/test/public/utils/recordedClient.ts index c35da3852d57..5e2a79e08a80 100644 --- a/sdk/communication/communication-sms/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-sms/test/public/utils/recordedClient.ts @@ -4,10 +4,12 @@ import { parseConnectionString } from "@azure/communication-common"; import { isNode } from "@azure/core-util"; import { ClientSecretCredential, DefaultAzureCredential, TokenCredential } from "@azure/identity"; -import { env, isPlaybackMode, RecorderEnvironmentSetup } from "@azure-tools/test-recorder"; +import { env, isLiveMode, isPlaybackMode, RecorderEnvironmentSetup } from "@azure-tools/test-recorder"; import { createXhrHttpClient } from "@azure/test-utils"; import { SmsClient, SmsClientOptions } from "../../../src"; +const httpClient = isNode || isLiveMode() ? undefined : createXhrHttpClient(); + export const recorderConfiguration: RecorderEnvironmentSetup = { replaceableVariables: { COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING: "endpoint=https://endpoint/;accesskey=banana", @@ -49,7 +51,8 @@ function createCredential(): TokenCredential { return new ClientSecretCredential( env.AZURE_TENANT_ID, env.AZURE_CLIENT_ID, - env.AZURE_CLIENT_SECRET + env.AZURE_CLIENT_SECRET, + { httpClient } ); } } @@ -58,7 +61,7 @@ function createCredential(): TokenCredential { export function createSmsClient(): SmsClient { // workaround: casting because min testing has issues with httpClient newer versions having extra optional fields return new SmsClient(env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING, { - httpClient: createXhrHttpClient(), + httpClient, } as SmsClientOptions); } @@ -67,6 +70,6 @@ export function createSmsClientWithToken(): SmsClient { const credential: TokenCredential = createCredential(); // workaround: casting because min testing has issues with httpClient newer versions having extra optional fields return new SmsClient(endpoint, credential, { - httpClient: createXhrHttpClient(), + httpClient, } as SmsClientOptions); } From 278780c8293868f2cc35a26f1378b9a9a30267e7 Mon Sep 17 00:00:00 2001 From: Arif Ibrahim Mohamed Date: Fri, 8 Apr 2022 05:52:37 -0700 Subject: [PATCH 05/10] recording updated --- .../recording_can_send_an_sms_message.json | 34 ++----- ...an_sms_message_to_multiple_recipients.json | 34 ++----- ...an_sms_message_with_options_passed_in.json | 34 ++----- ..._new_message_each_time_send_is_called.json | 55 ++---------- ...en_sending_from_a_number_you_dont_own.json | 34 ++----- ...n_when_sending_from_an_invalid_number.json | 33 ++----- .../recording_can_send_an_sms_message.json | 16 ++-- ...an_sms_message_to_multiple_recipients.json | 16 ++-- ...an_sms_message_with_options_passed_in.json | 18 ++-- ..._new_message_each_time_send_is_called.json | 34 +++---- ...en_sending_from_a_number_you_dont_own.json | 20 ++--- ...n_when_sending_from_an_invalid_number.json | 18 ++-- .../recording_can_send_an_sms_message.js | 66 +++++++------- ...d_an_sms_message_to_multiple_recipients.js | 66 +++++++------- ...d_an_sms_message_with_options_passed_in.js | 74 +++++++++------- ..._a_new_message_each_time_send_is_called.js | 88 ++++++++++--------- ...when_sending_from_a_number_you_dont_own.js | 74 +++++++++------- ...ion_when_sending_from_an_invalid_number.js | 72 ++++++++------- .../recording_can_send_an_sms_message.js | 22 ++--- ...d_an_sms_message_to_multiple_recipients.js | 22 ++--- ...d_an_sms_message_with_options_passed_in.js | 24 ++--- ..._a_new_message_each_time_send_is_called.js | 46 +++++----- ...when_sending_from_a_number_you_dont_own.js | 30 ++++--- ...ion_when_sending_from_an_invalid_number.js | 24 ++--- 24 files changed, 429 insertions(+), 525 deletions(-) diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json index 8779249e214b..d90329684873 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json @@ -4,45 +4,25 @@ "method": "POST", "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=1k9VaCT---MeE%7EiBrPgN7V84XPYQ59P6_j&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"sanitized\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1327", "content-type": "application/json; charset=utf-8", - "date": "Thu, 27 May 2021 20:29:21 GMT", + "date": "Fri, 08 Apr 2022 12:51:10 GMT", "expires": "-1", "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+chi\"}]}", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+est\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11722.21 - NCUS ProdSlices", - "x-ms-request-id": "5923c900-2e4a-4826-8b06-9eff9ee12b00" - } - }, - { - "method": "POST", - "url": "https://endpoint/sms", - "query": { - "api-version": "2021-03-07" - }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false}}", - "status": 202, - "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_20210527202922c067b109-445e-439c-806e-798bab291ff1_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":true}]}", - "responseHeaders": { - "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", - "content-type": "application/json; charset=utf-8", - "date": "Thu, 27 May 2021 20:29:21 GMT", - "ms-cv": "SWTUjgg8TUi9SXM9E5Vc/g.0", - "request-context": "appId=", - "status": "202", - "x-azure-ref": "0IQGwYAAAAACLJk6U5nRuSqSHAkKb6DvpWVZSMzBFREdFMDQxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "x-cache": "CONFIG_NOCACHE", - "x-processing-time": "529ms" + "x-ms-ests-server": "2.1.12621.9 - WUS2 ProdSlices", + "x-ms-request-id": "29940708-53c5-46e0-830a-5f23cd163d00", + "x-xss-protection": "0" } } ], @@ -50,5 +30,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "6d39c9c57e9160d4a3a0e376be58c39d" + "hash": "4bcdd6659364710541989b8bee3507ee" } \ No newline at end of file diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json index 8a4c09b12a7c..fd09f90e7eed 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -4,45 +4,25 @@ "method": "POST", "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=1k9VaCT---MeE%7EiBrPgN7V84XPYQ59P6_j&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"sanitized\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1327", "content-type": "application/json; charset=utf-8", - "date": "Thu, 27 May 2021 20:29:24 GMT", + "date": "Fri, 08 Apr 2022 12:51:13 GMT", "expires": "-1", "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+chi\"}]}", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+est\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11722.21 - NCUS ProdSlices", - "x-ms-request-id": "c7dd59c3-bb43-4f6b-ad62-83fd8b2b2c00" - } - }, - { - "method": "POST", - "url": "https://endpoint/sms", - "query": { - "api-version": "2021-03-07" - }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"},{\"to\":\"+1425555012345\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false}}", - "status": 202, - "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_202105272029245281822e-1036-46e2-9e81-4a2ae7ef09e6_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":true},{\"to\":\"+1425555012345\",\"httpStatusCode\":400,\"errorMessage\":\"Invalid To phone number format.\",\"successful\":false}]}", - "responseHeaders": { - "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", - "content-type": "application/json; charset=utf-8", - "date": "Thu, 27 May 2021 20:29:24 GMT", - "ms-cv": "zVDKUNGn+UuH274gnpB+kg.0", - "request-context": "appId=", - "status": "202", - "x-azure-ref": "0JAGwYAAAAAAzpqhWwVUFQrXeruGhnyoTWVZSMzBFREdFMDQxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "x-cache": "CONFIG_NOCACHE", - "x-processing-time": "519ms" + "x-ms-ests-server": "2.1.12621.9 - SCUS ProdSlices", + "x-ms-request-id": "25945dff-5e04-4270-be95-f6acc1464600", + "x-xss-protection": "0" } } ], @@ -50,5 +30,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "2eb6de647e1107f39688ece93bdde8b3" + "hash": "e5e54e711569bace350ec5c4564b4b23" } \ No newline at end of file diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json index 869591008884..db9510c05b21 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json @@ -4,45 +4,25 @@ "method": "POST", "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=1k9VaCT---MeE%7EiBrPgN7V84XPYQ59P6_j&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"sanitized\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1327", "content-type": "application/json; charset=utf-8", - "date": "Thu, 27 May 2021 20:29:22 GMT", + "date": "Fri, 08 Apr 2022 12:51:11 GMT", "expires": "-1", "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+chi\"}]}", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+est\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11722.21 - SCUS ProdSlices", - "x-ms-request-id": "8d1c9a6e-9e39-4e2b-8f63-70ee295d2f00" - } - }, - { - "method": "POST", - "url": "https://endpoint/sms", - "query": { - "api-version": "2021-03-07" - }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":true,\"tag\":\"SMS_LIVE_TEST\"}}", - "status": 202, - "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_20210527202922043dbf80-73a3-4c87-8d5a-2a5713452329_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":true}]}", - "responseHeaders": { - "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", - "content-type": "application/json; charset=utf-8", - "date": "Thu, 27 May 2021 20:29:22 GMT", - "ms-cv": "G5IRlBpt7EWeh48d+kJ/dw.0", - "request-context": "appId=", - "status": "202", - "x-azure-ref": "0IgGwYAAAAACFfYcvK5JkSJ6VVYVEylM6WVZSMzBFREdFMDQxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "x-cache": "CONFIG_NOCACHE", - "x-processing-time": "523ms" + "x-ms-ests-server": "2.1.12621.9 - SCUS ProdSlices", + "x-ms-request-id": "9d208c7f-3031-4a4b-b963-9be402be4600", + "x-xss-protection": "0" } } ], @@ -50,5 +30,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "513763af6208d96eebc5802f066cb6e5" + "hash": "06d6d20999014a4ee7a7796c5e5ac76a" } \ No newline at end of file diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json index ece4f00f08dc..5bbe63b0c4a5 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json @@ -4,66 +4,25 @@ "method": "POST", "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=1k9VaCT---MeE%7EiBrPgN7V84XPYQ59P6_j&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"sanitized\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1327", "content-type": "application/json; charset=utf-8", - "date": "Thu, 27 May 2021 20:29:22 GMT", + "date": "Fri, 08 Apr 2022 12:51:12 GMT", "expires": "-1", "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+chi\"}]}", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+est\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11722.21 - SCUS ProdSlices", - "x-ms-request-id": "5be8e4b7-85e3-494d-9cd7-e47cb4012b00" - } - }, - { - "method": "POST", - "url": "https://endpoint/sms", - "query": { - "api-version": "2021-03-07" - }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":true,\"tag\":\"SMS_LIVE_TEST\"}}", - "status": 202, - "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_20210527202923596059fc-bc11-4dce-a984-5f11bc039c37_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":true}]}", - "responseHeaders": { - "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", - "content-type": "application/json; charset=utf-8", - "date": "Thu, 27 May 2021 20:29:23 GMT", - "ms-cv": "UEvZjDs7vk6mihgtg4nQJw.0", - "request-context": "appId=", - "status": "202", - "x-azure-ref": "0IwGwYAAAAADsfeNFn1WwRZDCMuLl4gRgWVZSMzBFREdFMDQxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "x-cache": "CONFIG_NOCACHE", - "x-processing-time": "519ms" - } - }, - { - "method": "POST", - "url": "https://endpoint/sms", - "query": { - "api-version": "2021-03-07" - }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":true,\"tag\":\"SMS_LIVE_TEST\"}}", - "status": 202, - "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_20210527202924586ac239-1542-497f-866a-236c52441f1a_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":true}]}", - "responseHeaders": { - "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", - "content-type": "application/json; charset=utf-8", - "date": "Thu, 27 May 2021 20:29:24 GMT", - "ms-cv": "85ISOcHB20y9Smjy6cbglw.0", - "request-context": "appId=", - "status": "202", - "x-azure-ref": "0IwGwYAAAAAB+gPdbQ3S3R5UPucUia5b6WVZSMzBFREdFMDQxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "x-cache": "CONFIG_NOCACHE", - "x-processing-time": "529ms" + "x-ms-ests-server": "2.1.12621.9 - WUS2 ProdSlices", + "x-ms-request-id": "f4f7c94b-ac8a-4a99-b31d-e45984e03600", + "x-xss-protection": "0" } } ], @@ -71,5 +30,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "79dd2ab18eaa39469f724e185887a994" + "hash": "d41e935127f967fa836f5203486c2049" } \ No newline at end of file diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json index 034b6f899c89..dc0c0e36065a 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -4,45 +4,25 @@ "method": "POST", "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=1k9VaCT---MeE%7EiBrPgN7V84XPYQ59P6_j&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"sanitized\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1327", "content-type": "application/json; charset=utf-8", - "date": "Thu, 27 May 2021 20:29:24 GMT", + "date": "Fri, 08 Apr 2022 12:51:14 GMT", "expires": "-1", "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+chi\"}]}", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+est\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11722.21 - NCUS ProdSlices", - "x-ms-request-id": "c7dd59c3-bb43-4f6b-ad62-83fda42b2c00" - } - }, - { - "method": "POST", - "url": "https://endpoint/sms", - "query": { - "api-version": "2021-03-07" - }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":true,\"tag\":\"SMS_LIVE_TEST\"}}", - "status": 401, - "response": "", - "responseHeaders": { - "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", - "content-length": "0", - "date": "Thu, 27 May 2021 20:29:25 GMT", - "ms-cv": "Fon5+ph9zUWtnAJxc1PBjA.0", - "request-context": "appId=", - "status": "401", - "x-azure-ref": "0JQGwYAAAAABNRG4wEAxsT642/yBqvPpdWVZSMzBFREdFMDQxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "x-cache": "CONFIG_NOCACHE", - "x-processing-time": "421ms" + "x-ms-ests-server": "2.1.12621.9 - SCUS ProdSlices", + "x-ms-request-id": "9d208c7f-3031-4a4b-b963-9be47cbe4600", + "x-xss-protection": "0" } } ], @@ -50,5 +30,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "c282ce4bca8ed2b180118d3cec818d82" + "hash": "d9f97bf1b0608a03810d5571884c2756" } \ No newline at end of file diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json index 030b16949363..91bbd9190174 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -4,44 +4,25 @@ "method": "POST", "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=1k9VaCT---MeE%7EiBrPgN7V84XPYQ59P6_j&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"sanitized\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1327", "content-type": "application/json; charset=utf-8", - "date": "Thu, 27 May 2021 20:29:25 GMT", + "date": "Fri, 08 Apr 2022 12:51:15 GMT", "expires": "-1", "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+chi\"}]}", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+est\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11722.21 - EUS ProdSlices", - "x-ms-request-id": "c958b1c7-d5d2-43a7-a6ca-b13fe03a3b00" - } - }, - { - "method": "POST", - "url": "https://endpoint/sms", - "query": { - "api-version": "2021-03-07" - }, - "requestBody": "{\"from\":\"+1425555012345\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":true,\"tag\":\"SMS_LIVE_TEST\"}}", - "status": 400, - "response": "{\"From\":[\"Invalid From phone number format\"]}", - "responseHeaders": { - "content-type": "application/json; charset=utf-8", - "date": "Thu, 27 May 2021 20:29:25 GMT", - "ms-cv": "7EANnXQYnUSMpcg0vELoww.0", - "request-context": "appId=", - "status": "400", - "x-azure-ref": "0JQGwYAAAAAAE3oMtKW9jTYVCpzgPVl64WVZSMzBFREdFMDQxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "x-cache": "CONFIG_NOCACHE", - "x-processing-time": "12ms" + "x-ms-ests-server": "2.1.12621.9 - NCUS ProdSlices", + "x-ms-request-id": "63c1f730-6e4c-403b-a543-650cbbdf2800", + "x-xss-protection": "0" } } ], @@ -49,5 +30,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "f90fd00200508634c1acae0fd4a9d9c7" + "hash": "e830f0d478454c137a071b9e63b90611" } \ No newline at end of file diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json index c6618b5e1eb9..b803d168fe72 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json @@ -8,16 +8,16 @@ }, "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false}}", "status": 202, - "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_20210424015251c05b9140-7557-4913-a30c-23c8ed2d2f2a_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":true}]}", + "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_202204081251165e0e8fd4-3c87-4071-b741-0c43a13f1692_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":false}]}", "responseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "content-type": "application/json; charset=utf-8", - "date": "Sat, 24 Apr 2021 01:52:51 GMT", - "ms-cv": "GZmfpT+VGk+fm00Kb6s/vw.0", - "request-context": "appId=", - "status": "202", - "x-azure-ref": "083mDYAAAAACcyAjrCafIRZ03l9iuawYZWVZSMzBFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "x-processing-time": "351ms" + "date": "Fri, 08 Apr 2022 12:51:15 GMT", + "ms-cv": "B9o3D5cW8Ui3PsTL6Hmtaw.0", + "strict-transport-security": "max-age=2592000", + "x-azure-ref": "0xC9QYgAAAADVU/1HO+nBSK681MrScymCV1NURURHRTA4MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "x-cache": "CONFIG_NOCACHE", + "x-processing-time": "503ms" } } ], @@ -25,5 +25,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "6d39c9c57e9160d4a3a0e376be58c39d" + "hash": "4bcdd6659364710541989b8bee3507ee" } \ No newline at end of file diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json index 6100404cdaa3..2f55cbd386d0 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -8,16 +8,16 @@ }, "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"},{\"to\":\"+1425555012345\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false}}", "status": 202, - "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_20210424015253e635a2eb-13ad-4ef0-9967-b59e15538de6_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":true},{\"to\":\"+1425555012345\",\"httpStatusCode\":400,\"errorMessage\":\"Invalid To phone number format.\",\"successful\":false}]}", + "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_20220408125118f88dc062-9bcf-4167-b76c-4858fe80f1ea_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":false},{\"to\":\"+1425555012345\",\"httpStatusCode\":400,\"errorMessage\":\"Invalid To phone number format.\",\"successful\":false}]}", "responseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "content-type": "application/json; charset=utf-8", - "date": "Sat, 24 Apr 2021 01:52:53 GMT", - "ms-cv": "Lk5VfjPmPEOAl+AhEkWfpA.0", - "request-context": "appId=", - "status": "202", - "x-azure-ref": "09XmDYAAAAACzKfXGsiYpT6GWIplAsb/PWVZSMzBFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "x-processing-time": "395ms" + "date": "Fri, 08 Apr 2022 12:51:17 GMT", + "ms-cv": "kQDHr3ooY0SGpPRBpUeORg.0", + "strict-transport-security": "max-age=2592000", + "x-azure-ref": "0xi9QYgAAAABSFZx+qUynQo/ZM/E7LQ2HV1NURURHRTA4MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "x-cache": "CONFIG_NOCACHE", + "x-processing-time": "362ms" } } ], @@ -25,5 +25,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "2eb6de647e1107f39688ece93bdde8b3" + "hash": "e5e54e711569bace350ec5c4564b4b23" } \ No newline at end of file diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json index 18c196c22994..c5bfe30d0c8e 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json @@ -6,18 +6,18 @@ "query": { "api-version": "2021-03-07" }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":true,\"tag\":\"SMS_LIVE_TEST\"}}", + "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false,\"tag\":\"SMS_LIVE_TEST\"}}", "status": 202, - "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_20210424015252995ea4c1-b445-4573-abd8-dfe422c5ea4a_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":true}]}", + "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_20220408125117e60c73f7-813f-4941-bcd8-866c2c03d287_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":false}]}", "responseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "content-type": "application/json; charset=utf-8", - "date": "Sat, 24 Apr 2021 01:52:51 GMT", - "ms-cv": "ymMZpmMnsUKaY5GdOU2XWQ.0", - "request-context": "appId=", - "status": "202", - "x-azure-ref": "083mDYAAAAABwOiRcWR+fQokiumdcrengWVZSMzBFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "x-processing-time": "386ms" + "date": "Fri, 08 Apr 2022 12:51:16 GMT", + "ms-cv": "jNa9FdBgP0uyC37vrek2Gg.0", + "strict-transport-security": "max-age=2592000", + "x-azure-ref": "0xC9QYgAAAADqBfSTXXIrTL+OEAB8dIsmV1NURURHRTA4MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "x-cache": "CONFIG_NOCACHE", + "x-processing-time": "355ms" } } ], @@ -25,5 +25,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "513763af6208d96eebc5802f066cb6e5" + "hash": "06d6d20999014a4ee7a7796c5e5ac76a" } \ No newline at end of file diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json index 2d8c10c2bcea..ad9edf315b47 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json @@ -6,18 +6,18 @@ "query": { "api-version": "2021-03-07" }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":true,\"tag\":\"SMS_LIVE_TEST\"}}", + "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false,\"tag\":\"SMS_LIVE_TEST\"}}", "status": 202, - "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_202104240152528ec5c4ad-e3c4-4961-b7be-4cf45cec3905_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":true}]}", + "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_2022040812511733d67a71-f031-4456-b32c-ca8d747af1ab_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":false}]}", "responseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "content-type": "application/json; charset=utf-8", - "date": "Sat, 24 Apr 2021 01:52:52 GMT", - "ms-cv": "QwJfO72hc0mBzIY+CakQLg.0", - "request-context": "appId=", - "status": "202", - "x-azure-ref": "09HmDYAAAAABTKE2XhR6/Rb81k9ewYLVjWVZSMzBFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "x-processing-time": "392ms" + "date": "Fri, 08 Apr 2022 12:51:16 GMT", + "ms-cv": "zldw85C6QEyB+VN1KYYd9A.0", + "strict-transport-security": "max-age=2592000", + "x-azure-ref": "0xS9QYgAAAAATYjsP2dsXSqtJq2Hxd27AV1NURURHRTA4MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "x-cache": "CONFIG_NOCACHE", + "x-processing-time": "360ms" } }, { @@ -26,18 +26,18 @@ "query": { "api-version": "2021-03-07" }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":true,\"tag\":\"SMS_LIVE_TEST\"}}", + "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false,\"tag\":\"SMS_LIVE_TEST\"}}", "status": 202, - "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_2021042401525343fbb265-a944-4690-8f02-74deb17f5924_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":true}]}", + "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_20220408125118196349e8-ab78-4683-94b7-cc942140f2c4_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":false}]}", "responseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "content-type": "application/json; charset=utf-8", - "date": "Sat, 24 Apr 2021 01:52:52 GMT", - "ms-cv": "kwki6TxoLESl3X2+PViHOg.0", - "request-context": "appId=", - "status": "202", - "x-azure-ref": "09HmDYAAAAACDwFVlR96wSbRUMpKm2oV+WVZSMzBFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "x-processing-time": "474ms" + "date": "Fri, 08 Apr 2022 12:51:17 GMT", + "ms-cv": "mShCeXt08EeyJZMJj8JTVg.0", + "strict-transport-security": "max-age=2592000", + "x-azure-ref": "0xS9QYgAAAACHiOVr6BHUTLSvJe3Us0v8V1NURURHRTA4MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "x-cache": "CONFIG_NOCACHE", + "x-processing-time": "359ms" } } ], @@ -45,5 +45,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "79dd2ab18eaa39469f724e185887a994" + "hash": "d41e935127f967fa836f5203486c2049" } \ No newline at end of file diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json index e63b5d4e9b4c..b9f6c5e7dc5c 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -6,18 +6,18 @@ "query": { "api-version": "2021-03-07" }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":true,\"tag\":\"SMS_LIVE_TEST\"}}", + "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false,\"tag\":\"SMS_LIVE_TEST\"}}", "status": 401, - "response": "", + "response": "{\"error\":{\"code\":\"Unauthorized\",\"message\":\"\"}}", "responseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", - "content-length": "0", - "date": "Sat, 24 Apr 2021 01:52:53 GMT", - "ms-cv": "y+3Yvbaic0C7ZqJfdqp0YA.0", - "request-context": "appId=", - "status": "401", - "x-azure-ref": "09XmDYAAAAAB16lq36mMsSorud4RPhNHKWVZSMzBFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "x-processing-time": "332ms" + "content-type": "application/json", + "date": "Fri, 08 Apr 2022 12:51:17 GMT", + "ms-cv": "mpG3MQK4dEW30W5QhCVoog.0", + "strict-transport-security": "max-age=2592000", + "x-azure-ref": "0xi9QYgAAAADVV2erLt8UQoS2pJlTC7L6V1NURURHRTA4MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "x-cache": "CONFIG_NOCACHE", + "x-processing-time": "280ms" } } ], @@ -25,5 +25,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "c282ce4bca8ed2b180118d3cec818d82" + "hash": "d9f97bf1b0608a03810d5571884c2756" } \ No newline at end of file diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json index 1b6a6b0afbcc..b53648a0114c 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -6,17 +6,17 @@ "query": { "api-version": "2021-03-07" }, - "requestBody": "{\"from\":\"+1425555012345\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":true,\"tag\":\"SMS_LIVE_TEST\"}}", + "requestBody": "{\"from\":\"+1425555012345\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false,\"tag\":\"SMS_LIVE_TEST\"}}", "status": 400, - "response": "{\"From\":[\"Invalid From phone number format\"]}", + "response": "{\"From\":[\"Invalid from phone number format.\"]}", "responseHeaders": { "content-type": "application/json; charset=utf-8", - "date": "Sat, 24 Apr 2021 01:52:53 GMT", - "ms-cv": "rD6ustT2CkSDMUR116HyDA.0", - "request-context": "appId=", - "status": "400", - "x-azure-ref": "09nmDYAAAAAD7F6OU/oGkRYIC1qwVN6wQWVZSMzBFREdFMDMxNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "x-processing-time": "13ms" + "date": "Fri, 08 Apr 2022 12:51:18 GMT", + "ms-cv": "NBNERT7+JUannyDetc+N+Q.0", + "strict-transport-security": "max-age=2592000", + "x-azure-ref": "0xy9QYgAAAAAPvhh6sI7IQJoyOa0+3xzMV1NURURHRTA4MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "x-cache": "CONFIG_NOCACHE", + "x-processing-time": "20ms" } } ], @@ -24,5 +24,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "f90fd00200508634c1acae0fd4a9d9c7" + "hash": "e830f0d478454c137a071b9e63b90611" } \ No newline at end of file diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.js index d4d8952114ad..56723b6029f8 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.js +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.js @@ -1,12 +1,12 @@ let nock = require('nock'); -module.exports.hash = "40a36a477f7f16678261c29cc32a4387"; +module.exports.hash = "83d058dc072c9d4f54912651d15b4836"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .get('/common/discovery/instance') - .query(true) + .query(false) .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/SomeTenantId/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ 'Cache-Control', 'max-age=86400, private', @@ -23,26 +23,26 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '39dd7de9-8509-4828-9e19-2e2e59572c03', + '839e65f7-d190-4492-8445-2e4e17462002', 'x-ms-ests-server', - '2.1.11722.21 - NCUS ProdSlices', + '2.1.12570.16 - SCUS ProdSlices', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55Uw; expires=Sat, 26-Jun-2021 20:29:05 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ApxA_ocS0kRHgiC5hLQ_CRE; expires=Sun, 08-May-2022 12:50:55 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIAl0Tk7CZgYfnpL7aGiKMhHPhTo2xJs75e49t2gdGiuRoaXbYQFArwx2cNt-0wZe-HFMQCreui9Srwhkhtc7pTVC6af1Q2eXOzlY74uc6xeF_vJAiseLJ-TvBrQh2jXuyyjLWe4k9yqZb7LTvb063GFDpolO29MxVeJ0j7wryFMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrqzvm3jti4EZinBHhHyntf29ASfAqrDE78BbotnbPngH2qHxD9XGdtfW69wBvAbSiOfMAiV5Gdjzr-hD4dDhINUpPYtIGuUjX42sBQhuDz6infZIcaZg_mi860oydz-srxb7mqvpfb4ZYTLcI8N1jKe9TYH91uSahX98Vwocfaw8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:04 GMT', + 'Fri, 08 Apr 2022 12:50:55 GMT', 'Content-Length', '980' ]); -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .get('/SomeTenantId/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":false,"frontchannel_logout_supported":false,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/SomeTenantId/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ 'Cache-Control', 'max-age=86400, private', 'Content-Type', @@ -58,25 +58,27 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'f81f51cd-28eb-4a78-9a5c-66358f3c3900', + '39c1a46f-8755-4ce9-a899-a065c21b4400', 'x-ms-ests-server', - '2.1.11722.21 - NCUS ProdSlices', + '2.1.12621.9 - SCUS ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55Uw; expires=Sat, 26-Jun-2021 20:29:05 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=As7TN3sr-rdIi2f6RE74Dk4; expires=Sun, 08-May-2022 12:50:55 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrqKynDS850nTqcb_ucHNBE34wc3DgJBlDB7PKN-VfhzNfS87hvIRjIgRhy8q2i9AwJS_hUTDe0HJeQVcFyYChZm6zXqVAu2lvfS8Me5zQzKP7ZxoG7xepKTijsCXOtALznVGTPOl7xy7SAzIRPP7gIr4eT8Xgjpd2pqla5naWY0ogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrfVaPyvP7CbVhXjksiodIoTMgS1NwLT_GJhrv1PsRHq7REZaJFQA1hmVkp_HRual7VjJdwqNaJf15qHCVpXMnoGCEk0RYnRWUgnFL3SyX5-Nq42eY6cEyOYhIhCEBknL1aj38Ibum9KILfJGCGuQjh2yum2OEmuaVSVkqw-FdUbogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:04 GMT', + 'Fri, 08 Apr 2022 12:50:55 GMT', 'Content-Length', - '1651' + '1753' ]); -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=4d10d2e3-9740-4d46-a770-933d9b60d8f7&client_secret=azure_client_secret") +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.5.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=04bdf40f-fbbc-4f13-9ab7-3aa184326f17&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,43 +95,45 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'c17c8575-3d06-4a25-aecd-db6ae42c3500', + '39c1a46f-8755-4ce9-a899-a065c71b4400', 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', + '2.1.12621.9 - SCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QAQAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:05 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArNvJv5hmIJMgkQ7Fi5XTtWVC-yCAQAAAK8m4tkOAAAA; expires=Sun, 08-May-2022 12:50:55 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:04 GMT', + 'Fri, 08 Apr 2022 12:50:55 GMT', 'Content-Length', '1327' ]); -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false}}) - .query(true) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20210527202905764df9f5-f3ad-4635-82ac-de1458b9e4f6_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":true}]}, [ + .query(false) + .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_202204081250560be43b78-d2e3-4f37-ad08-20ac984bff0c_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', 'MS-CV', - 'ZqD5ncDjq0Wl0JfPM80o5g.0', + 'vnIosNtte0eT7qZSGMkZig.0', + 'Strict-Transport-Security', + 'max-age=2592000', 'api-supported-versions', '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', 'X-Processing-Time', - '453ms', + '721ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0EQGwYAAAAABUTyeWVRTeS7EAhcn/+a4AWVZSMzBFREdFMDQwOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', + '0ry9QYgAAAADM+vErIRRoT7lKDiHXyPpKV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Thu, 27 May 2021 20:29:05 GMT' + 'Fri, 08 Apr 2022 12:50:55 GMT' ]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js index fd0621148293..b1950d7a40b3 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js @@ -1,12 +1,12 @@ let nock = require('nock'); -module.exports.hash = "c9d3b30b09556d605a1814b7cc66c2ba"; +module.exports.hash = "ddf1e270fd770f2610ccf69742b2c3d7"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .get('/common/discovery/instance') - .query(true) + .query(false) .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/SomeTenantId/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ 'Cache-Control', 'max-age=86400, private', @@ -23,26 +23,26 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '34fb361a-0b79-48a3-8f4d-34e6246d3602', + '0f366ec3-695e-4648-93b0-c3f75f861702', 'x-ms-ests-server', - '2.1.11722.21 - NCUS ProdSlices', + '2.1.12570.16 - EUS ProdSlices', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QAwAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:08 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=An2mhAAGKFRGrht1XtSdYXs; expires=Sun, 08-May-2022 12:50:59 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrgaP1zxj85lLHly3Z6Tto1QhvC-COHngZXzChKgCxRoWAhiXEO8kmbSQBwzOfHL8O9wn4TV0YdxU8NzGHTfA3V8vfdgNjG94aLQkxnPD-QBpMJlefWH0naY3ZPCSKsMPHDzNZZaYYhMNGm5XFs8IidBsxUA76R04U_e33bOerJdQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrEAZ_a1hhkZskEY1pq93voD6-YY3-uJOLfinz_q6IQmzSAR5NgKDPgnhQgg2UWJ960LPTDIwEJbB1gFT4RnAqM5h9H86Uu1Z3YYmv47ovciC9OUOVGE27tsasW7ns0SdXxyrPHAJ1s15HXdZyLJpa_r80Ch29faVUYFkO3Q1kgbIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:07 GMT', + 'Fri, 08 Apr 2022 12:50:59 GMT', 'Content-Length', '980' ]); -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .get('/SomeTenantId/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":false,"frontchannel_logout_supported":false,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/SomeTenantId/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ 'Cache-Control', 'max-age=86400, private', 'Content-Type', @@ -58,25 +58,27 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '937bc6da-0192-48e1-906f-92f2c0aa3900', + 'e0fe102d-95bd-4d89-9d50-bd6580b24100', 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', + '2.1.12621.9 - EUS ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QAwAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:08 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag34fNkwMGNFopmAizxaCZI; expires=Sun, 08-May-2022 12:50:59 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0TV_25CnTM1Tdshk24oLijYvIQxzGJ0QrDSQTei2c8kXl5vo_Q02Q5lQZhufokXuig6q9yLUSlpAUCahvz0x7_eHbc6h25r4l5WYrxD3MrjBObx4VMR4ZLnHrtNJH_44l7WvQ2fuXXw3rkd5WBJGavqyyi1t9NiSoAwDvlIJcTAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXu_EPo-yKKVXZ_IdDSJtd_FjhRH3aQXJYCNMVTqfa3cLJG3_T4_3dNxG6Nkj2n6NJX34AfUOkWjQAHoMMo4nEAHh5leYZIKSEGiCGslZkVQIDpvq1tZWnWm5MkrnTrxYWsNaw1zzsFbvvmVFpCQt9I9XVY4WbwoTJNlAokQ_giMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:08 GMT', + 'Fri, 08 Apr 2022 12:50:59 GMT', 'Content-Length', - '1651' + '1753' ]); -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=e5401dcb-275e-4fd4-a8bb-f85e67cb0b40&client_secret=azure_client_secret") +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.5.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=59010e13-ee66-44ab-837c-00bf8eb905f0&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,43 +95,45 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '88a09481-aea9-44fa-a8a8-7527da133800', + '88078335-7759-4b1e-8ead-c5b277f24700', 'x-ms-ests-server', - '2.1.11722.21 - NCUS ProdSlices', + '2.1.12621.9 - SCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QBAAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:08 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Avs9glRN41ZNi4tadSuHsHiVC-yCAQAAALMm4tkOAAAA; expires=Sun, 08-May-2022 12:50:59 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:08 GMT', + 'Fri, 08 Apr 2022 12:50:59 GMT', 'Content-Length', '1327' ]); -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"},{"to":"+1425555012345","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false}}) - .query(true) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_202105272029096dc2d7c7-c7a5-4eea-a441-a4ead65db22e_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":true},{"to":"+1425555012345","httpStatusCode":400,"errorMessage":"Invalid To phone number format.","successful":false}]}, [ + .query(false) + .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20220408125100d352c8f5-1c99-4dee-92ec-3346eb9a428b_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false},{"to":"+1425555012345","httpStatusCode":400,"errorMessage":"Invalid To phone number format.","successful":false}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', 'MS-CV', - 'yVtgbNkXrkydf7SLDpruYA.0', + '07gQD7ZSUUygkyA5G0FAMg.0', + 'Strict-Transport-Security', + 'max-age=2592000', 'api-supported-versions', '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', 'X-Processing-Time', - '594ms', + '553ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0FAGwYAAAAAAor5fOH2++TbQcH4rLHHi4WVZSMzBFREdFMDQwOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', + '0sy9QYgAAAAANgdu7GNMUTpK+eXkaqNhdV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Thu, 27 May 2021 20:29:08 GMT' + 'Fri, 08 Apr 2022 12:50:59 GMT' ]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js index 920c6f26ce8e..37ee3f3ca15a 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js @@ -1,17 +1,15 @@ let nock = require('nock'); -module.exports.hash = "e63a7c0807966575ec1513c6eb0a2b17"; +module.exports.hash = "94a53f2b724b1d07990177d0612de57d"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .get('/common/discovery/instance') - .query(true) + .query(false) .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/SomeTenantId/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ 'Cache-Control', 'max-age=86400, private', - 'Content-Length', - '980', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', @@ -25,24 +23,28 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '4e450aff-e68c-41e9-913c-e91a839f0f02', + '2ee7d765-6b15-45a0-af1b-68977f8f4f00', 'x-ms-ests-server', - '2.1.11722.21 - NCUS ProdSlices', + '2.1.12621.9 - EUS ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QAQAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:06 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=An0OlD40N5tKkpUCTQaPlYQ; expires=Sun, 08-May-2022 12:50:56 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrbfsmG8fr1RhS2Qv7tDa8U5sAE23A-IYP-5zHWoN5N9GoOkxjMWFUnTOCu5F0512hi8pCSxMsXn51imrEgFt_mXpnbGWx-ZFNeXOi0S5nva4y2py9GEfG_kIVeYylqIXXnnG2ybAZ-nPg6mnKd7YLjSzzqIiXW-UecjKyi7kN-p4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1Jkrg4u9YKKrpS7nv3ZQJ0MdOEDy49aqqKQp1Xh3CzriSFixyoKdJ5kQncrbOLmdtKzAgYlPUfAT23QO-A5gvworAAH9omJB4KfSH9vaJ9F6LgUNkrIhfUwSurmuHpKu4IXZITnTUPL1u0NXdFnzCMWqfl4SQStSInojUfBXOf4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:05 GMT' + 'Fri, 08 Apr 2022 12:50:56 GMT', + 'Content-Length', + '980' ]); -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .get('/SomeTenantId/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":false,"frontchannel_logout_supported":false,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/SomeTenantId/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ 'Cache-Control', 'max-age=86400, private', 'Content-Type', @@ -58,25 +60,27 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '1d38f11b-bf66-4290-9b3c-fee1a9b53100', + '9f7837e8-f418-48e9-b1c8-8f3aee873e00', 'x-ms-ests-server', - '2.1.11722.21 - SCUS ProdSlices', + '2.1.12621.9 - WUS2 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QAQAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:06 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AgGRcDjIq6FNphSNMLzZIRo; expires=Sun, 08-May-2022 12:50:56 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrf2mjE7BAuI-1GyaqmwcooO7nxx9A9U_b6867UwDCn44b7r2dYKH8tJtMmEN20YLa5Q-ZLd00ZTnX_77KM8KbD0Yv2kEpOKDblmyThDrofKBuM4g0HjCdBBVfYH66dX1vyKTfNdM1rG40ove1kvnMRMZwn0S4WviEO77aBqfXJF4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrT2R5vZOM_L3X1k23UrStq45DXYGcZ0X0PiQKJAhgzkDdHddPOqrlZu2gyNNIj0iknSsAXrlYSGsabcc0buLS0gJO5mHISxwnUnLi8kCojbtu-EX3tIwmL3hljZpnXCh9DUUhwkO4CfFXOtiZ03hNcHWOIeJXxuk2tvtvbTds6A4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:05 GMT', + 'Fri, 08 Apr 2022 12:50:56 GMT', 'Content-Length', - '1651' + '1753' ]); -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=aeabd791-df32-414b-8db4-6c98bf24d150&client_secret=azure_client_secret") +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.5.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=ec4b54ec-d54a-47e7-a204-84ba66529f64&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,43 +97,45 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '2a0db59b-a9de-42a9-9c48-cf213c7a3f00', + '9f7837e8-f418-48e9-b1c8-8f3af6873e00', 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', + '2.1.12621.9 - WUS2 ProdSlices', 'x-ms-clitelem', '1,0,0,,', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QAgAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:06 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArakOoUf9n9OgUoDEOuqT00; expires=Sun, 08-May-2022 12:50:57 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:05 GMT', + 'Fri, 08 Apr 2022 12:50:57 GMT', 'Content-Length', '1327' ]); -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":true,"tag":"SMS_LIVE_TEST"}}) - .query(true) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20210527202906de23b54e-52fb-4fb5-8610-08b19aa8d507_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":true}]}, [ +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) + .query(false) + .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_2022040812505782015270-019f-4958-9c16-b042d0f9d6c9_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', 'MS-CV', - '6/KLbp17rUuG6bnQdPFQkA.0', + 'm8hsYyEMXEmxtCLTvQF65w.0', + 'Strict-Transport-Security', + 'max-age=2592000', 'api-supported-versions', '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', 'X-Processing-Time', - '447ms', + '524ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0EgGwYAAAAACnnxoT1UQpT61J9snPcIxrWVZSMzBFREdFMDQwOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', + '0sS9QYgAAAAD04/MGJAfyR4TKqsatpmlsV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Thu, 27 May 2021 20:29:06 GMT' + 'Fri, 08 Apr 2022 12:50:57 GMT' ]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js index c50967724445..424d924e067d 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js @@ -1,12 +1,12 @@ let nock = require('nock'); -module.exports.hash = "ead77ee45b60a585c7ffd2d2bad4b030"; +module.exports.hash = "9a17617be8b47b129ee4b7eda55945c8"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .get('/common/discovery/instance') - .query(true) + .query(false) .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/SomeTenantId/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ 'Cache-Control', 'max-age=86400, private', @@ -23,26 +23,26 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '1e79af0f-8b85-4ca9-9a32-f597de203102', + 'f38503be-112a-4db8-8d25-4d0054a11001', 'x-ms-ests-server', - '2.1.11722.21 - NCUS ProdSlices', + '2.1.12570.16 - NCUS ProdSlices', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QAgAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:07 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AtGRToNsxeVHgTxql1abIs0; expires=Sun, 08-May-2022 12:50:57 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr3Wo1Ynw73QCBhfJ4QFHIdDu7XoyHOzBA8rvwM6DOtCTCw5EU8cE2cjWl7bRUDtHTbSVmwfsMxzhLhnhOjOP_5pbN6QMLRdPaxRbh-_buX8IyDDcROlcoVlfZopDnGWETmdPOTW6FlmyVISzdemvdRTyAS7DYUNkpQrRUmOMZFMQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_nuK888cMD7aLhzGJNb5pEZH2zxLifP31MVVkeTVyg3iPKLY9bzdEdzaZL6JOeOwltrsQsZD5YfOYbtflLzUmaIrM-1P6GAlniAmDImLWvfIX9uuhp8ZYLPz20JCrUFbOpEiNOvlGIdM4XLic26YIDH7LFmA0bClCw8_lBIZaQ8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:06 GMT', + 'Fri, 08 Apr 2022 12:50:57 GMT', 'Content-Length', '980' ]); -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .get('/SomeTenantId/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":false,"frontchannel_logout_supported":false,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/SomeTenantId/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ 'Cache-Control', 'max-age=86400, private', 'Content-Type', @@ -58,25 +58,27 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '2a0db59b-a9de-42a9-9c48-cf215a7a3f00', + '39c1a46f-8755-4ce9-a899-a0653b1c4400', 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', + '2.1.12621.9 - SCUS ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QAgAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:07 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AuFLd09iAAdNkvwaJ2UEkPc; expires=Sun, 08-May-2022 12:50:58 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrN6P27MrkNg88TBrsWMzpzepCJ55e44haUW5SHP6cV7F-3GKM4_FlvfIFtwg5A5FwRuZRnH02z5nrlHkW65g2YquqF0IRsaBKdtX2hJOu6vU62XdBAjP9khyliVkogOtqsC9LE-3w66zKm02NUujhsIe1_YwXc08gUu0z_ahPut4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrr8J_3JkfZJiQRse83LsIPGCFwKZ_ENmYh5m_239wHvcU8nLs79IGFFTuymzLZAFXO08UtKX6JksyTnwioYsItyOyzgEr5vLbw8GAXmPfhsbsqcfT6WCluEmoJExYkCVVL4ktQ9Fc--e1sU1ewZwUq8dWm17smMrwJ5WyARfITRIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:06 GMT', + 'Fri, 08 Apr 2022 12:50:57 GMT', 'Content-Length', - '1651' + '1753' ]); -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=0e6c9a53-e879-423a-a78f-319c80caa605&client_secret=azure_client_secret") +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.5.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=d1cf6aa1-4107-4156-baed-346c43cd3979&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,67 +95,69 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'f81f51cd-28eb-4a78-9a5c-6635ef3c3900', + '63c1f730-6e4c-403b-a543-650c87de2800', 'x-ms-ests-server', - '2.1.11722.21 - NCUS ProdSlices', + '2.1.12621.9 - NCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QAwAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:07 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AsUXpIj1vtdFub6za8lKI3aVC-yCAQAAALEm4tkOAAAA; expires=Sun, 08-May-2022 12:50:58 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:06 GMT', + 'Fri, 08 Apr 2022 12:50:58 GMT', 'Content-Length', '1327' ]); -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":true,"tag":"SMS_LIVE_TEST"}}) - .query(true) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_2021052720290784cb5efb-e912-4243-b50b-e1b69c215f2b_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":true}]}, [ +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) + .query(false) + .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_202204081250588653b103-9b67-41b4-990e-b81d30838d93_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', 'MS-CV', - 'ZrQeW3u9Hk+NsneSpBYWYw.0', + 'ubLRb/tEHE2HAZUFWglA1w.0', + 'Strict-Transport-Security', + 'max-age=2592000', 'api-supported-versions', '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', 'X-Processing-Time', - '596ms', + '547ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0EwGwYAAAAADlJD1VOcvXQIubMSJZLXsUWVZSMzBFREdFMDQwOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', + '0si9QYgAAAADXL9WjVzihS7S3WiGKgfDKV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Thu, 27 May 2021 20:29:07 GMT' + 'Fri, 08 Apr 2022 12:50:58 GMT' ]); -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":true,"tag":"SMS_LIVE_TEST"}}) - .query(true) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_2021052720290863b227be-ea83-46c8-84f2-918c1b8e77a8_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":true}]}, [ +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) + .query(false) + .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_2022040812505903d967f0-8187-4ded-b0ba-ea1515838718_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', 'MS-CV', - 'Nkv+pI/xbEiQxrS+lqgrFQ.0', + 'mVSat6xJ1kOHNi8H9Ftgbg.0', + 'Strict-Transport-Security', + 'max-age=2592000', 'api-supported-versions', '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', 'X-Processing-Time', - '445ms', + '537ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0FAGwYAAAAACAmxNSYzYZRJY29giSLHGSWVZSMzBFREdFMDQwOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', + '0si9QYgAAAABMImX6EinPQaJKKiiMlh6ZV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Thu, 27 May 2021 20:29:07 GMT' + 'Fri, 08 Apr 2022 12:50:58 GMT' ]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js index 2d4bc2fbbd08..de0449821360 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js @@ -1,12 +1,12 @@ let nock = require('nock'); -module.exports.hash = "a7dbd7ed4811fa01946ced50fd8c3336"; +module.exports.hash = "fcd97290e112ccfacfa0fdb8ed965072"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .get('/common/discovery/instance') - .query(true) + .query(false) .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/SomeTenantId/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ 'Cache-Control', 'max-age=86400, private', @@ -23,26 +23,26 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '7e3acf1a-8680-47c5-9980-419915519801', + '5d245aeb-9f02-412a-af61-6256820e6401', 'x-ms-ests-server', - '2.1.11722.21 - NCUS ProdSlices', + '2.1.12570.16 - EUS ProdSlices', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QBAAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AuBa9t_9astNl3ukf82BunI; expires=Sun, 08-May-2022 12:51:00 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrkj-dpQHi8fvBW53_c03raVi0vs3g7P1IpGMoj40gumEiNlQT2rBzrRzhxAFL6VgT0Ho-5jVNJYq4C_X8VVjHKrEpDZiQS8eYdBta30gfvgy_w1oTVSB5x02y9maDK4oeYzaBO7SU-r0uDkKUdsDJUc4vNxgKePS3GMXLXxcQyywgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr43o-9kQeKjA-kNj2foDLmQm2sYomO_ktYG4qU_aQA2DOYGASGMJ2ItWyGKTnFJ3AuqoOuBDGmGL53Znc2TdoAjiTtuKYBZgzpR54MbHTHfY9i178cKzwUi5rAjZwN8vOrsu5R_mrl9hCASi-CN2b-E7mbkSQXNU5be0wHqOWyNMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:08 GMT', + 'Fri, 08 Apr 2022 12:51:00 GMT', 'Content-Length', '980' ]); -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .get('/SomeTenantId/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":false,"frontchannel_logout_supported":false,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/SomeTenantId/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ 'Cache-Control', 'max-age=86400, private', 'Content-Type', @@ -58,25 +58,27 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'c17c8575-3d06-4a25-aecd-db6a862d3500', + '39c1a46f-8755-4ce9-a899-a065bb1c4400', 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', + '2.1.12621.9 - SCUS ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QBAAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ap9srd5fT79AnuCKc4LgWXI; expires=Sun, 08-May-2022 12:51:00 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrV3UFzdt90UqQUkooAeG-aoKGCtsn2DKiJZm40pnPN2FZVQWKZ_arlR4tpcvAGr7bHhHZWHuvxbzeZRg8nhTaJ5-O-V8bqo1IZCRXKvupo5zQ54HW6EfpECe0to6Mqx5QZAJ3FgSfxZQuoNjP9NDnIv6CvCj3lgbf2_rZc26vp30gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrboeXFyjkKuxOL4IsCO3RyO9-_xZGt4maDKqD-l4VyO2dvC7_4HlHcaBFENJocAX-7cjGjib01jGxvwzbHfyQ6JRFMtcpgntnKa6tbQ44QJWOqWBl9tJOn2Nie7L9kGD-fkDt6OLDrQPCSs-7dhNmRtQBKZ7ZiGuUh2Od3cHDKvkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:09 GMT', + 'Fri, 08 Apr 2022 12:51:00 GMT', 'Content-Length', - '1651' + '1753' ]); -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=10eda0f7-ca0b-4f68-a814-abcb1d979b71&client_secret=azure_client_secret") +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.5.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=8d2f720e-d3cb-4fa2-8f28-1b2a3a05b7ed&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,41 +95,45 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '4d0cc186-fd91-4969-8f3b-367182e03100', + '4eef928d-8f5d-4a1b-b4f2-bf9bd8743900', 'x-ms-ests-server', - '2.1.11722.21 - NCUS ProdSlices', + '2.1.12621.9 - NCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QBQAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AjE0LmwM251Nnr_bw5u6p9qVC-yCAQAAALQm4tkOAAAA; expires=Sun, 08-May-2022 12:51:00 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:09 GMT', + 'Fri, 08 Apr 2022 12:51:00 GMT', 'Content-Length', '1327' ]); -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":true,"tag":"SMS_LIVE_TEST"}}) - .query(true) - .reply(401, "", [ - 'Request-Context', - 'appId=', +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) + .query(false) + .reply(401, {"error":{"code":"Unauthorized","message":""}}, [ + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', 'MS-CV', - 'pTAPzeFkMEyLLGjqzSr+Nw.0', + 'uPDGh8GPVEuI7BJ0hNtSkg.0', + 'Strict-Transport-Security', + 'max-age=2592000', 'api-supported-versions', '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', 'X-Processing-Time', - '416ms', + '634ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0FQGwYAAAAACiE7Qijsh4TrSHRunUqP1SWVZSMzBFREdFMDQwOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', + '0tC9QYgAAAAC4fe3N/2CSSLwik/1/12epV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Thu, 27 May 2021 20:29:09 GMT', - 'Content-Length', - '0' + 'Fri, 08 Apr 2022 12:51:00 GMT' ]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js index 9d53e41973d4..edc3248f34a6 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js @@ -1,17 +1,15 @@ let nock = require('nock'); -module.exports.hash = "e40572f5ed6d1f0cd7c4a5809ef38226"; +module.exports.hash = "025a6529e78fc34152b097fad8ae5137"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .get('/common/discovery/instance') - .query(true) + .query(false) .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/SomeTenantId/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ 'Cache-Control', 'max-age=86400, private', - 'Content-Length', - '980', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', @@ -25,24 +23,26 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '79ed6191-897d-4dfd-924d-9ec23e320c00', + '11c31ab4-ee11-4660-ae79-291c1d496401', 'x-ms-ests-server', - '2.1.11722.21 - WUS2 ProdSlices', + '2.1.12570.16 - SCUS ProdSlices', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QBQAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:10 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Anslv3F6F09DgmvFodZSkO8; expires=Sun, 08-May-2022 12:51:01 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrN3-sT-lkX_Iew10TwlmO77QOWObJg3FOTznlKFp-aJQX7Wv9BG7qr6XK9B-r5o7vpJ2_Fe-LJazF7VYQRS24T-k3cPoMRFb40n_iusHR3O8Wv1lUs1UgN4PGLlIEq8nfgZhBR2VoTVxBrh1aSpESn_tvABaqdfSzn1JzJDYgXZMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_ekrBvG0SzpQcK3CA_CLLhR_iqj4ZQnRqvbVk3wgSTZvbIXtEiPwv2tD2yWwXIR5_lmQlxZWcZPoPSvsnUVzDgAvuYZhMGw4l8T8NK0pvcJPFoyRAV4cpw-590vpUfhfKeK35uGls5fBmRhX69Vfb54jsTWjLXYMAHCWmZjT5HYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:09 GMT' + 'Fri, 08 Apr 2022 12:51:01 GMT', + 'Content-Length', + '980' ]); -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .get('/SomeTenantId/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":false,"frontchannel_logout_supported":false,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/SomeTenantId/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ 'Cache-Control', 'max-age=86400, private', 'Content-Type', @@ -58,25 +58,27 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'ca966073-a41b-4041-8283-4e5cd5e62e00', + '29940708-53c5-46e0-830a-5f2392153d00', 'x-ms-ests-server', - '2.1.11722.21 - NCUS ProdSlices', + '2.1.12621.9 - WUS2 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QBQAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:10 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AgcstaUkgVxIibzagyE9DFo; expires=Sun, 08-May-2022 12:51:01 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrSqZ-JmOAa-bn0S8jNYMII7r4ZyB-AKkfH3YHNGl8Z10C0ndFzEhHsUSww-Taa1eH3jekJuaY4t8B7T-873jCcfX_vH5Ub0KJqow2k2UzA_YO5hC0IEmu2ALeeWq8UA8w0lLT9dCtB0Dpnavh7TBPc3DlR5GYDFvgaicYEadPl2cgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrEpHUWsJeLmId78CGVhLO3EO0PhPQoXjKwHly0fHuDMZgUvhxTbL2k94tu8qn-AkccIloFAvIbqCCnjdjKSS_G5awGVSZY0sYEflQ756pyOpX-6tkEpy91wZL6k9eGkrwHYTEWFsiycHhc_xyko1Ik5xK2SmVnu2sUSLacHu_C3IgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:09 GMT', + 'Fri, 08 Apr 2022 12:51:01 GMT', 'Content-Length', - '1651' + '1753' ]); -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=4830c82c-d7ff-4e21-90f9-f1aee8c0f8bf&client_secret=azure_client_secret") +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.5.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=b32c83cd-4626-49ec-bf26-c8ac72dd279c&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,41 +95,43 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '1307d250-65cd-44fd-8e29-66c696c23700', + 'ad5d6047-6b35-4fb1-803a-803343391c00', 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', + '2.1.12621.9 - NCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=An8aJvjkv89FlfmGvJw55UyMQo4QBgAAABH4QdgOAAAA; expires=Sat, 26-Jun-2021 20:29:10 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AtX8-WQs-05LjYstdXVFb2eVC-yCAQAAALQm4tkOAAAA; expires=Sun, 08-May-2022 12:51:01 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Thu, 27 May 2021 20:29:09 GMT', + 'Fri, 08 Apr 2022 12:51:01 GMT', 'Content-Length', '1327' ]); -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+1425555012345","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":true,"tag":"SMS_LIVE_TEST"}}) - .query(true) - .reply(400, {"From":["Invalid From phone number format"]}, [ +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/sms', {"from":"+1425555012345","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) + .query(false) + .reply(400, {"From":["Invalid from phone number format."]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', 'MS-CV', - 'SA/l67NMckGa+pCzB5VtxQ.0', + 'kwDj3jEMS0aydDEhcNXu8g.0', + 'Strict-Transport-Security', + 'max-age=2592000', 'X-Processing-Time', - '11ms', + '13ms', 'X-Cache', 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0FgGwYAAAAADFHz0JYh2eTrQBy5dYuC+wWVZSMzBFREdFMDQwOAA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', + '0ti9QYgAAAAA9F7XWKY64Sp5tni0jv3lOV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Thu, 27 May 2021 20:29:09 GMT' + 'Fri, 08 Apr 2022 12:51:01 GMT' ]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.js index e3e4048ee8be..91e7527068c8 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.js +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.js @@ -1,27 +1,29 @@ let nock = require('nock'); -module.exports.hash = "40a36a477f7f16678261c29cc32a4387"; +module.exports.hash = "83d058dc072c9d4f54912651d15b4836"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false}}) - .query(true) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20210414013827e95f8f5b-c129-4a1a-a39e-7d06a437c854_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":true}]}, [ + .query(false) + .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20220408125102f1a233ab-ccc6-4dd9-9b45-c40699f77526_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', 'MS-CV', - 'mRsHX8x4wEeYDPkyEw5Npg.0', + 'UatUYe+iRE+mMA26nTtEAQ.0', + 'Strict-Transport-Security', + 'max-age=2592000', 'api-supported-versions', '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', 'X-Processing-Time', - '407ms', + '703ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0k0d2YAAAAACd8L/11PytR4y2EsXVWYu8WVZSMzBFREdFMDQwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', + '0ti9QYgAAAACEkyZs0E5hRoYslXqtv16EV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Wed, 14 Apr 2021 01:38:27 GMT' + 'Fri, 08 Apr 2022 12:51:02 GMT' ]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js index fe0dbd08d03a..69fabeddf06b 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js @@ -1,27 +1,29 @@ let nock = require('nock'); -module.exports.hash = "c9d3b30b09556d605a1814b7cc66c2ba"; +module.exports.hash = "ddf1e270fd770f2610ccf69742b2c3d7"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://endpoint', {"encodedQueryParams":true}) +nock('https://endpoint', {"encodedQueryParams":false}) .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"},{"to":"+1425555012345","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false}}) - .query(true) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20210414013829167f51fa-45ff-4106-85dd-81c0b715bce2_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":true},{"to":"+1425555012345","httpStatusCode":400,"errorMessage":"Invalid To phone number format.","successful":false}]}, [ + .query(false) + .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20220408125105bd3371ca-ff15-4858-89ad-204b1d9f82f5_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false},{"to":"+1425555012345","httpStatusCode":400,"errorMessage":"Invalid To phone number format.","successful":false}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', 'MS-CV', - 'jXQLy02CnEG2oCceCgOsng.0', + '1pzm+9k42EqOgeDksoOQGg.0', + 'Strict-Transport-Security', + 'max-age=2592000', 'api-supported-versions', '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', 'X-Processing-Time', - '419ms', + '496ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0lUd2YAAAAACG02ZTQVQ+TYol7gfNMZ1aWVZSMzBFREdFMDQwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', + '0uC9QYgAAAAAfGVsGj6Z6SpHMAAFUuxD1V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Wed, 14 Apr 2021 01:38:29 GMT' + 'Fri, 08 Apr 2022 12:51:04 GMT' ]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js index c867fff68672..0563c40e8b3c 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js @@ -1,27 +1,29 @@ let nock = require('nock'); -module.exports.hash = "e63a7c0807966575ec1513c6eb0a2b17"; +module.exports.hash = "94a53f2b724b1d07990177d0612de57d"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":true,"tag":"SMS_LIVE_TEST"}}) - .query(true) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_2021041401382882bd6c8f-ea22-4cba-aaa5-500a23ca1031_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":true}]}, [ +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) + .query(false) + .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20220408125103487140b9-7af5-4ad8-b3c4-1d0a8a01c829_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', 'MS-CV', - 'mJZriLyLgE6zuBi8rGCfwg.0', + 'dNrjuXfCSEe9BlDX4plKYg.0', + 'Strict-Transport-Security', + 'max-age=2592000', 'api-supported-versions', '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', 'X-Processing-Time', - '468ms', + '511ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0k0d2YAAAAACEfy5ivpcmTo6xRbM0pCApWVZSMzBFREdFMDQwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', + '0ti9QYgAAAACQRYgMWK9wQoo/bKPYolR/V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Wed, 14 Apr 2021 01:38:27 GMT' + 'Fri, 08 Apr 2022 12:51:02 GMT' ]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js index 16aa1ba4604c..1d37cbd65c24 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js @@ -1,49 +1,53 @@ let nock = require('nock'); -module.exports.hash = "ead77ee45b60a585c7ffd2d2bad4b030"; +module.exports.hash = "9a17617be8b47b129ee4b7eda55945c8"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":true,"tag":"SMS_LIVE_TEST"}}) - .query(true) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20210414013828e5905091-e190-4c5b-a79e-c8495fe7fb3f_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":true}]}, [ +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) + .query(false) + .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20220408125103677036d2-c2c1-49e6-84e2-d701e17ffa64_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', 'MS-CV', - 'ZmYnkPzSP0etITBUhXEvdQ.0', + 'CqFLy9PB60uxYqcXOf0wgQ.0', + 'Strict-Transport-Security', + 'max-age=2592000', 'api-supported-versions', '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', 'X-Processing-Time', - '412ms', + '516ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0lEd2YAAAAABXDbz5AlT+TZ5eW7djv1CDWVZSMzBFREdFMDQwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', + '0ty9QYgAAAABrt1fqTozNSaWdlUbC6oWJV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Wed, 14 Apr 2021 01:38:28 GMT' + 'Fri, 08 Apr 2022 12:51:03 GMT' ]); -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":true,"tag":"SMS_LIVE_TEST"}}) - .query(true) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_2021041401382933eb6bdb-b494-49dc-9a5a-d95412248c25_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":true}]}, [ +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) + .query(false) + .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_202204081251045a6dbc77-463c-4ab1-ba7a-6042562fcb3f_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', 'MS-CV', - 'YZp5v4EUqEW9suYFg98xoQ.0', + 'l0h5QLBDx0+ulECfRMChFg.0', + 'Strict-Transport-Security', + 'max-age=2592000', 'api-supported-versions', '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', 'X-Processing-Time', - '466ms', + '540ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0lEd2YAAAAACGCcWlRThPQqKWH2+WNvWDWVZSMzBFREdFMDQwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', + '0uC9QYgAAAADv8CjTw4qXQIqtP1VoVB9FV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Wed, 14 Apr 2021 01:38:28 GMT' + 'Fri, 08 Apr 2022 12:51:03 GMT' ]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js index 5ed8985d0d3c..ec26c803ddd7 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js @@ -1,25 +1,29 @@ let nock = require('nock'); -module.exports.hash = "5696e18bc3ef230575e50ba9cb548bad"; +module.exports.hash = "fcd97290e112ccfacfa0fdb8ed965072"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":true,"tag":"SMS_LIVE_TEST"}}) - .query(true) - .reply(401, "", [ - 'Request-Context', - 'appId=', +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) + .query(false) + .reply(401, {"error":{"code":"Unauthorized","message":""}}, [ + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', 'MS-CV', - 'e6rke9G8Bk2tqTrxOH4EeQ.0', + 'r8czj9liUEyWjd52bOX3Jw.0', + 'Strict-Transport-Security', + 'max-age=2592000', 'api-supported-versions', '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', 'X-Processing-Time', - '306ms', + '469ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '06nmDYAAAAADsunLiwVOER7aRsbyDgCtiWVZSMzBFREdFMDQwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', + '0uS9QYgAAAAD6iQn/IAPhTrJUbW5X0rGyV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Sat, 24 Apr 2021 01:52:42 GMT', - 'Content-Length', - '0' + 'Fri, 08 Apr 2022 12:51:04 GMT' ]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js index f1525d17200c..cc428523815e 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js @@ -1,25 +1,27 @@ let nock = require('nock'); -module.exports.hash = "e40572f5ed6d1f0cd7c4a5809ef38226"; +module.exports.hash = "025a6529e78fc34152b097fad8ae5137"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+1425555012345","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":true,"tag":"SMS_LIVE_TEST"}}) - .query(true) - .reply(400, {"From":["Invalid From phone number format"]}, [ +nock('https://endpoint', {"encodedQueryParams":false}) + .post('/sms', {"from":"+1425555012345","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) + .query(false) + .reply(400, {"From":["Invalid from phone number format."]}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', 'MS-CV', - '9y0LcN9MpkmVEkVsayiwnA.0', + 'dd4B/XBNPU2mvdI9pyH8Ww.0', + 'Strict-Transport-Security', + 'max-age=2592000', 'X-Processing-Time', - '12ms', + '16ms', + 'X-Cache', + 'CONFIG_NOCACHE', 'X-Azure-Ref', - '0lkd2YAAAAAB8XcFMgXW0QK0fz3sxKSHjWVZSMzBFREdFMDQwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', + '0uS9QYgAAAADQf0KcXfq3To8tfZbQUxlnV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', 'Date', - 'Wed, 14 Apr 2021 01:38:29 GMT' + 'Fri, 08 Apr 2022 12:51:04 GMT' ]); From 46c18c37c0de7834a8ed685b9c801699c42eea3b Mon Sep 17 00:00:00 2001 From: Arif Ibrahim Mohamed Date: Sun, 10 Apr 2022 14:57:43 -0700 Subject: [PATCH 06/10] migrated to new test recorder version --- .../communication-sms/karma.conf.js | 22 +-- .../communication-sms/package.json | 11 +- .../test/internal/smsClient.internal.spec.ts | 23 ++- .../test/public/smsClient.spec.ts | 28 ++-- .../test/public/utils/recordedClient.ts | 144 +++++++++++------- 5 files changed, 117 insertions(+), 111 deletions(-) diff --git a/sdk/communication/communication-sms/karma.conf.js b/sdk/communication/communication-sms/karma.conf.js index b83b8d335cba..851aae3eec2f 100644 --- a/sdk/communication/communication-sms/karma.conf.js +++ b/sdk/communication/communication-sms/karma.conf.js @@ -1,12 +1,9 @@ // https://github.com/karma-runner/karma-chrome-launcher process.env.CHROME_BIN = require("puppeteer").executablePath(); require("dotenv").config(); -const { - jsonRecordingFilterFunction, - isPlaybackMode, - isSoftRecordMode, - isRecordMode, -} = require("@azure-tools/test-recorder"); +const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); + +process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); module.exports = function (config) { config.set({ @@ -28,14 +25,10 @@ module.exports = function (config) { "karma-coverage", "karma-sourcemap-loader", "karma-junit-reporter", - "karma-json-to-file-reporter", - "karma-json-preprocessor", ], // list of files / patterns to load in the browser - files: ["dist-test/index.browser.js"].concat( - isPlaybackMode() || isSoftRecordMode() ? ["recordings/browsers/**/*.json"] : [] - ), + files: ["dist-test/index.browser.js"], // list of files / patterns to exclude exclude: [], @@ -44,7 +37,6 @@ module.exports = function (config) { // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor preprocessors: { "**/*.js": ["sourcemap", "env"], - "recordings/browsers/**/*.json": ["json"], // IMPORTANT: COMMENT following line if you want to debug in your browsers!! // Preprocess source file to calculate code coverage, however this will make source file unreadable // "dist-test/index.browser.js": ["coverage"] @@ -61,12 +53,13 @@ module.exports = function (config) { "AZURE_CLIENT_SECRET", "AZURE_TENANT_ID", "COMMUNICATION_SKIP_INT_SMS_TEST", + "RECORDINGS_RELATIVE_PATH" ], // test results reporter to use // possible values: 'dots', 'progress' // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit", "json-to-file"], + reporters: ["mocha", "coverage", "junit",], coverageReporter: { // specify a common output directory @@ -130,9 +123,6 @@ module.exports = function (config) { browserNoActivityTimeout: 600000, browserDisconnectTimeout: 10000, browserDisconnectTolerance: 3, - browserConsoleLogOptions: { - terminal: !isRecordMode(), - }, client: { mocha: { diff --git a/sdk/communication/communication-sms/package.json b/sdk/communication/communication-sms/package.json index 2bb6b322d89a..beb4f09ebf5f 100644 --- a/sdk/communication/communication-sms/package.json +++ b/sdk/communication/communication-sms/package.json @@ -23,8 +23,8 @@ "extract-api": "tsc -p . && api-extractor run --local", "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && rushx format", - "integration-test:browser": "karma start --single-run", - "integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --full-trace -t 300000 \"dist-esm/test/public/*.spec.js\" \"dist-esm/test/public/node/*.spec.js\" \"dist-esm/test/internal/*.spec.js\" \"dist-esm/test/internal/node/*.spec.js\"", + "integration-test:browser": "dev-tool run test:browser", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --ext .ts", @@ -32,8 +32,8 @@ "test:browser": "npm run build:test && npm run unit-test:browser && npm run integration-test:browser", "test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node", "test": "npm run build:test && npm run unit-test && npm run integration-test", - "unit-test:browser": "karma start --single-run", - "unit-test:node": "mocha -r esm -r ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --full-trace --exclude \"test/**/browser/*.spec.ts\" \"test/**/*.spec.ts\"", + "unit-test:browser": "dev-tool run test:browser", + "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'", "unit-test": "npm run unit-test:node && npm run unit-test:browser" }, "files": [ @@ -80,7 +80,8 @@ "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/identity": "^2.0.1", "@azure/test-utils": "^1.0.0", - "@azure-tools/test-recorder": "^1.0.0", + "@azure-tools/test-credential": "^1.0.0", + "@azure-tools/test-recorder": "^2.0.0", "@microsoft/api-extractor": "^7.18.11", "@types/chai": "^4.1.6", "@types/mocha": "^7.0.2", diff --git a/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts b/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts index 7601b189d4fd..dc47d8fea1f6 100644 --- a/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts +++ b/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts @@ -9,29 +9,23 @@ */ import { matrix } from "@azure/test-utils"; -import { isLiveMode, isPlaybackMode, record, Recorder } from "@azure-tools/test-recorder"; -import { isNode } from "@azure/core-util"; -import * as dotenv from "dotenv"; +import { isLiveMode, isPlaybackMode, Recorder } from "@azure-tools/test-recorder"; import * as sinon from "sinon"; import { Uuid } from "../../src/utils/uuid"; import { - createSmsClient, - createSmsClientWithToken, - recorderConfiguration, + createRecordedSmsClient, + createRecordedSmsClientWithToken, } from "../public/utils/recordedClient"; import { Context } from "mocha"; import sendSmsSuites from "../public/suites/smsClient.send"; +import { SmsClient } from "../../src"; -if (isNode) { - dotenv.config(); -} - -matrix([[true, false]], async function (useAad) { +matrix([[true, false]], async function (useAad: boolean) { describe(`SmsClient [Playback/Record]${useAad ? " [AAD]" : ""}`, async () => { let recorder: Recorder; + let client: SmsClient; beforeEach(async function (this: Context) { - recorder = record(this, recorderConfiguration); if (isLiveMode()) { this.skip(); @@ -41,10 +35,11 @@ matrix([[true, false]], async function (useAad) { } if (useAad) { - this.smsClient = createSmsClientWithToken(); + ({ client, recorder } = await createRecordedSmsClientWithToken(this)); } else { - this.smsClient = createSmsClient(); + ({ client, recorder } = await createRecordedSmsClient(this)); } + this.smsClient = client; }); afterEach(async function (this: Context) { diff --git a/sdk/communication/communication-sms/test/public/smsClient.spec.ts b/sdk/communication/communication-sms/test/public/smsClient.spec.ts index 4928f07a214f..cf58fe1e1b69 100644 --- a/sdk/communication/communication-sms/test/public/smsClient.spec.ts +++ b/sdk/communication/communication-sms/test/public/smsClient.spec.ts @@ -7,24 +7,19 @@ */ import { matrix } from "@azure/test-utils"; -import { record, Recorder, env } from "@azure-tools/test-recorder"; -import { isNode } from "@azure/core-util"; -import * as dotenv from "dotenv"; +import { Recorder, env } from "@azure-tools/test-recorder"; import { - createSmsClient, - createSmsClientWithToken, - recorderConfiguration, + createRecordedSmsClient, + createRecordedSmsClientWithToken, } from "./utils/recordedClient"; import { Context } from "mocha"; import sendSmsSuites from "./suites/smsClient.send"; +import { SmsClient } from "../../src"; -if (isNode) { - dotenv.config(); -} - -matrix([[true, false]], async function (useAad) { +matrix([[true, false]], async function (useAad: boolean) { describe(`SmsClient [Live]${useAad ? " [AAD]" : ""}`, async () => { let recorder: Recorder; + let client: SmsClient; before(function (this: Context) { const skipIntSMSTests = env.COMMUNICATION_SKIP_INT_SMS_TEST === "true"; @@ -34,17 +29,12 @@ matrix([[true, false]], async function (useAad) { }); beforeEach(async function (this: Context) { - recorder = record(this, recorderConfiguration); - recorder.skip( - undefined, - "A UUID is randomly generated within the SDK and used in the HTTP request and cannot be preserved." - ); - if (useAad) { - this.smsClient = createSmsClientWithToken(); + ({ client, recorder } = await createRecordedSmsClientWithToken(this)); } else { - this.smsClient = createSmsClient(); + ({ client, recorder } = await createRecordedSmsClient(this)); } + this.smsClient = client; }); afterEach(async function (this: Context) { diff --git a/sdk/communication/communication-sms/test/public/utils/recordedClient.ts b/sdk/communication/communication-sms/test/public/utils/recordedClient.ts index 5e2a79e08a80..2abc4f07e926 100644 --- a/sdk/communication/communication-sms/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-sms/test/public/utils/recordedClient.ts @@ -1,75 +1,105 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { Context, Test } from "mocha"; +import { + Recorder, + RecorderStartOptions, + SanitizerOptions, + env, + isPlaybackMode, +} from "@azure-tools/test-recorder"; +import { TokenCredential } from "@azure/core-auth"; +import { createTestCredential } from "@azure-tools/test-credential"; import { parseConnectionString } from "@azure/communication-common"; -import { isNode } from "@azure/core-util"; -import { ClientSecretCredential, DefaultAzureCredential, TokenCredential } from "@azure/identity"; -import { env, isLiveMode, isPlaybackMode, RecorderEnvironmentSetup } from "@azure-tools/test-recorder"; -import { createXhrHttpClient } from "@azure/test-utils"; -import { SmsClient, SmsClientOptions } from "../../../src"; +import { SmsClient } from "../../../src"; -const httpClient = isNode || isLiveMode() ? undefined : createXhrHttpClient(); -export const recorderConfiguration: RecorderEnvironmentSetup = { - replaceableVariables: { - COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING: "endpoint=https://endpoint/;accesskey=banana", - AZURE_PHONE_NUMBER: "+14255550123", - AZURE_CLIENT_ID: "SomeClientId", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "SomeTenantId", - COMMUNICATION_SKIP_INT_SMS_TEST: "false", - }, - customizationsOnRecordings: [ - (recording: string): string => recording.replace(/(https:\/\/)([^/',]*)/, "$1endpoint"), - (recording: string): string => - recording.replace(/"access_token"\s?:\s?"[^"]*"/g, `"access_token":"sanitized"`), - (recording: string): string => - recording.replace( - /"repeatabilityRequestId"\s?:\s?"[^"]*"/g, - `"repeatabilityRequestId":"sanitized"` - ), - (recording: string): string => - recording.replace( - /"repeatabilityFirstSent"\s?:\s?"[^"]*"/g, - `"repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"` - ), +export interface RecordedClient { + client: T; + recorder: Recorder; +} + +const envSetupForPlayback: { [k: string]: string } = { + COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING: "endpoint=https://endpoint/;accesskey=banana", + AZURE_PHONE_NUMBER: "+14255550123", + AZURE_CLIENT_ID: "SomeClientId", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "SomeTenantId", + COMMUNICATION_SKIP_INT_SMS_TEST: "false", +}; + +const sanitizerOptions: SanitizerOptions = { + connectionStringSanitizers: [ + { + actualConnString: env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING, + fakeConnString: envSetupForPlayback["COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING"], + }, + ], + generalSanitizers: [ + { regex: true, target: "(https:\/\/)([^/',]*)", value: "$1endpoint" }, + { regex: true, target: `"access_token"\s?:\s?"[^"]*"`, value: `"access_token":"sanitized"` }, + { regex: true, target: `"repeatabilityRequestId"\s?:\s?"[^"]*"`, value: `"repeatabilityRequestId":"sanitized"` }, + { regex: true, target: `"repeatabilityFirstSent"\s?:\s?"[^"]*"`, value: `"repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"` }, ], - queryParametersToSkip: [], }; -function createCredential(): TokenCredential { +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback, + sanitizerOptions: sanitizerOptions, +}; + +export async function createRecorder(context: Test | undefined): Promise { + const recorder = new Recorder(context); + await recorder.start(recorderOptions); + await recorder.setMatcher("CustomDefaultMatcher", { + excludedHeaders: [ + "Accept-Language", // This is env-dependent + "x-ms-content-sha256", // This is dependent on the current datetime + ], + }); + return recorder; +} + +export async function createRecordedSmsClient( + context: Context +): Promise> { + const recorder = await createRecorder(context.currentTest); + + const client = new SmsClient( + env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING ?? "", + recorder.configureClientOptions({}) + ); + return { + client, + recorder, + }; +} + +export async function createRecordedSmsClientWithToken( + context: Context +): Promise> { + const recorder = await createRecorder(context.currentTest); + + let credential: TokenCredential; + const endpoint = parseConnectionString(env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING ?? "").endpoint; + if (isPlaybackMode()) { - return { - getToken: async (_scopes) => { + credential = { + getToken: async (_scopes: any) => { return { token: "testToken", expiresOnTimestamp: 11111 }; }, }; } else { - if (isNode) { - return new DefaultAzureCredential(); - } else { - return new ClientSecretCredential( - env.AZURE_TENANT_ID, - env.AZURE_CLIENT_ID, - env.AZURE_CLIENT_SECRET, - { httpClient } - ); - } + credential = createTestCredential(); } -} -export function createSmsClient(): SmsClient { - // workaround: casting because min testing has issues with httpClient newer versions having extra optional fields - return new SmsClient(env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING, { - httpClient, - } as SmsClientOptions); -} + const client = new SmsClient( + endpoint, + credential, + recorder.configureClientOptions({}) + ); -export function createSmsClientWithToken(): SmsClient { - const { endpoint } = parseConnectionString(env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING); - const credential: TokenCredential = createCredential(); - // workaround: casting because min testing has issues with httpClient newer versions having extra optional fields - return new SmsClient(endpoint, credential, { - httpClient, - } as SmsClientOptions); + return { client, recorder }; } + From 1efbe0f7629b46f6f7d296b5594cc2430e17b25a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0vihl=C3=ADk?= Date: Mon, 25 Apr 2022 02:46:23 +0200 Subject: [PATCH 07/10] Make the tests pass (#2) format and test fixes --- .../communication-sms/karma.conf.js | 9 +- .../recording_can_send_an_sms_message.json | 71 ++++++- ...an_sms_message_to_multiple_recipients.json | 82 +++++++- ...an_sms_message_with_options_passed_in.json | 72 ++++++- ..._new_message_each_time_send_is_called.json | 133 ++++++++++++- ...en_sending_from_a_number_you_dont_own.json | 67 ++++++- ...n_when_sending_from_an_invalid_number.json | 65 ++++++- .../recording_can_send_an_sms_message.json | 73 ++++++- ...an_sms_message_to_multiple_recipients.json | 84 ++++++++- ...an_sms_message_with_options_passed_in.json | 74 +++++++- ..._new_message_each_time_send_is_called.json | 137 +++++++++++++- ...en_sending_from_a_number_you_dont_own.json | 69 ++++++- ...n_when_sending_from_an_invalid_number.json | 67 ++++++- .../recording_can_send_an_sms_message.json | 97 ++++++---- ...an_sms_message_to_multiple_recipients.json | 108 +++++++---- ...an_sms_message_with_options_passed_in.json | 98 ++++++---- ..._new_message_each_time_send_is_called.json | 159 ++++++++++++---- ...en_sending_from_a_number_you_dont_own.json | 93 +++++---- ...n_when_sending_from_an_invalid_number.json | 91 +++++---- .../recording_can_send_an_sms_message.json | 94 ++++++--- ...an_sms_message_to_multiple_recipients.json | 105 ++++++++--- ...an_sms_message_with_options_passed_in.json | 95 +++++++--- ..._new_message_each_time_send_is_called.json | 178 +++++++++++++----- ...en_sending_from_a_number_you_dont_own.json | 90 ++++++--- ...n_when_sending_from_an_invalid_number.json | 87 ++++++--- .../recording_can_send_an_sms_message.js | 5 - .../recording_can_send_an_sms_message.json | 56 ++++++ ...d_an_sms_message_to_multiple_recipients.js | 5 - ...an_sms_message_to_multiple_recipients.json | 67 +++++++ ...d_an_sms_message_with_options_passed_in.js | 5 - ...an_sms_message_with_options_passed_in.json | 57 ++++++ ..._a_new_message_each_time_send_is_called.js | 5 - ..._new_message_each_time_send_is_called.json | 109 +++++++++++ ...when_sending_from_a_number_you_dont_own.js | 5 - ...en_sending_from_a_number_you_dont_own.json | 52 +++++ ...ion_when_sending_from_an_invalid_number.js | 5 - ...n_when_sending_from_an_invalid_number.json | 50 +++++ .../recording_can_send_an_sms_message.js | 5 - .../recording_can_send_an_sms_message.json | 58 ++++++ ...d_an_sms_message_to_multiple_recipients.js | 5 - ...an_sms_message_to_multiple_recipients.json | 69 +++++++ ...d_an_sms_message_with_options_passed_in.js | 5 - ...an_sms_message_with_options_passed_in.json | 59 ++++++ ..._a_new_message_each_time_send_is_called.js | 5 - ..._new_message_each_time_send_is_called.json | 113 +++++++++++ ...when_sending_from_a_number_you_dont_own.js | 5 - ...en_sending_from_a_number_you_dont_own.json | 54 ++++++ ...ion_when_sending_from_an_invalid_number.js | 5 - ...n_when_sending_from_an_invalid_number.json | 52 +++++ .../recording_can_send_an_sms_message.js | 139 -------------- .../recording_can_send_an_sms_message.json | 56 ++++++ ...d_an_sms_message_to_multiple_recipients.js | 139 -------------- ...an_sms_message_to_multiple_recipients.json | 67 +++++++ ...d_an_sms_message_with_options_passed_in.js | 141 -------------- ...an_sms_message_with_options_passed_in.json | 57 ++++++ ..._a_new_message_each_time_send_is_called.js | 163 ---------------- ..._new_message_each_time_send_is_called.json | 109 +++++++++++ ...when_sending_from_a_number_you_dont_own.js | 139 -------------- ...en_sending_from_a_number_you_dont_own.json | 52 +++++ ...ion_when_sending_from_an_invalid_number.js | 137 -------------- ...n_when_sending_from_an_invalid_number.json | 50 +++++ .../recording_can_send_an_sms_message.js | 29 --- .../recording_can_send_an_sms_message.json | 58 ++++++ ...d_an_sms_message_to_multiple_recipients.js | 29 --- ...an_sms_message_to_multiple_recipients.json | 69 +++++++ ...d_an_sms_message_with_options_passed_in.js | 29 --- ...an_sms_message_with_options_passed_in.json | 59 ++++++ ..._a_new_message_each_time_send_is_called.js | 53 ------ ..._new_message_each_time_send_is_called.json | 113 +++++++++++ ...when_sending_from_a_number_you_dont_own.js | 29 --- ...en_sending_from_a_number_you_dont_own.json | 54 ++++++ ...ion_when_sending_from_an_invalid_number.js | 27 --- ...n_when_sending_from_an_invalid_number.json | 52 +++++ .../recording_can_send_an_sms_message.js | 5 - ...d_an_sms_message_to_multiple_recipients.js | 5 - ...d_an_sms_message_with_options_passed_in.js | 5 - ..._a_new_message_each_time_send_is_called.js | 5 - ...when_sending_from_a_number_you_dont_own.js | 5 - ...ion_when_sending_from_an_invalid_number.js | 5 - .../recording_can_send_an_sms_message.js | 60 ------ ...d_an_sms_message_to_multiple_recipients.js | 60 ------ ...d_an_sms_message_with_options_passed_in.js | 60 ------ ..._a_new_message_each_time_send_is_called.js | 82 -------- ...when_sending_from_a_number_you_dont_own.js | 58 ------ ...ion_when_sending_from_an_invalid_number.js | 58 ------ .../src/extractOperationOptions.ts | 9 +- .../communication-sms/src/smsClient.ts | 11 +- .../test/internal/smsClient.internal.spec.ts | 1 - .../test/public/smsClient.spec.ts | 20 +- .../test/public/utils/mockHttpClient.ts | 7 +- .../test/public/utils/recordedClient.ts | 27 +-- 91 files changed, 3461 insertions(+), 2026 deletions(-) delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js create mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_can_send_an_sms_message.js delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.js delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.js delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.js delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.js delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.js delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js delete mode 100644 sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js diff --git a/sdk/communication/communication-sms/karma.conf.js b/sdk/communication/communication-sms/karma.conf.js index 851aae3eec2f..27981e6ca282 100644 --- a/sdk/communication/communication-sms/karma.conf.js +++ b/sdk/communication/communication-sms/karma.conf.js @@ -53,13 +53,13 @@ module.exports = function (config) { "AZURE_CLIENT_SECRET", "AZURE_TENANT_ID", "COMMUNICATION_SKIP_INT_SMS_TEST", - "RECORDINGS_RELATIVE_PATH" + "RECORDINGS_RELATIVE_PATH", ], // test results reporter to use // possible values: 'dots', 'progress' // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit",], + reporters: ["mocha", "coverage", "junit"], coverageReporter: { // specify a common output directory @@ -82,11 +82,6 @@ module.exports = function (config) { properties: {}, // key value pair of properties to add to the section of the report }, - jsonToFileReporter: { - filter: jsonRecordingFilterFunction, - outputPath: ".", - }, - // web server port port: 9876, diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json index 16e7100bfe97..c6880ae7bd00 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json @@ -1,8 +1,65 @@ { - "recordings": [], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "6d39c9c57e9160d4a3a0e376be58c39d" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "230", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "358e29ad-a97a-4624-9a16-ccf126158283", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:23 GMT", + "MS-CV": "D5aS0Tz\u002BTkiT9dSx69xAWg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0S3FhYgAAAAA9PkiRVLitT6lpg0tzVyqlUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "366ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_202204211459235a22bb98-8a07-4601-b13e-692f761377c2_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json index 6761d682bf03..eb76d60e15a4 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -1,8 +1,76 @@ { - "recordings": [], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "2eb6de647e1107f39688ece93bdde8b3" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "348", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "9490473e-6982-4333-83e4-4ea9b7c6721f", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + }, + { + "to": "\u002B1425555012345", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:25 GMT", + "MS-CV": "3uN4b762TUygZaRhlJswPw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0TXFhYgAAAACLRWDayHVWSrFoQO7arTAJUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "283ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145925b80607f3-7f2e-400c-93f9-19ba1c21969e_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + }, + { + "to": "\u002B1425555012345", + "httpStatusCode": 400, + "errorMessage": "Invalid To phone number format.", + "successful": false + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json index fef73cc7ace9..6315c0ca3764 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json @@ -1,8 +1,66 @@ { - "recordings": [], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "513763af6208d96eebc5802f066cb6e5" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "f6aa13e3-21d4-4dfe-9e4f-bf68cdae1a0c", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:24 GMT", + "MS-CV": "eBXoP6Cb3UGqa0/AJ4cQmA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0THFhYgAAAABkIFkaX/GuRK5ymvnsB7c5UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "96ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_2022042114592422454580-404e-461c-9fb1-b550118fe638_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json index e58e14c7c8b6..66b8aaee1588 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json @@ -1,8 +1,127 @@ { - "recordings": [], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "79dd2ab18eaa39469f724e185887a994" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "2ff7f50d-a6d2-4971-8218-35ad7adc5e78", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:24 GMT", + "MS-CV": "M4S8Utfaw0qVKGbdKJxa3w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0THFhYgAAAABGPWOHPXpoSbESAFXv/55QUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "263ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145924d89d254b-96eb-46ef-ac96-94f9fca0d0b8_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + }, + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "35a3151e-f8d0-4557-acff-3baa5959dcff", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:25 GMT", + "MS-CV": "kBar8BkTPE25H9T1tR7JAA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0TXFhYgAAAAC24DnmWLqfRpDyNj7g1xUXUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "233ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_2022042114592527eb56db-5c6f-4975-a7b9-1102697d1592_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json index d6f408f3e1a2..d9f529b85692 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -1,8 +1,61 @@ { - "recordings": [], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "2843d7b2d8c43380ba09ed5cf0644f0a" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "fe451fbb-d995-4f1b-88b7-4208c55f3742", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 401, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json", + "Date": "Thu, 21 Apr 2022 14:59:26 GMT", + "MS-CV": "nTtGfwBgwE\u002BL5VWy6AmBOg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0TnFhYgAAAACAXeyerY/xTYH4Rt6qjJpeUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "178ms" + }, + "ResponseBody": { + "error": { + "code": "Unauthorized", + "message": "" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json index 17135575d824..a61ae430306c 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -1,8 +1,59 @@ { - "recordings": [], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "f90fd00200508634c1acae0fd4a9d9c7" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "253", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "70d0631d-2455-4012-909f-6e567bbb55ab", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B1425555012345", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 400, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:26 GMT", + "MS-CV": "Sn5xuDPfPE6qpiDZpGIz2w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0TnFhYgAAAAAaWLbssoBLSaLSCdIYdtu7UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "15ms" + }, + "ResponseBody": { + "From": [ + "Invalid from phone number format." + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message.json index 16e7100bfe97..2b1636c6b92a 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message.json @@ -1,8 +1,67 @@ { - "recordings": [], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "6d39c9c57e9160d4a3a0e376be58c39d" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "230", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "b327bdb4-b6e8-4e34-b9a6-6f5ca8f34d0f", + "x-ms-content-sha256": "7V8Q25f2RaiSaT\u002BPUgb2ccDgFx5yID7xhH43LH5Dyv8=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:26 GMT", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:27 GMT", + "MS-CV": "J9rMtrikzk2xgNZiWIDOSA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0TnFhYgAAAAAi53DtN9bRRbs85wQKJQrkUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "267ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145927520f1481-358d-4070-919e-4e738b0f1fb3_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json index 6761d682bf03..61dd253a21ae 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -1,8 +1,78 @@ { - "recordings": [], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "2eb6de647e1107f39688ece93bdde8b3" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "348", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "ea9cd442-37f2-469f-a777-17d885af401c", + "x-ms-content-sha256": "2tU2EwnEjupHSSj0f1TW1E/9ej8axtHFX1yKss76LzQ=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:28 GMT", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + }, + { + "to": "\u002B1425555012345", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:28 GMT", + "MS-CV": "K/8kyYloMU2BZrrOIBRKBA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0UHFhYgAAAABiLG\u002BLMA5gSqJkr9VlV9O9UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "234ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_202204211459289fbcfd83-ee51-4622-ace6-913aaadee921_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + }, + { + "to": "\u002B1425555012345", + "httpStatusCode": 400, + "errorMessage": "Invalid To phone number format.", + "successful": false + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json index fef73cc7ace9..83a348af7c16 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json @@ -1,8 +1,68 @@ { - "recordings": [], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "513763af6208d96eebc5802f066cb6e5" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "b32971a7-f482-4331-b1c4-786b53dfeb4c", + "x-ms-content-sha256": "hWOuD5nTpRC\u002BCcN6NyTVq6bwMdjDp7KDJ98Oq9xQxcc=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:27 GMT", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:27 GMT", + "MS-CV": "pj3Hmg1XGU28W6D4bGxAJA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0T3FhYgAAAAAADN8JecJyR59s4sLk4/QkUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "271ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145927ead03e7f-871f-4e43-89cd-2ff731658f8a_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json index e58e14c7c8b6..dac238bc8ff3 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json @@ -1,8 +1,131 @@ { - "recordings": [], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "79dd2ab18eaa39469f724e185887a994" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "17bd3f4e-0f68-4356-a066-91f46367f5c4", + "x-ms-content-sha256": "yO8B79pgOr81bdAstqxuOfpsc4Sus2TX1kDkfCrb6us=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:27 GMT", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:27 GMT", + "MS-CV": "PUOnOgD6bEehta1tlz9ZBA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0T3FhYgAAAADLSJDWlYdcR6T9u/M63I1KUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "259ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145927983da229-1630-4b04-af88-ea25be10f26f_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + }, + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "238d4278-945e-49fe-94e7-1fdf9adf99de", + "x-ms-content-sha256": "P2BAZ9G5p52sdroDden6HzOQwTv71JiYfOqTHu2XJX4=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:28 GMT", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:28 GMT", + "MS-CV": "Wi7fgNgK1EeCXH6TnMSQ0g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0UHFhYgAAAABTG7SV/ssRRYZYqaDOIquJUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "289ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_202204211459282b467ce6-be63-41af-9a4d-85ace14aaa98_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json index d6f408f3e1a2..a120578664d6 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -1,8 +1,63 @@ { - "recordings": [], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "2843d7b2d8c43380ba09ed5cf0644f0a" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "9a6c5928-1b7a-4a5a-93ec-005914faa919", + "x-ms-content-sha256": "lezAlpu3V4YNj2y3APetEbI4FxmVKe7JnYPZPqScGxI=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:28 GMT", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 401, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json", + "Date": "Thu, 21 Apr 2022 14:59:29 GMT", + "MS-CV": "B3/SO73cT029AT6VRV1Thg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0UHFhYgAAAAAsf0HeDespRq4sYRS6ficfUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "196ms" + }, + "ResponseBody": { + "error": { + "code": "Unauthorized", + "message": "" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json index 17135575d824..ea6a3729f83e 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -1,8 +1,61 @@ { - "recordings": [], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "f90fd00200508634c1acae0fd4a9d9c7" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "253", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "7da279f8-5542-4114-b961-71cccbdc9aae", + "x-ms-content-sha256": "tcMTTe54zazzLcv97UIH/UJ4SJ7zBMiY5n8qbWOXAgA=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:29 GMT", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B1425555012345", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 400, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:29 GMT", + "MS-CV": "hRapX3BLWkywhj45Rt1j6g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0UXFhYgAAAABZE7oWhRLzR7FUpV9zYBdvUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "20ms" + }, + "ResponseBody": { + "From": [ + "Invalid from phone number format." + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json index d90329684873..1498adcedf9f 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json @@ -1,34 +1,65 @@ { - "recordings": [ - { - "method": "POST", - "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", - "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=1k9VaCT---MeE%7EiBrPgN7V84XPYQ59P6_j&scope=https%3A%2F%2Fsanitized%2F", - "status": 200, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"sanitized\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1327", - "content-type": "application/json; charset=utf-8", - "date": "Fri, 08 Apr 2022 12:51:10 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+est\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12621.9 - WUS2 ProdSlices", - "x-ms-request-id": "29940708-53c5-46e0-830a-5f23cd163d00", - "x-xss-protection": "0" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "4bcdd6659364710541989b8bee3507ee" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "230", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "f21e4c75-95b8-4a32-b01a-65c9e4c231aa", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:17 GMT", + "MS-CV": "gbwA4e1w5keJTsPfpHbWGg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0RnFhYgAAAADRSDyiKG2QRL2ZGz9dOWprUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "101ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145918a340a8f1-812e-4bc3-a836-c595dbe85af8_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json index fd09f90e7eed..b39fbb0e0f4d 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -1,34 +1,76 @@ { - "recordings": [ - { - "method": "POST", - "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", - "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=1k9VaCT---MeE%7EiBrPgN7V84XPYQ59P6_j&scope=https%3A%2F%2Fsanitized%2F", - "status": 200, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"sanitized\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1327", - "content-type": "application/json; charset=utf-8", - "date": "Fri, 08 Apr 2022 12:51:13 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+est\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12621.9 - SCUS ProdSlices", - "x-ms-request-id": "25945dff-5e04-4270-be95-f6acc1464600", - "x-xss-protection": "0" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "e5e54e711569bace350ec5c4564b4b23" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "348", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "f7239b8f-2718-49f7-a535-56427d378684", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + }, + { + "to": "\u002B1425555012345", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:19 GMT", + "MS-CV": "8FwMvp3tNE\u002BiF3Y1HCeaEw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0R3FhYgAAAABRMvY5kDwwSLkEF8l/quIRUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "101ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_202204211459207b52a54a-54bf-4a31-9755-90de879063c1_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + }, + { + "to": "\u002B1425555012345", + "httpStatusCode": 400, + "errorMessage": "Invalid To phone number format.", + "successful": false + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json index db9510c05b21..b3bb45860bc6 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json @@ -1,34 +1,66 @@ { - "recordings": [ - { - "method": "POST", - "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", - "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=1k9VaCT---MeE%7EiBrPgN7V84XPYQ59P6_j&scope=https%3A%2F%2Fsanitized%2F", - "status": 200, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"sanitized\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1327", - "content-type": "application/json; charset=utf-8", - "date": "Fri, 08 Apr 2022 12:51:11 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+est\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12621.9 - SCUS ProdSlices", - "x-ms-request-id": "9d208c7f-3031-4a4b-b963-9be402be4600", - "x-xss-protection": "0" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "06d6d20999014a4ee7a7796c5e5ac76a" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "31d4166b-067a-41e0-a6e6-399c5bb56899", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:18 GMT", + "MS-CV": "vtqKB2cBa0SYciP\u002BLFwarA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0RnFhYgAAAAD93cepm/59Sb4UTWG3HEt3UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "101ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145919acf6967b-c304-4bd3-bb71-d5a700b5e891_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json index 5bbe63b0c4a5..ff0dd10625e8 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json @@ -1,34 +1,127 @@ { - "recordings": [ - { - "method": "POST", - "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", - "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=1k9VaCT---MeE%7EiBrPgN7V84XPYQ59P6_j&scope=https%3A%2F%2Fsanitized%2F", - "status": 200, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"sanitized\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1327", - "content-type": "application/json; charset=utf-8", - "date": "Fri, 08 Apr 2022 12:51:12 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+est\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12621.9 - WUS2 ProdSlices", - "x-ms-request-id": "f4f7c94b-ac8a-4a99-b31d-e45984e03600", - "x-xss-protection": "0" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "d41e935127f967fa836f5203486c2049" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "46b1dcf4-0e04-4e6f-b3bd-41ce66deacba", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:18 GMT", + "MS-CV": "pxQ3x8IMKkKAHCoHBhuiQA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0R3FhYgAAAACRV3WoK5JCR7SpSwURYy4iUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "110ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145919685ac2e6-dd0a-433d-8548-7d7a49091260_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + }, + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "2e7012b3-1195-4670-8cb2-d51a7126f9f8", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:18 GMT", + "MS-CV": "DmiZPdv7rEqMWErTzai4Wg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0R3FhYgAAAADbbbySwe\u002BjTZpQdHCzDxN1UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "106ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145919dd404bd8-fd29-4dad-9d0a-84d297d0945b_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json index dc0c0e36065a..e2d9f89e7f35 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -1,34 +1,61 @@ { - "recordings": [ - { - "method": "POST", - "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", - "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=1k9VaCT---MeE%7EiBrPgN7V84XPYQ59P6_j&scope=https%3A%2F%2Fsanitized%2F", - "status": 200, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"sanitized\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1327", - "content-type": "application/json; charset=utf-8", - "date": "Fri, 08 Apr 2022 12:51:14 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+est\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12621.9 - SCUS ProdSlices", - "x-ms-request-id": "9d208c7f-3031-4a4b-b963-9be47cbe4600", - "x-xss-protection": "0" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "d9f97bf1b0608a03810d5571884c2756" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "3a9d36ea-5e0f-4650-a98d-fe5b2891c23b", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 401, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json", + "Date": "Thu, 21 Apr 2022 14:59:19 GMT", + "MS-CV": "BgPANCjqVUawopbKLt9kKw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SHFhYgAAAAAAlieLY6akQ7E7dxXoyUsqUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "52ms" + }, + "ResponseBody": { + "error": { + "code": "Unauthorized", + "message": "" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json index 91bbd9190174..c17abc928082 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -1,34 +1,59 @@ { - "recordings": [ - { - "method": "POST", - "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", - "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=1k9VaCT---MeE%7EiBrPgN7V84XPYQ59P6_j&scope=https%3A%2F%2Fsanitized%2F", - "status": 200, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"sanitized\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1327", - "content-type": "application/json; charset=utf-8", - "date": "Fri, 08 Apr 2022 12:51:15 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://endpoint/api/report?catId=GW+estsfd+est\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12621.9 - NCUS ProdSlices", - "x-ms-request-id": "63c1f730-6e4c-403b-a543-650cbbdf2800", - "x-xss-protection": "0" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "e830f0d478454c137a071b9e63b90611" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "253", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "92dc9cd4-c733-42de-abb0-dad6c1119037", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B1425555012345", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 400, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:19 GMT", + "MS-CV": "N6utOiWzO0qCqVqB455aHQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SHFhYgAAAACyXbqXgUSlTYIcGw0wTm4HUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "13ms" + }, + "ResponseBody": { + "From": [ + "Invalid from phone number format." + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json index b803d168fe72..f0765e3b1188 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json @@ -1,29 +1,67 @@ { - "recordings": [ - { - "method": "POST", - "url": "https://endpoint/sms", - "query": { - "api-version": "2021-03-07" - }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false}}", - "status": 202, - "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_202204081251165e0e8fd4-3c87-4071-b741-0c43a13f1692_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":false}]}", - "responseHeaders": { - "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", - "content-type": "application/json; charset=utf-8", - "date": "Fri, 08 Apr 2022 12:51:15 GMT", - "ms-cv": "B9o3D5cW8Ui3PsTL6Hmtaw.0", - "strict-transport-security": "max-age=2592000", - "x-azure-ref": "0xC9QYgAAAADVU/1HO+nBSK681MrScymCV1NURURHRTA4MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "x-cache": "CONFIG_NOCACHE", - "x-processing-time": "503ms" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "4bcdd6659364710541989b8bee3507ee" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "230", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "0a75aa8e-a8e9-47e6-a140-7a6bf245e4ef", + "x-ms-content-sha256": "ZM8EHPfdyEHl\u002BxZujBWfL4A/vgLM320N5\u002B\u002BFjt6Jnuw=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:20 GMT", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:21 GMT", + "MS-CV": "z\u002B0eBWPqgEuUI5dWmVlwDA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SHFhYgAAAABPnhTefSJsR7iHKbXrbVh5UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "103ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145921c05582f2-aa22-4a01-b65b-ec41209c6f40_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json index 2f55cbd386d0..1cf6070d732e 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -1,29 +1,78 @@ { - "recordings": [ - { - "method": "POST", - "url": "https://endpoint/sms", - "query": { - "api-version": "2021-03-07" - }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"},{\"to\":\"+1425555012345\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false}}", - "status": 202, - "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_20220408125118f88dc062-9bcf-4167-b76c-4858fe80f1ea_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":false},{\"to\":\"+1425555012345\",\"httpStatusCode\":400,\"errorMessage\":\"Invalid To phone number format.\",\"successful\":false}]}", - "responseHeaders": { - "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", - "content-type": "application/json; charset=utf-8", - "date": "Fri, 08 Apr 2022 12:51:17 GMT", - "ms-cv": "kQDHr3ooY0SGpPRBpUeORg.0", - "strict-transport-security": "max-age=2592000", - "x-azure-ref": "0xi9QYgAAAABSFZx+qUynQo/ZM/E7LQ2HV1NURURHRTA4MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "x-cache": "CONFIG_NOCACHE", - "x-processing-time": "362ms" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "e5e54e711569bace350ec5c4564b4b23" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "348", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "5dd7e4b8-f1a1-41d1-8bee-3fb105dbb259", + "x-ms-content-sha256": "DPImxJjHqJgWcrkZcxF6jn/LXczRG7BSP4n3QNRbNUk=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:22 GMT", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + }, + { + "to": "\u002B1425555012345", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:22 GMT", + "MS-CV": "wOnooi2Zi0OJ\u002BWMjkREMUg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SnFhYgAAAAD02L84X38WTq1I7qOCpzBEUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "173ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145922f6e896b6-d13e-4b29-97c1-9c2c5a0d5c51_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + }, + { + "to": "\u002B1425555012345", + "httpStatusCode": 400, + "errorMessage": "Invalid To phone number format.", + "successful": false + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json index c5bfe30d0c8e..89d48182c347 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json @@ -1,29 +1,68 @@ { - "recordings": [ - { - "method": "POST", - "url": "https://endpoint/sms", - "query": { - "api-version": "2021-03-07" - }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false,\"tag\":\"SMS_LIVE_TEST\"}}", - "status": 202, - "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_20220408125117e60c73f7-813f-4941-bcd8-866c2c03d287_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":false}]}", - "responseHeaders": { - "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", - "content-type": "application/json; charset=utf-8", - "date": "Fri, 08 Apr 2022 12:51:16 GMT", - "ms-cv": "jNa9FdBgP0uyC37vrek2Gg.0", - "strict-transport-security": "max-age=2592000", - "x-azure-ref": "0xC9QYgAAAADqBfSTXXIrTL+OEAB8dIsmV1NURURHRTA4MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "x-cache": "CONFIG_NOCACHE", - "x-processing-time": "355ms" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "06d6d20999014a4ee7a7796c5e5ac76a" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "5e2d11f0-c2c4-41e4-a1ce-bc071d74e9fe", + "x-ms-content-sha256": "7b76dQrGW9xGICH/QWYYY/Q8x5dWb09GcwkkUfMjNwA=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:21 GMT", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:21 GMT", + "MS-CV": "NApg8j1XPkCOCfAo\u002B1a6Hg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SXFhYgAAAAA/SfSF9wVEQYMgOKQ5CVPZUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "442ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_2022042114592187790b20-a8aa-4191-ad44-906b19153e74_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json index ad9edf315b47..562d3ad8efa1 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json @@ -1,49 +1,131 @@ { - "recordings": [ - { - "method": "POST", - "url": "https://endpoint/sms", - "query": { - "api-version": "2021-03-07" - }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false,\"tag\":\"SMS_LIVE_TEST\"}}", - "status": 202, - "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_2022040812511733d67a71-f031-4456-b32c-ca8d747af1ab_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":false}]}", - "responseHeaders": { - "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", - "content-type": "application/json; charset=utf-8", - "date": "Fri, 08 Apr 2022 12:51:16 GMT", - "ms-cv": "zldw85C6QEyB+VN1KYYd9A.0", - "strict-transport-security": "max-age=2592000", - "x-azure-ref": "0xS9QYgAAAAATYjsP2dsXSqtJq2Hxd27AV1NURURHRTA4MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "x-cache": "CONFIG_NOCACHE", - "x-processing-time": "360ms" - } - }, - { - "method": "POST", - "url": "https://endpoint/sms", - "query": { - "api-version": "2021-03-07" - }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false,\"tag\":\"SMS_LIVE_TEST\"}}", - "status": 202, - "response": "{\"value\":[{\"to\":\"+14255550123\",\"messageId\":\"Outgoing_20220408125118196349e8-ab78-4683-94b7-cc942140f2c4_noam\",\"httpStatusCode\":202,\"repeatabilityResult\":\"accepted\",\"successful\":false}]}", - "responseHeaders": { - "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", - "content-type": "application/json; charset=utf-8", - "date": "Fri, 08 Apr 2022 12:51:17 GMT", - "ms-cv": "mShCeXt08EeyJZMJj8JTVg.0", - "strict-transport-security": "max-age=2592000", - "x-azure-ref": "0xS9QYgAAAACHiOVr6BHUTLSvJe3Us0v8V1NURURHRTA4MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "x-cache": "CONFIG_NOCACHE", - "x-processing-time": "359ms" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "d41e935127f967fa836f5203486c2049" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "0bafab12-3617-450c-9964-5b5ba27f2101", + "x-ms-content-sha256": "3p5O7ntXe3VviZr1KUzCRJ9pTM8SjeGBAGdr12KDXbo=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:21 GMT", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:21 GMT", + "MS-CV": "DpcCLX7oeECpbffaEspJug.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SXFhYgAAAACpxmQ5qDcfTpBR\u002BtklWjuBUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "105ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145921b172c87f-34cd-4944-ad32-a324d859d75e_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + }, + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "24c1ab41-a410-4c77-bb11-4e8e828f2c38", + "x-ms-content-sha256": "3G956r8qNoRgV7AFvsyTjty0H28ovFpumugJotjzJzE=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:21 GMT", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:22 GMT", + "MS-CV": "j/QrfYJrsUqMbgyaq1D4Vw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SXFhYgAAAACFub0LJy6BSY0QSFMmwvnpUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "298ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_202204211459224829c55f-3002-4889-9286-b3ed9cd8dae4_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json index b9f6c5e7dc5c..587763387e18 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -1,29 +1,63 @@ { - "recordings": [ - { - "method": "POST", - "url": "https://endpoint/sms", - "query": { - "api-version": "2021-03-07" - }, - "requestBody": "{\"from\":\"+14255550123\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false,\"tag\":\"SMS_LIVE_TEST\"}}", - "status": 401, - "response": "{\"error\":{\"code\":\"Unauthorized\",\"message\":\"\"}}", - "responseHeaders": { - "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", - "content-type": "application/json", - "date": "Fri, 08 Apr 2022 12:51:17 GMT", - "ms-cv": "mpG3MQK4dEW30W5QhCVoog.0", - "strict-transport-security": "max-age=2592000", - "x-azure-ref": "0xi9QYgAAAADVV2erLt8UQoS2pJlTC7L6V1NURURHRTA4MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "x-cache": "CONFIG_NOCACHE", - "x-processing-time": "280ms" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "d9f97bf1b0608a03810d5571884c2756" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "09d88cb1-ab34-4269-8551-18b49dd1511b", + "x-ms-content-sha256": "1hdxJvVLhl83MSLot6cBpzJccFcqlD5PM7eef1c0Ag0=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:22 GMT", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 401, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json", + "Date": "Thu, 21 Apr 2022 14:59:23 GMT", + "MS-CV": "BzMqGjjUnk\u002Bs1GMV6Y6F3g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SnFhYgAAAACKtql3n2AyTaFxQq72nat8UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "191ms" + }, + "ResponseBody": { + "error": { + "code": "Unauthorized", + "message": "" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json index b53648a0114c..aa679bf3509d 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -1,28 +1,61 @@ { - "recordings": [ - { - "method": "POST", - "url": "https://endpoint/sms", - "query": { - "api-version": "2021-03-07" - }, - "requestBody": "{\"from\":\"+1425555012345\",\"smsRecipients\":[{\"to\":\"+14255550123\",\"repeatabilityRequestId\":\"sanitized\",\"repeatabilityFirstSent\":\"Thu, 01 Jan 1970 00:00:00 GMT\"}],\"message\":\"test message\",\"smsSendOptions\":{\"enableDeliveryReport\":false,\"tag\":\"SMS_LIVE_TEST\"}}", - "status": 400, - "response": "{\"From\":[\"Invalid from phone number format.\"]}", - "responseHeaders": { - "content-type": "application/json; charset=utf-8", - "date": "Fri, 08 Apr 2022 12:51:18 GMT", - "ms-cv": "NBNERT7+JUannyDetc+N+Q.0", - "strict-transport-security": "max-age=2592000", - "x-azure-ref": "0xy9QYgAAAAAPvhh6sI7IQJoyOa0+3xzMV1NURURHRTA4MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "x-cache": "CONFIG_NOCACHE", - "x-processing-time": "20ms" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "e830f0d478454c137a071b9e63b90611" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "cs", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "253", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", + "x-ms-client-request-id": "3db1359e-3f83-432b-ab6a-8b15318da8e2", + "x-ms-content-sha256": "XKcVNmFZX9gd0lz7f7PDFMUwa1yIkPUMwiH3KUJnI/8=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:23 GMT", + "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" + }, + "RequestBody": { + "from": "\u002B1425555012345", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 400, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:23 GMT", + "MS-CV": "geqdNdvp2UybD8upIgFoWg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0S3FhYgAAAACk3QRWvl12RKxc2/Vo6OFeUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "20ms" + }, + "ResponseBody": { + "From": [ + "Invalid from phone number format." + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.js b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.js deleted file mode 100644 index 84363f42a969..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "40a36a477f7f16678261c29cc32a4387"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json new file mode 100644 index 000000000000..4b57fb11350e --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json @@ -0,0 +1,56 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "230", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "3405de06-2db5-466d-b512-32449f29bda9" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:07 GMT", + "MS-CV": "rslY8uUzIUOnfKj9FI8/YA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PHFhYgAAAAA/pzH5dgaJSLTGWxoZqnn0UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "230ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_202204211459088aa5006e-5a12-459b-bbc8-843f8dd4a89b_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.js b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.js deleted file mode 100644 index c3f4d3a7149b..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "c9d3b30b09556d605a1814b7cc66c2ba"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json new file mode 100644 index 000000000000..b74b4cdd3ead --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -0,0 +1,67 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "348", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "16b1ef49-1e4f-45c7-9b29-de68b04e9711" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + }, + { + "to": "\u002B1425555012345", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:09 GMT", + "MS-CV": "UQEvTxbOGE6yOZIn7mCdsQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PnFhYgAAAADm7cYZC7uAS4S0mGy8BFCxUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "92ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_202204211459102608f5f1-6ab5-4778-91f8-632909b85fb0_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + }, + { + "to": "\u002B1425555012345", + "httpStatusCode": 400, + "errorMessage": "Invalid To phone number format.", + "successful": false + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.js b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.js deleted file mode 100644 index 9ab016178034..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "e63a7c0807966575ec1513c6eb0a2b17"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json new file mode 100644 index 000000000000..f8a98c48feb1 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json @@ -0,0 +1,57 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "6d208838-d559-4538-a73d-6b9139e860b7" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:08 GMT", + "MS-CV": "Tvj5K30jdEChJ6JOqwZlwg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PHFhYgAAAAD7gsmEXKKKToD1lxQxVQjRUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "229ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145909f894321b-e673-4459-ab9d-76151cc223e1_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.js b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.js deleted file mode 100644 index aeccf28f0d77..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "ead77ee45b60a585c7ffd2d2bad4b030"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json new file mode 100644 index 000000000000..c46a2ff50f85 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json @@ -0,0 +1,109 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "cf0cfac0-7d99-4445-aa99-ca91e98e5d60" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:08 GMT", + "MS-CV": "/AbCUWKQoU6CyzlyUTHjcQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PXFhYgAAAABAMh6Kp9KXRaUbLuhhGVu8UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "232ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145909ada3c074-057d-4b1f-8891-6b9575ad0385_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + }, + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "88dc4a82-ccca-4b82-8387-0f9cb55cc230" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:09 GMT", + "MS-CV": "MMQIgOCBiE\u002BkM0O\u002Bvs54bA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PXFhYgAAAAApIKGV/iMSSISpvvtpG1kkUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "109ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145909a1255764-3404-4510-8d9f-54aff45f65cf_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js deleted file mode 100644 index 0a9e243a1d32..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "eeff82b8ae33893e424efcce27438830"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json new file mode 100644 index 000000000000..ddd42c078e04 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -0,0 +1,52 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "0c202dba-039b-4eee-a655-3e8a2373554b" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 401, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json", + "Date": "Thu, 21 Apr 2022 14:59:09 GMT", + "MS-CV": "\u002BF\u002BNaJpK2UaueC53\u002BeV3Ug.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PnFhYgAAAAB/ZmtRmh1TTbYBenhJFjOWUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "51ms" + }, + "ResponseBody": { + "error": { + "code": "Unauthorized", + "message": "" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.js b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.js deleted file mode 100644 index 6e461162f325..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "e40572f5ed6d1f0cd7c4a5809ef38226"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json new file mode 100644 index 000000000000..0e5f40b5e778 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -0,0 +1,50 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "253", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "9902b195-8d74-4b92-965a-99d0241de1e6" + }, + "RequestBody": { + "from": "\u002B1425555012345", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 400, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:10 GMT", + "MS-CV": "BrD6gN2Z3U6paixfL\u002B8Jsg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0P3FhYgAAAAC5oxV62yX7TK79511I7CAgUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "13ms" + }, + "ResponseBody": { + "From": [ + "Invalid from phone number format." + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message.js b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message.js deleted file mode 100644 index 84363f42a969..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "40a36a477f7f16678261c29cc32a4387"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message.json new file mode 100644 index 000000000000..c617bc25a285 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message.json @@ -0,0 +1,58 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "230", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "96eaa9f9-1a3a-470d-9664-a12d099573ed", + "x-ms-content-sha256": "1EijGVQv8XOtsRGZYmD7dJEiaDU9s5AwYPd/LaqroQw=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:11 GMT" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:10 GMT", + "MS-CV": "WqckibhS6UO2M6ObEqmrZw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0P3FhYgAAAAA5zxsajRGLSryFAhunwFk4UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "114ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145911d59780be-094f-4e64-a9f5-940bc7784ff3_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.js b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.js deleted file mode 100644 index c3f4d3a7149b..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "c9d3b30b09556d605a1814b7cc66c2ba"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json new file mode 100644 index 000000000000..f9faaa8184e0 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -0,0 +1,69 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "348", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "4048a6bd-9b0d-417a-83e6-43112a139c84", + "x-ms-content-sha256": "JiSgzkiBvKs6B3cJqVjEdXpkNwDjBOg6W9bRDTytF2Y=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:12 GMT" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + }, + { + "to": "\u002B1425555012345", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:11 GMT", + "MS-CV": "x0ee46q35UCU14KeEn3EQQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0QHFhYgAAAADv2ldP2mCKRpeEpYT6zjFVUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "103ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145912f0a95d67-e779-4278-b366-4435bda12f50_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + }, + { + "to": "\u002B1425555012345", + "httpStatusCode": 400, + "errorMessage": "Invalid To phone number format.", + "successful": false + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.js b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.js deleted file mode 100644 index 9ab016178034..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "e63a7c0807966575ec1513c6eb0a2b17"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json new file mode 100644 index 000000000000..e288b0ad0823 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json @@ -0,0 +1,59 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "d6d26ef1-2a72-448f-a6ff-34431e84c624", + "x-ms-content-sha256": "4rw155OcALE7lhzv8MUjGO6UWJnL5kI2cv/4ZcOwLqY=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:11 GMT" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:10 GMT", + "MS-CV": "3Ztk3mlreEKk\u002Bz6nNGfeyA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0P3FhYgAAAAB1BeXVrUoeQKGmwKEpXb8MUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "109ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_2022042114591129921524-2eb8-4ec0-9295-4e7bbe83c30f_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.js b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.js deleted file mode 100644 index aeccf28f0d77..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "ead77ee45b60a585c7ffd2d2bad4b030"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json new file mode 100644 index 000000000000..26b122b19853 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json @@ -0,0 +1,113 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "ff5e7921-bb03-426a-9775-287743c53cab", + "x-ms-content-sha256": "RBOB23dqZZEl/KSaUNqytWb6o2k9tykKCqT8eAn/Ok8=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:11 GMT" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:11 GMT", + "MS-CV": "2BFQ\u002BOYiPkyVvEhQpSJ\u002B0w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0P3FhYgAAAAAdkSpfheXCQZeLOqIrSqtgUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "103ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_202204211459110f65c399-1405-4e26-a997-e7c63fff7f0d_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + }, + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "3151f161-6154-45d4-9e98-52c5705cf27d", + "x-ms-content-sha256": "FAMxZju0wMXJZcbRoU/7LE52iYE0rpM/yDmvdSdB17E=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:11 GMT" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:11 GMT", + "MS-CV": "0G\u002BjCHbIj0qILt/q1RwCTQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0QHFhYgAAAAAD/UKGsKLxR4mUgL//tZbOUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "102ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_202204211459127728d178-ab3a-4cf5-a29e-018064b73d89_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js deleted file mode 100644 index 0a9e243a1d32..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "eeff82b8ae33893e424efcce27438830"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json new file mode 100644 index 000000000000..d7d16f4dbf48 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -0,0 +1,54 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "d9d33585-1b5e-4e7c-a0ef-582cde24a9cc", + "x-ms-content-sha256": "26T3W313jOppMv1k/xpfVagqNV5yK3\u002BZ/9UkeXr1JdY=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:12 GMT" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 401, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json", + "Date": "Thu, 21 Apr 2022 14:59:11 GMT", + "MS-CV": "OIhmBohDSkCHGKsESoSOOA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0QHFhYgAAAAADddBJ\u002B9rYTLhPvY2IbV8PUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "60ms" + }, + "ResponseBody": { + "error": { + "code": "Unauthorized", + "message": "" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.js b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.js deleted file mode 100644 index 6e461162f325..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "e40572f5ed6d1f0cd7c4a5809ef38226"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json new file mode 100644 index 000000000000..96e89f23b460 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -0,0 +1,52 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "253", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "0366ea5e-06f2-4788-a816-e652e23d9fc2", + "x-ms-content-sha256": "E/46I5DkY/QPaYDVRcYtCZWYKhIywmWnEDTflAKLw\u002Bw=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:12 GMT" + }, + "RequestBody": { + "from": "\u002B1425555012345", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 400, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:11 GMT", + "MS-CV": "OJ8cc0wRl0ie\u002BbWfY11cFw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0QHFhYgAAAAB6WgSBd6SnTqZhMMECDRTCUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "20ms" + }, + "ResponseBody": { + "From": [ + "Invalid from phone number format." + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.js deleted file mode 100644 index 56723b6029f8..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.js +++ /dev/null @@ -1,139 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "83d058dc072c9d4f54912651d15b4836"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":false}) - .get('/common/discovery/instance') - .query(false) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/SomeTenantId/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '839e65f7-d190-4492-8445-2e4e17462002', - 'x-ms-ests-server', - '2.1.12570.16 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=ApxA_ocS0kRHgiC5hLQ_CRE; expires=Sun, 08-May-2022 12:50:55 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrqzvm3jti4EZinBHhHyntf29ASfAqrDE78BbotnbPngH2qHxD9XGdtfW69wBvAbSiOfMAiV5Gdjzr-hD4dDhINUpPYtIGuUjX42sBQhuDz6infZIcaZg_mi860oydz-srxb7mqvpfb4ZYTLcI8N1jKe9TYH91uSahX98Vwocfaw8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:50:55 GMT', - 'Content-Length', - '980' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .get('/SomeTenantId/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":false,"frontchannel_logout_supported":false,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/SomeTenantId/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '39c1a46f-8755-4ce9-a899-a065c21b4400', - 'x-ms-ests-server', - '2.1.12621.9 - SCUS ProdSlices', - 'X-XSS-Protection', - '0', - 'Set-Cookie', - 'fpc=As7TN3sr-rdIi2f6RE74Dk4; expires=Sun, 08-May-2022 12:50:55 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrfVaPyvP7CbVhXjksiodIoTMgS1NwLT_GJhrv1PsRHq7REZaJFQA1hmVkp_HRual7VjJdwqNaJf15qHCVpXMnoGCEk0RYnRWUgnFL3SyX5-Nq42eY6cEyOYhIhCEBknL1aj38Ibum9KILfJGCGuQjh2yum2OEmuaVSVkqw-FdUbogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:50:55 GMT', - 'Content-Length', - '1753' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.5.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=04bdf40f-fbbc-4f13-9ab7-3aa184326f17&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '39c1a46f-8755-4ce9-a899-a065c71b4400', - 'x-ms-ests-server', - '2.1.12621.9 - SCUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'X-XSS-Protection', - '0', - 'Set-Cookie', - 'fpc=ArNvJv5hmIJMgkQ7Fi5XTtWVC-yCAQAAAK8m4tkOAAAA; expires=Sun, 08-May-2022 12:50:55 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:50:55 GMT', - 'Content-Length', - '1327' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false}}) - .query(false) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_202204081250560be43b78-d2e3-4f37-ad08-20ac984bff0c_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'MS-CV', - 'vnIosNtte0eT7qZSGMkZig.0', - 'Strict-Transport-Security', - 'max-age=2592000', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '721ms', - 'X-Cache', - 'CONFIG_NOCACHE', - 'X-Azure-Ref', - '0ry9QYgAAAADM+vErIRRoT7lKDiHXyPpKV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', - 'Date', - 'Fri, 08 Apr 2022 12:50:55 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json new file mode 100644 index 000000000000..5ba4c0bd8181 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json @@ -0,0 +1,56 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "230", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "4c3ab460-c014-4ecb-9640-01c6af14edc6" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:01 GMT", + "MS-CV": "TUFhIOCVWEGBarv\u002BdtStCA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0NXFhYgAAAAAVNUUETzeyQotbNWEY8R87UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "264ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145901c7f3e788-0757-44a7-83a4-e3467339f66f_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js deleted file mode 100644 index b1950d7a40b3..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js +++ /dev/null @@ -1,139 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "ddf1e270fd770f2610ccf69742b2c3d7"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":false}) - .get('/common/discovery/instance') - .query(false) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/SomeTenantId/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '0f366ec3-695e-4648-93b0-c3f75f861702', - 'x-ms-ests-server', - '2.1.12570.16 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=An2mhAAGKFRGrht1XtSdYXs; expires=Sun, 08-May-2022 12:50:59 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrEAZ_a1hhkZskEY1pq93voD6-YY3-uJOLfinz_q6IQmzSAR5NgKDPgnhQgg2UWJ960LPTDIwEJbB1gFT4RnAqM5h9H86Uu1Z3YYmv47ovciC9OUOVGE27tsasW7ns0SdXxyrPHAJ1s15HXdZyLJpa_r80Ch29faVUYFkO3Q1kgbIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:50:59 GMT', - 'Content-Length', - '980' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .get('/SomeTenantId/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":false,"frontchannel_logout_supported":false,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/SomeTenantId/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'e0fe102d-95bd-4d89-9d50-bd6580b24100', - 'x-ms-ests-server', - '2.1.12621.9 - EUS ProdSlices', - 'X-XSS-Protection', - '0', - 'Set-Cookie', - 'fpc=Ag34fNkwMGNFopmAizxaCZI; expires=Sun, 08-May-2022 12:50:59 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXu_EPo-yKKVXZ_IdDSJtd_FjhRH3aQXJYCNMVTqfa3cLJG3_T4_3dNxG6Nkj2n6NJX34AfUOkWjQAHoMMo4nEAHh5leYZIKSEGiCGslZkVQIDpvq1tZWnWm5MkrnTrxYWsNaw1zzsFbvvmVFpCQt9I9XVY4WbwoTJNlAokQ_giMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:50:59 GMT', - 'Content-Length', - '1753' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.5.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=59010e13-ee66-44ab-837c-00bf8eb905f0&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '88078335-7759-4b1e-8ead-c5b277f24700', - 'x-ms-ests-server', - '2.1.12621.9 - SCUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'X-XSS-Protection', - '0', - 'Set-Cookie', - 'fpc=Avs9glRN41ZNi4tadSuHsHiVC-yCAQAAALMm4tkOAAAA; expires=Sun, 08-May-2022 12:50:59 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:50:59 GMT', - 'Content-Length', - '1327' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"},{"to":"+1425555012345","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false}}) - .query(false) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20220408125100d352c8f5-1c99-4dee-92ec-3346eb9a428b_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false},{"to":"+1425555012345","httpStatusCode":400,"errorMessage":"Invalid To phone number format.","successful":false}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'MS-CV', - '07gQD7ZSUUygkyA5G0FAMg.0', - 'Strict-Transport-Security', - 'max-age=2592000', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '553ms', - 'X-Cache', - 'CONFIG_NOCACHE', - 'X-Azure-Ref', - '0sy9QYgAAAAANgdu7GNMUTpK+eXkaqNhdV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', - 'Date', - 'Fri, 08 Apr 2022 12:50:59 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json new file mode 100644 index 000000000000..48f194e5ecee --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -0,0 +1,67 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "348", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "b2f62600-187c-4f5c-b023-a2cdb19b59b1" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + }, + { + "to": "\u002B1425555012345", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:03 GMT", + "MS-CV": "Nx2wqPTc9k2enxu4N0xQjg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0N3FhYgAAAAA3mJ5u71uFTo7NJXUPmk9XUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "223ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_202204211459036d38b0a3-c2f4-41cd-ae59-47133ce22aab_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + }, + { + "to": "\u002B1425555012345", + "httpStatusCode": 400, + "errorMessage": "Invalid To phone number format.", + "successful": false + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js deleted file mode 100644 index 37ee3f3ca15a..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js +++ /dev/null @@ -1,141 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "94a53f2b724b1d07990177d0612de57d"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":false}) - .get('/common/discovery/instance') - .query(false) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/SomeTenantId/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '2ee7d765-6b15-45a0-af1b-68977f8f4f00', - 'x-ms-ests-server', - '2.1.12621.9 - EUS ProdSlices', - 'X-XSS-Protection', - '0', - 'Set-Cookie', - 'fpc=An0OlD40N5tKkpUCTQaPlYQ; expires=Sun, 08-May-2022 12:50:56 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1Jkrg4u9YKKrpS7nv3ZQJ0MdOEDy49aqqKQp1Xh3CzriSFixyoKdJ5kQncrbOLmdtKzAgYlPUfAT23QO-A5gvworAAH9omJB4KfSH9vaJ9F6LgUNkrIhfUwSurmuHpKu4IXZITnTUPL1u0NXdFnzCMWqfl4SQStSInojUfBXOf4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:50:56 GMT', - 'Content-Length', - '980' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .get('/SomeTenantId/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":false,"frontchannel_logout_supported":false,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/SomeTenantId/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '9f7837e8-f418-48e9-b1c8-8f3aee873e00', - 'x-ms-ests-server', - '2.1.12621.9 - WUS2 ProdSlices', - 'X-XSS-Protection', - '0', - 'Set-Cookie', - 'fpc=AgGRcDjIq6FNphSNMLzZIRo; expires=Sun, 08-May-2022 12:50:56 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrT2R5vZOM_L3X1k23UrStq45DXYGcZ0X0PiQKJAhgzkDdHddPOqrlZu2gyNNIj0iknSsAXrlYSGsabcc0buLS0gJO5mHISxwnUnLi8kCojbtu-EX3tIwmL3hljZpnXCh9DUUhwkO4CfFXOtiZ03hNcHWOIeJXxuk2tvtvbTds6A4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:50:56 GMT', - 'Content-Length', - '1753' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.5.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=ec4b54ec-d54a-47e7-a204-84ba66529f64&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '9f7837e8-f418-48e9-b1c8-8f3af6873e00', - 'x-ms-ests-server', - '2.1.12621.9 - WUS2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'X-XSS-Protection', - '0', - 'Set-Cookie', - 'fpc=ArakOoUf9n9OgUoDEOuqT00; expires=Sun, 08-May-2022 12:50:57 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:50:57 GMT', - 'Content-Length', - '1327' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) - .query(false) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_2022040812505782015270-019f-4958-9c16-b042d0f9d6c9_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'MS-CV', - 'm8hsYyEMXEmxtCLTvQF65w.0', - 'Strict-Transport-Security', - 'max-age=2592000', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '524ms', - 'X-Cache', - 'CONFIG_NOCACHE', - 'X-Azure-Ref', - '0sS9QYgAAAAD04/MGJAfyR4TKqsatpmlsV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', - 'Date', - 'Fri, 08 Apr 2022 12:50:57 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json new file mode 100644 index 000000000000..e59141c7f886 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json @@ -0,0 +1,57 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "8f5590f5-e899-45ef-8f99-65740d0d6a95" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:01 GMT", + "MS-CV": "OD8lOE61NE6d\u002Be1pJaY63w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0NnFhYgAAAADUah7DPO4rQquT0ocD\u002BmtVUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "252ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145902af2bfe4c-c86e-4432-b708-951b25bcc220_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js deleted file mode 100644 index 424d924e067d..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js +++ /dev/null @@ -1,163 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "9a17617be8b47b129ee4b7eda55945c8"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":false}) - .get('/common/discovery/instance') - .query(false) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/SomeTenantId/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'f38503be-112a-4db8-8d25-4d0054a11001', - 'x-ms-ests-server', - '2.1.12570.16 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=AtGRToNsxeVHgTxql1abIs0; expires=Sun, 08-May-2022 12:50:57 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_nuK888cMD7aLhzGJNb5pEZH2zxLifP31MVVkeTVyg3iPKLY9bzdEdzaZL6JOeOwltrsQsZD5YfOYbtflLzUmaIrM-1P6GAlniAmDImLWvfIX9uuhp8ZYLPz20JCrUFbOpEiNOvlGIdM4XLic26YIDH7LFmA0bClCw8_lBIZaQ8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:50:57 GMT', - 'Content-Length', - '980' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .get('/SomeTenantId/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":false,"frontchannel_logout_supported":false,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/SomeTenantId/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '39c1a46f-8755-4ce9-a899-a0653b1c4400', - 'x-ms-ests-server', - '2.1.12621.9 - SCUS ProdSlices', - 'X-XSS-Protection', - '0', - 'Set-Cookie', - 'fpc=AuFLd09iAAdNkvwaJ2UEkPc; expires=Sun, 08-May-2022 12:50:58 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrr8J_3JkfZJiQRse83LsIPGCFwKZ_ENmYh5m_239wHvcU8nLs79IGFFTuymzLZAFXO08UtKX6JksyTnwioYsItyOyzgEr5vLbw8GAXmPfhsbsqcfT6WCluEmoJExYkCVVL4ktQ9Fc--e1sU1ewZwUq8dWm17smMrwJ5WyARfITRIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:50:57 GMT', - 'Content-Length', - '1753' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.5.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=d1cf6aa1-4107-4156-baed-346c43cd3979&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '63c1f730-6e4c-403b-a543-650c87de2800', - 'x-ms-ests-server', - '2.1.12621.9 - NCUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'X-XSS-Protection', - '0', - 'Set-Cookie', - 'fpc=AsUXpIj1vtdFub6za8lKI3aVC-yCAQAAALEm4tkOAAAA; expires=Sun, 08-May-2022 12:50:58 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:50:58 GMT', - 'Content-Length', - '1327' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) - .query(false) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_202204081250588653b103-9b67-41b4-990e-b81d30838d93_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'MS-CV', - 'ubLRb/tEHE2HAZUFWglA1w.0', - 'Strict-Transport-Security', - 'max-age=2592000', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '547ms', - 'X-Cache', - 'CONFIG_NOCACHE', - 'X-Azure-Ref', - '0si9QYgAAAADXL9WjVzihS7S3WiGKgfDKV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', - 'Date', - 'Fri, 08 Apr 2022 12:50:58 GMT' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) - .query(false) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_2022040812505903d967f0-8187-4ded-b0ba-ea1515838718_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'MS-CV', - 'mVSat6xJ1kOHNi8H9Ftgbg.0', - 'Strict-Transport-Security', - 'max-age=2592000', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '537ms', - 'X-Cache', - 'CONFIG_NOCACHE', - 'X-Azure-Ref', - '0si9QYgAAAABMImX6EinPQaJKKiiMlh6ZV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', - 'Date', - 'Fri, 08 Apr 2022 12:50:58 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json new file mode 100644 index 000000000000..006a5c4633a0 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json @@ -0,0 +1,109 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "b173a6b6-2d60-45ba-9d7b-a4851bfe1f76" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:02 GMT", + "MS-CV": "J4Ftp9wpxUCUvi3n/Df09g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0NnFhYgAAAABjaloaz4h4SrL8jcrwxYCJUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "234ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_202204211459031decf6f5-73eb-4c3a-9aa0-21e52d80b5a5_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + }, + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "3eb1764f-b7aa-49f9-9f6c-215556c779d2" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:02 GMT", + "MS-CV": "R6qI/UTMBUeTLlCg2HwIqg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0N3FhYgAAAADj5D7a4hn0TLifea\u002B6166aUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "235ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145903033b14b9-e6b3-4fa5-9fde-e43872ff9796_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js deleted file mode 100644 index de0449821360..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js +++ /dev/null @@ -1,139 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "fcd97290e112ccfacfa0fdb8ed965072"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":false}) - .get('/common/discovery/instance') - .query(false) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/SomeTenantId/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '5d245aeb-9f02-412a-af61-6256820e6401', - 'x-ms-ests-server', - '2.1.12570.16 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AuBa9t_9astNl3ukf82BunI; expires=Sun, 08-May-2022 12:51:00 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr43o-9kQeKjA-kNj2foDLmQm2sYomO_ktYG4qU_aQA2DOYGASGMJ2ItWyGKTnFJ3AuqoOuBDGmGL53Znc2TdoAjiTtuKYBZgzpR54MbHTHfY9i178cKzwUi5rAjZwN8vOrsu5R_mrl9hCASi-CN2b-E7mbkSQXNU5be0wHqOWyNMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:51:00 GMT', - 'Content-Length', - '980' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .get('/SomeTenantId/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":false,"frontchannel_logout_supported":false,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/SomeTenantId/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '39c1a46f-8755-4ce9-a899-a065bb1c4400', - 'x-ms-ests-server', - '2.1.12621.9 - SCUS ProdSlices', - 'X-XSS-Protection', - '0', - 'Set-Cookie', - 'fpc=Ap9srd5fT79AnuCKc4LgWXI; expires=Sun, 08-May-2022 12:51:00 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrboeXFyjkKuxOL4IsCO3RyO9-_xZGt4maDKqD-l4VyO2dvC7_4HlHcaBFENJocAX-7cjGjib01jGxvwzbHfyQ6JRFMtcpgntnKa6tbQ44QJWOqWBl9tJOn2Nie7L9kGD-fkDt6OLDrQPCSs-7dhNmRtQBKZ7ZiGuUh2Od3cHDKvkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:51:00 GMT', - 'Content-Length', - '1753' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.5.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=8d2f720e-d3cb-4fa2-8f28-1b2a3a05b7ed&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '4eef928d-8f5d-4a1b-b4f2-bf9bd8743900', - 'x-ms-ests-server', - '2.1.12621.9 - NCUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'X-XSS-Protection', - '0', - 'Set-Cookie', - 'fpc=AjE0LmwM251Nnr_bw5u6p9qVC-yCAQAAALQm4tkOAAAA; expires=Sun, 08-May-2022 12:51:00 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:51:00 GMT', - 'Content-Length', - '1327' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) - .query(false) - .reply(401, {"error":{"code":"Unauthorized","message":""}}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json', - 'MS-CV', - 'uPDGh8GPVEuI7BJ0hNtSkg.0', - 'Strict-Transport-Security', - 'max-age=2592000', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '634ms', - 'X-Cache', - 'CONFIG_NOCACHE', - 'X-Azure-Ref', - '0tC9QYgAAAAC4fe3N/2CSSLwik/1/12epV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', - 'Date', - 'Fri, 08 Apr 2022 12:51:00 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json new file mode 100644 index 000000000000..d505f0738276 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -0,0 +1,52 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "c137a16f-1937-49f0-a651-9bacc0906d0b" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 401, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json", + "Date": "Thu, 21 Apr 2022 14:59:03 GMT", + "MS-CV": "QBADi4U5uU2jMjO2Vva1DQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0OHFhYgAAAABUaIJgMJgKRqNZ3zs/s3XIUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "188ms" + }, + "ResponseBody": { + "error": { + "code": "Unauthorized", + "message": "" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js deleted file mode 100644 index edc3248f34a6..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js +++ /dev/null @@ -1,137 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "025a6529e78fc34152b097fad8ae5137"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":false}) - .get('/common/discovery/instance') - .query(false) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/SomeTenantId/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '11c31ab4-ee11-4660-ae79-291c1d496401', - 'x-ms-ests-server', - '2.1.12570.16 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=Anslv3F6F09DgmvFodZSkO8; expires=Sun, 08-May-2022 12:51:01 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_ekrBvG0SzpQcK3CA_CLLhR_iqj4ZQnRqvbVk3wgSTZvbIXtEiPwv2tD2yWwXIR5_lmQlxZWcZPoPSvsnUVzDgAvuYZhMGw4l8T8NK0pvcJPFoyRAV4cpw-590vpUfhfKeK35uGls5fBmRhX69Vfb54jsTWjLXYMAHCWmZjT5HYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:51:01 GMT', - 'Content-Length', - '980' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .get('/SomeTenantId/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/SomeTenantId/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/SomeTenantId/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/devicecode","http_logout_supported":false,"frontchannel_logout_supported":false,"end_session_endpoint":"https://login.microsoftonline.com/SomeTenantId/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/SomeTenantId/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '29940708-53c5-46e0-830a-5f2392153d00', - 'x-ms-ests-server', - '2.1.12621.9 - WUS2 ProdSlices', - 'X-XSS-Protection', - '0', - 'Set-Cookie', - 'fpc=AgcstaUkgVxIibzagyE9DFo; expires=Sun, 08-May-2022 12:51:01 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrEpHUWsJeLmId78CGVhLO3EO0PhPQoXjKwHly0fHuDMZgUvhxTbL2k94tu8qn-AkccIloFAvIbqCCnjdjKSS_G5awGVSZY0sYEflQ756pyOpX-6tkEpy91wZL6k9eGkrwHYTEWFsiycHhc_xyko1Ik5xK2SmVnu2sUSLacHu_C3IgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:51:01 GMT', - 'Content-Length', - '1753' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/SomeTenantId/oauth2/v2.0/token', "client_id=SomeClientId&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.5.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=b32c83cd-4626-49ec-bf26-c8ac72dd279c&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'ad5d6047-6b35-4fb1-803a-803343391c00', - 'x-ms-ests-server', - '2.1.12621.9 - NCUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'X-XSS-Protection', - '0', - 'Set-Cookie', - 'fpc=AtX8-WQs-05LjYstdXVFb2eVC-yCAQAAALQm4tkOAAAA; expires=Sun, 08-May-2022 12:51:01 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 08 Apr 2022 12:51:01 GMT', - 'Content-Length', - '1327' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/sms', {"from":"+1425555012345","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) - .query(false) - .reply(400, {"From":["Invalid from phone number format."]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'MS-CV', - 'kwDj3jEMS0aydDEhcNXu8g.0', - 'Strict-Transport-Security', - 'max-age=2592000', - 'X-Processing-Time', - '13ms', - 'X-Cache', - 'CONFIG_NOCACHE', - 'X-Azure-Ref', - '0ti9QYgAAAAA9F7XWKY64Sp5tni0jv3lOV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', - 'Date', - 'Fri, 08 Apr 2022 12:51:01 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json new file mode 100644 index 000000000000..f970356bba0c --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -0,0 +1,50 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "253", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "6b7a8169-3ddb-492f-bc04-b0eab206281b" + }, + "RequestBody": { + "from": "\u002B1425555012345", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 400, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:04 GMT", + "MS-CV": "RDVc1/Xd2U6lbD67ZgHzvA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0OHFhYgAAAADYl9gGZD/0SbxF7ZE1/Ew4UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "17ms" + }, + "ResponseBody": { + "From": [ + "Invalid from phone number format." + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.js deleted file mode 100644 index 91e7527068c8..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.js +++ /dev/null @@ -1,29 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "83d058dc072c9d4f54912651d15b4836"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false}}) - .query(false) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20220408125102f1a233ab-ccc6-4dd9-9b45-c40699f77526_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'MS-CV', - 'UatUYe+iRE+mMA26nTtEAQ.0', - 'Strict-Transport-Security', - 'max-age=2592000', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '703ms', - 'X-Cache', - 'CONFIG_NOCACHE', - 'X-Azure-Ref', - '0ti9QYgAAAACEkyZs0E5hRoYslXqtv16EV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', - 'Date', - 'Fri, 08 Apr 2022 12:51:02 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json new file mode 100644 index 000000000000..05cff5bcc947 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json @@ -0,0 +1,58 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "230", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "2fe25533-2214-4eed-b997-845921792087", + "x-ms-content-sha256": "GHhQe77R3mEtxA\u002B8O858uUmr08eSsEI/Arg4Nki/BP8=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:05 GMT" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:04 GMT", + "MS-CV": "ocTlgZBTz0OgZUzlfruwCg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0OXFhYgAAAAAtuzNCLIbjTbs1QZZzHnivUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "233ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_2022042114590586f44e65-192b-41fd-952f-9013bde85136_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js deleted file mode 100644 index 69fabeddf06b..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js +++ /dev/null @@ -1,29 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "ddf1e270fd770f2610ccf69742b2c3d7"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"},{"to":"+1425555012345","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false}}) - .query(false) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20220408125105bd3371ca-ff15-4858-89ad-204b1d9f82f5_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false},{"to":"+1425555012345","httpStatusCode":400,"errorMessage":"Invalid To phone number format.","successful":false}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'MS-CV', - '1pzm+9k42EqOgeDksoOQGg.0', - 'Strict-Transport-Security', - 'max-age=2592000', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '496ms', - 'X-Cache', - 'CONFIG_NOCACHE', - 'X-Azure-Ref', - '0uC9QYgAAAAAfGVsGj6Z6SpHMAAFUuxD1V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', - 'Date', - 'Fri, 08 Apr 2022 12:51:04 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json new file mode 100644 index 000000000000..ea4e7f0cb351 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -0,0 +1,69 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "348", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "8c3da7bc-d64d-40c1-90c3-ff26e2dbadb3", + "x-ms-content-sha256": "D/Oe\u002BYy6aTeRztYcOy9btluDxxtPiLyII4P1G361XrM=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:06 GMT" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + }, + { + "to": "\u002B1425555012345", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": false + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:06 GMT", + "MS-CV": "pVMEEKWO0kmalW\u002BE87oAoQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0OnFhYgAAAACCAfzqRwiyT5Ak2e3Cz3K0UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "230ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145906ee6ee364-75c7-44fe-a4e8-f2471f8e6b83_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + }, + { + "to": "\u002B1425555012345", + "httpStatusCode": 400, + "errorMessage": "Invalid To phone number format.", + "successful": false + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js deleted file mode 100644 index 0563c40e8b3c..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js +++ /dev/null @@ -1,29 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "94a53f2b724b1d07990177d0612de57d"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) - .query(false) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20220408125103487140b9-7af5-4ad8-b3c4-1d0a8a01c829_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'MS-CV', - 'dNrjuXfCSEe9BlDX4plKYg.0', - 'Strict-Transport-Security', - 'max-age=2592000', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '511ms', - 'X-Cache', - 'CONFIG_NOCACHE', - 'X-Azure-Ref', - '0ti9QYgAAAACQRYgMWK9wQoo/bKPYolR/V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', - 'Date', - 'Fri, 08 Apr 2022 12:51:02 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json new file mode 100644 index 000000000000..314e7aebfa28 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json @@ -0,0 +1,59 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "2e1847f2-06ce-440d-951f-71f2900802c9", + "x-ms-content-sha256": "my/201h0\u002BSNpsn6eaBXGW0qBi1xEukZvHCBiJgOrBos=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:05 GMT" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:04 GMT", + "MS-CV": "Wv1z4/ssrkaisX/LoMM0Vg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0OXFhYgAAAAAP\u002BAKQ8XZzQqVgjXEfZP1pUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "228ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_20220421145905e326691a-c1f8-46ae-9e85-0109580d69e5_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js deleted file mode 100644 index 1d37cbd65c24..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js +++ /dev/null @@ -1,53 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "9a17617be8b47b129ee4b7eda55945c8"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) - .query(false) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20220408125103677036d2-c2c1-49e6-84e2-d701e17ffa64_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'MS-CV', - 'CqFLy9PB60uxYqcXOf0wgQ.0', - 'Strict-Transport-Security', - 'max-age=2592000', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '516ms', - 'X-Cache', - 'CONFIG_NOCACHE', - 'X-Azure-Ref', - '0ty9QYgAAAABrt1fqTozNSaWdlUbC6oWJV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', - 'Date', - 'Fri, 08 Apr 2022 12:51:03 GMT' -]); - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) - .query(false) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_202204081251045a6dbc77-463c-4ab1-ba7a-6042562fcb3f_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":false}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'MS-CV', - 'l0h5QLBDx0+ulECfRMChFg.0', - 'Strict-Transport-Security', - 'max-age=2592000', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '540ms', - 'X-Cache', - 'CONFIG_NOCACHE', - 'X-Azure-Ref', - '0uC9QYgAAAADv8CjTw4qXQIqtP1VoVB9FV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', - 'Date', - 'Fri, 08 Apr 2022 12:51:03 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json new file mode 100644 index 000000000000..5685affc6c17 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json @@ -0,0 +1,113 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "044a42f0-ab5d-4f47-86ac-b8050823679d", + "x-ms-content-sha256": "xv8LWOJdvjgusb3utCar50YxQqhQnAWfae2S0o3uhCk=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:05 GMT" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:05 GMT", + "MS-CV": "VjOgRFZuLkaJ2jtLgeDtgQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0OXFhYgAAAADyz7iUIlBRRov0/Hl9b7eWUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "234ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_202204211459069972c907-044b-4d62-bd5f-b71d29206aac_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + }, + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "ba38e85a-8edf-4e75-93ee-d3dcb3e343e5", + "x-ms-content-sha256": "SPqpzpgq9aXRiDtBiAwZSYDysceP8HsM9JgMXL55r18=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:06 GMT" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:05 GMT", + "MS-CV": "TKB6fzbR0U\u002BzPfQUtyT5Zg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0OnFhYgAAAACLMgYkMaDYTa2JYNnYjtQ0UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "250ms" + }, + "ResponseBody": { + "value": [ + { + "to": "\u002B14255550123", + "messageId": "Outgoing_202204211459064c6e0277-24d2-4990-8a51-9c4ac327fb03_noam", + "httpStatusCode": 202, + "repeatabilityResult": "accepted", + "successful": true + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js deleted file mode 100644 index ec26c803ddd7..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js +++ /dev/null @@ -1,29 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "fcd97290e112ccfacfa0fdb8ed965072"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) - .query(false) - .reply(401, {"error":{"code":"Unauthorized","message":""}}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json', - 'MS-CV', - 'r8czj9liUEyWjd52bOX3Jw.0', - 'Strict-Transport-Security', - 'max-age=2592000', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '469ms', - 'X-Cache', - 'CONFIG_NOCACHE', - 'X-Azure-Ref', - '0uS9QYgAAAAD6iQn/IAPhTrJUbW5X0rGyV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', - 'Date', - 'Fri, 08 Apr 2022 12:51:04 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json new file mode 100644 index 000000000000..f7b11688bc85 --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -0,0 +1,54 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "251", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "ae41837b-ff80-4970-834a-cc042d7f7b9a", + "x-ms-content-sha256": "WK2XoRzdvgDFygXQ0tHHi\u002BFeyWXpJnDVFWX5srpd4GQ=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:06 GMT" + }, + "RequestBody": { + "from": "\u002B14255550123", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 401, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", + "Content-Type": "application/json", + "Date": "Thu, 21 Apr 2022 14:59:06 GMT", + "MS-CV": "QR1UY\u002BY7l0Co/MR3RaafhQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0OnFhYgAAAABW685n3QBdRqF4C\u002Bz4pIZlUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "220ms" + }, + "ResponseBody": { + "error": { + "code": "Unauthorized", + "message": "" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js deleted file mode 100644 index cc428523815e..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js +++ /dev/null @@ -1,27 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "025a6529e78fc34152b097fad8ae5137"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":false}) - .post('/sms', {"from":"+1425555012345","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false,"tag":"SMS_LIVE_TEST"}}) - .query(false) - .reply(400, {"From":["Invalid from phone number format."]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'MS-CV', - 'dd4B/XBNPU2mvdI9pyH8Ww.0', - 'Strict-Transport-Security', - 'max-age=2592000', - 'X-Processing-Time', - '16ms', - 'X-Cache', - 'CONFIG_NOCACHE', - 'X-Azure-Ref', - '0uS9QYgAAAADQf0KcXfq3To8tfZbQUxlnV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx', - 'Date', - 'Fri, 08 Apr 2022 12:51:04 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json new file mode 100644 index 000000000000..44bd80c930fd --- /dev/null +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -0,0 +1,52 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/sms?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "253", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "9f5ab44f-2240-4ae4-b5b0-7876cd91f81c", + "x-ms-content-sha256": "YREpxF7gz7gST1khcAJqosynA/L1x889/vx5xr5Tc0g=", + "x-ms-date": "Thu, 21 Apr 2022 14:59:07 GMT" + }, + "RequestBody": { + "from": "\u002B1425555012345", + "smsRecipients": [ + { + "to": "\u002B14255550123", + "repeatabilityRequestId": "sanitized", + "repeatabilityFirstSent": "Thu, 01 Jan 1970 00:00:00 GMT" + } + ], + "message": "test message", + "smsSendOptions": { + "enableDeliveryReport": true, + "tag": "SMS_LIVE_TEST" + } + }, + "StatusCode": 400, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 21 Apr 2022 14:59:06 GMT", + "MS-CV": "m1dGcObC9kSZ7l6ZUBRfnA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0O3FhYgAAAAD3yobdsI6QTZTvIG0mByBzUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "89ms" + }, + "ResponseBody": { + "From": [ + "Invalid from phone number format." + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_can_send_an_sms_message.js b/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_can_send_an_sms_message.js deleted file mode 100644 index 84363f42a969..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_can_send_an_sms_message.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "40a36a477f7f16678261c29cc32a4387"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.js b/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.js deleted file mode 100644 index c3f4d3a7149b..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "c9d3b30b09556d605a1814b7cc66c2ba"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.js b/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.js deleted file mode 100644 index 9ab016178034..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "e63a7c0807966575ec1513c6eb0a2b17"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.js b/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.js deleted file mode 100644 index aeccf28f0d77..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "ead77ee45b60a585c7ffd2d2bad4b030"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js b/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js deleted file mode 100644 index 0a9e243a1d32..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "eeff82b8ae33893e424efcce27438830"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.js b/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.js deleted file mode 100644 index 6e461162f325..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "e40572f5ed6d1f0cd7c4a5809ef38226"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.js b/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.js deleted file mode 100644 index 2c53fc7e78bf..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.js +++ /dev/null @@ -1,60 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "40a36a477f7f16678261c29cc32a4387"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/SomeTenantId/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '1327', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '3359bd3b-3359-48c8-96a7-8e9423e43100', - 'x-ms-ests-server', - '2.1.11654.13 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=AsZBMvdV-e5EuFb5Bt9qQ6aMQo4QBgAAAI8-CNgOAAAA; expires=Fri, 14-May-2021 01:38:30 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 14 Apr 2021 01:38:29 GMT' -]); - -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false}}) - .query(true) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_202104140138308e753bfc-7c54-4ed2-85dc-5ea6cec184af_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":true}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', - 'MS-CV', - 'cw8L51hDJkmAgMZFgLenpQ.0', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '469ms', - 'X-Azure-Ref', - '0lkd2YAAAAAB7E5u1TFRzR7hh6iBVRYhSWVZSMzBFREdFMDQwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', - 'Date', - 'Wed, 14 Apr 2021 01:38:30 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js b/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js deleted file mode 100644 index 3ab7894b0f1c..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.js +++ /dev/null @@ -1,60 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "c9d3b30b09556d605a1814b7cc66c2ba"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/SomeTenantId/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '1327', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '0a4a2a1f-bded-4014-be5e-016920b5c700', - 'x-ms-ests-server', - '2.1.11622.22 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AsZBMvdV-e5EuFb5Bt9qQ6aMQo4QBgAAAI8-CNgOAAAA; expires=Fri, 14-May-2021 01:38:32 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 14 Apr 2021 01:38:31 GMT' -]); - -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"},{"to":"+1425555012345","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":false}}) - .query(true) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_2021041401383345b39495-af30-4a36-8cdf-2df0197e90fc_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":true},{"to":"+1425555012345","httpStatusCode":400,"errorMessage":"Invalid To phone number format.","successful":false}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', - 'MS-CV', - 'e2aZcheyN0CGbKpGPYragA.0', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '530ms', - 'X-Azure-Ref', - '0mEd2YAAAAADxddwG3dZ8T6/9wPnIE6q0WVZSMzBFREdFMDQwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', - 'Date', - 'Wed, 14 Apr 2021 01:38:32 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js b/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js deleted file mode 100644 index 8c2e5d128d0d..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.js +++ /dev/null @@ -1,60 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "e63a7c0807966575ec1513c6eb0a2b17"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/SomeTenantId/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '1327', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'b09ba858-fc7e-48cd-9fea-2b629426b600', - 'x-ms-ests-server', - '2.1.11622.22 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=AsZBMvdV-e5EuFb5Bt9qQ6aMQo4QBgAAAI8-CNgOAAAA; expires=Fri, 14-May-2021 01:38:30 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 14 Apr 2021 01:38:30 GMT' -]); - -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":true,"tag":"SMS_LIVE_TEST"}}) - .query(true) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_202104140138313a0271e5-28f1-4ab9-8a25-8c63552ea98e_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":true}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', - 'MS-CV', - '58GR5Pu3GEyBc0qcH4zDvg.0', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '482ms', - 'X-Azure-Ref', - '0l0d2YAAAAAD/BhvuhWKmQIAGN6huPVUQWVZSMzBFREdFMDQwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', - 'Date', - 'Wed, 14 Apr 2021 01:38:30 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js b/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js deleted file mode 100644 index 54b5360d18a8..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.js +++ /dev/null @@ -1,82 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "ead77ee45b60a585c7ffd2d2bad4b030"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/SomeTenantId/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '3ff76588-e2fb-49b6-b8e4-34504a2bc800', - 'x-ms-ests-server', - '2.1.11622.22 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=AsZBMvdV-e5EuFb5Bt9qQ6aMQo4QBgAAAI8-CNgOAAAA; expires=Fri, 14-May-2021 01:38:31 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 14 Apr 2021 01:38:30 GMT', - 'Content-Length', - '1327' -]); - -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":true,"tag":"SMS_LIVE_TEST"}}) - .query(true) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_20210414013832ac8715bb-124c-47a9-aa85-2e12cd9efa9b_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":true}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', - 'MS-CV', - '2l5ZzPUaHUyC7y7A92Tf/g.0', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '460ms', - 'X-Azure-Ref', - '0l0d2YAAAAABSJphTKxU2SJ30V5M6HO7dWVZSMzBFREdFMDQwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', - 'Date', - 'Wed, 14 Apr 2021 01:38:31 GMT' -]); - -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":true,"tag":"SMS_LIVE_TEST"}}) - .query(true) - .reply(202, {"value":[{"to":"+14255550123","messageId":"Outgoing_202104140138325652ab70-d555-4670-896e-0d272382ef5a_noam","httpStatusCode":202,"repeatabilityResult":"accepted","successful":true}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', - 'MS-CV', - '07xs9TK/mEuD+415OlS6Hg.0', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '517ms', - 'X-Azure-Ref', - '0mEd2YAAAAADq1prxQhXLS6YBIvKumej4WVZSMzBFREdFMDQwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', - 'Date', - 'Wed, 14 Apr 2021 01:38:32 GMT' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js b/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js deleted file mode 100644 index a1d5cee91e36..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.js +++ /dev/null @@ -1,58 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "eeff82b8ae33893e424efcce27438830"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/SomeTenantId/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '3fcdc6ba-fc00-4b47-b2c4-c33f96abbc00', - 'x-ms-ests-server', - '2.1.11622.22 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=AsZBMvdV-e5EuFb5Bt9qQ6aMQo4QBwAAAI8-CNgOAAAA; expires=Fri, 14-May-2021 01:38:33 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 14 Apr 2021 01:38:32 GMT', - 'Content-Length', - '1327' -]); - -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+14255550123","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":true,"tag":"SMS_LIVE_TEST"}}) - .query(true) - .reply(404, "", [ - 'Request-Context', - 'appId=', - 'MS-CV', - 'd17KM8i6RUunFtWdzGpZyw.0', - 'api-supported-versions', - '2020-07-20-preview1, 2020-08-20-preview, 2021-03-07', - 'X-Processing-Time', - '428ms', - 'X-Azure-Ref', - '0mUd2YAAAAADfPNM0W1NYS4szxZM/USFwWVZSMzBFREdFMDQwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', - 'Date', - 'Wed, 14 Apr 2021 01:38:33 GMT', - 'Content-Length', - '0' -]); diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js b/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js deleted file mode 100644 index 2a34245a17b0..000000000000 --- a/sdk/communication/communication-sms/recordings/node/smsclient_using_token_based_authentication_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.js +++ /dev/null @@ -1,58 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "e40572f5ed6d1f0cd7c4a5809ef38226"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/SomeTenantId/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"sanitized"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '1327', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '69ca9e3d-de46-4507-a8e2-5fa2acc6b800', - 'x-ms-ests-server', - '2.1.11622.22 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AsZBMvdV-e5EuFb5Bt9qQ6aMQo4QCAAAAI8-CNgOAAAA; expires=Fri, 14-May-2021 01:38:34 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Wed, 14 Apr 2021 01:38:33 GMT' -]); - -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/sms', {"from":"+1425555012345","smsRecipients":[{"to":"+14255550123","repeatabilityRequestId":"sanitized","repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"}],"message":"test message","smsSendOptions":{"enableDeliveryReport":true,"tag":"SMS_LIVE_TEST"}}) - .query(true) - .reply(400, {"From":["Invalid From phone number format"]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Request-Context', - 'appId=', - 'MS-CV', - 'SWgCndnKzkO/tf2qvCbePg.0', - 'X-Processing-Time', - '12ms', - 'X-Azure-Ref', - '0mkd2YAAAAADsItzorHQfT7956pHQrkpNWVZSMzBFREdFMDQwNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=', - 'Date', - 'Wed, 14 Apr 2021 01:38:33 GMT' -]); diff --git a/sdk/communication/communication-sms/src/extractOperationOptions.ts b/sdk/communication/communication-sms/src/extractOperationOptions.ts index ca377c609676..38ec3c9e519c 100644 --- a/sdk/communication/communication-sms/src/extractOperationOptions.ts +++ b/sdk/communication/communication-sms/src/extractOperationOptions.ts @@ -9,7 +9,14 @@ export const extractOperationOptions = ( operationOptions: OperationOptions; restOptions: Pick>; } => { - const { abortSignal, onResponse, requestOptions, serializerOptions, tracingOptions, ...restOptions } = obj; + const { + abortSignal, + onResponse, + requestOptions, + serializerOptions, + tracingOptions, + ...restOptions + } = obj; return { operationOptions: { diff --git a/sdk/communication/communication-sms/src/smsClient.ts b/sdk/communication/communication-sms/src/smsClient.ts index 98748f80d520..f5396a821d36 100644 --- a/sdk/communication/communication-sms/src/smsClient.ts +++ b/sdk/communication/communication-sms/src/smsClient.ts @@ -7,11 +7,8 @@ import { isKeyCredential, createCommunicationAuthPolicy, } from "@azure/communication-common"; -import { KeyCredential, TokenCredential } from "@azure/core-auth"; -import { - CommonClientOptions, - OperationOptions -} from "@azure/core-client"; +import { KeyCredential, TokenCredential, isTokenCredential } from "@azure/core-auth"; +import { CommonClientOptions, OperationOptions } from "@azure/core-client"; import { InternalPipelineOptions } from "@azure/core-rest-pipeline"; import { SpanStatusCode } from "@azure/core-tracing"; import { SmsApiClient } from "./generated/src/smsApiClient"; @@ -89,7 +86,7 @@ export interface SmsSendResult { * @param options - The value being checked. */ const isSmsClientOptions = (options: any): options is SmsClientOptions => - !!options && !isKeyCredential(options); + !!options && !isTokenCredential(options) && !isKeyCredential(options); /** * A SmsClient represents a Client to the Azure Communication Sms service allowing you @@ -129,7 +126,7 @@ export class SmsClient { ) { const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions); const options = isSmsClientOptions(credentialOrOptions) ? credentialOrOptions : maybeOptions; - + const internalPipelineOptions: InternalPipelineOptions = { ...options, ...{ diff --git a/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts b/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts index dc47d8fea1f6..426826d15a53 100644 --- a/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts +++ b/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts @@ -26,7 +26,6 @@ matrix([[true, false]], async function (useAad: boolean) { let client: SmsClient; beforeEach(async function (this: Context) { - if (isLiveMode()) { this.skip(); } else if (isPlaybackMode()) { diff --git a/sdk/communication/communication-sms/test/public/smsClient.spec.ts b/sdk/communication/communication-sms/test/public/smsClient.spec.ts index cf58fe1e1b69..2aefd9d9aed9 100644 --- a/sdk/communication/communication-sms/test/public/smsClient.spec.ts +++ b/sdk/communication/communication-sms/test/public/smsClient.spec.ts @@ -7,14 +7,13 @@ */ import { matrix } from "@azure/test-utils"; -import { Recorder, env } from "@azure-tools/test-recorder"; -import { - createRecordedSmsClient, - createRecordedSmsClientWithToken, -} from "./utils/recordedClient"; +import { Recorder, env, isPlaybackMode } from "@azure-tools/test-recorder"; +import { createRecordedSmsClient, createRecordedSmsClientWithToken } from "./utils/recordedClient"; import { Context } from "mocha"; import sendSmsSuites from "./suites/smsClient.send"; import { SmsClient } from "../../src"; +import sinon from "sinon"; +import { Uuid } from "../../src/utils/uuid"; matrix([[true, false]], async function (useAad: boolean) { describe(`SmsClient [Live]${useAad ? " [AAD]" : ""}`, async () => { @@ -29,6 +28,10 @@ matrix([[true, false]], async function (useAad: boolean) { }); beforeEach(async function (this: Context) { + if (isPlaybackMode()) { + sinon.stub(Uuid, "generateUuid").returns("sanitized"); + sinon.stub(Date, "now").returns(0); + } if (useAad) { ({ client, recorder } = await createRecordedSmsClientWithToken(this)); } else { @@ -38,7 +41,12 @@ matrix([[true, false]], async function (useAad: boolean) { }); afterEach(async function (this: Context) { - await recorder.stop(); + if (!this.currentTest?.isPending()) { + await recorder.stop(); + } + if (isPlaybackMode()) { + sinon.restore(); + } }); describe("test send method", sendSmsSuites); diff --git a/sdk/communication/communication-sms/test/public/utils/mockHttpClient.ts b/sdk/communication/communication-sms/test/public/utils/mockHttpClient.ts index abb1525b1fc5..89601a69042a 100644 --- a/sdk/communication/communication-sms/test/public/utils/mockHttpClient.ts +++ b/sdk/communication/communication-sms/test/public/utils/mockHttpClient.ts @@ -1,7 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { createHttpHeaders, HttpClient, PipelineRequest, PipelineResponse } from "@azure/core-rest-pipeline"; +import { + createHttpHeaders, + HttpClient, + PipelineRequest, + PipelineResponse, +} from "@azure/core-rest-pipeline"; export class MockHttpClient implements HttpClient { constructor(private _phoneNumber: string) {} diff --git a/sdk/communication/communication-sms/test/public/utils/recordedClient.ts b/sdk/communication/communication-sms/test/public/utils/recordedClient.ts index 2abc4f07e926..92ac3f6f3c53 100644 --- a/sdk/communication/communication-sms/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-sms/test/public/utils/recordedClient.ts @@ -14,7 +14,6 @@ import { createTestCredential } from "@azure-tools/test-credential"; import { parseConnectionString } from "@azure/communication-common"; import { SmsClient } from "../../../src"; - export interface RecordedClient { client: T; recorder: Recorder; @@ -37,10 +36,17 @@ const sanitizerOptions: SanitizerOptions = { }, ], generalSanitizers: [ - { regex: true, target: "(https:\/\/)([^/',]*)", value: "$1endpoint" }, { regex: true, target: `"access_token"\s?:\s?"[^"]*"`, value: `"access_token":"sanitized"` }, - { regex: true, target: `"repeatabilityRequestId"\s?:\s?"[^"]*"`, value: `"repeatabilityRequestId":"sanitized"` }, - { regex: true, target: `"repeatabilityFirstSent"\s?:\s?"[^"]*"`, value: `"repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"` }, + { + regex: true, + target: `"repeatabilityRequestId"\s?:\s?"[^"]*"`, + value: `"repeatabilityRequestId":"sanitized"`, + }, + { + regex: true, + target: `"repeatabilityFirstSent"\s?:\s?"[^"]*"`, + value: `"repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"`, + }, ], }; @@ -67,7 +73,7 @@ export async function createRecordedSmsClient( const recorder = await createRecorder(context.currentTest); const client = new SmsClient( - env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING ?? "", + env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING ?? "", recorder.configureClientOptions({}) ); return { @@ -82,7 +88,9 @@ export async function createRecordedSmsClientWithToken( const recorder = await createRecorder(context.currentTest); let credential: TokenCredential; - const endpoint = parseConnectionString(env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING ?? "").endpoint; + const endpoint = parseConnectionString( + env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING ?? "" + ).endpoint; if (isPlaybackMode()) { credential = { @@ -94,12 +102,7 @@ export async function createRecordedSmsClientWithToken( credential = createTestCredential(); } - const client = new SmsClient( - endpoint, - credential, - recorder.configureClientOptions({}) - ); + const client = new SmsClient(endpoint, credential, recorder.configureClientOptions({})); return { client, recorder }; } - From 88d253f945ea86a8be2c0d96da7ed5e052b9322e Mon Sep 17 00:00:00 2001 From: Arif Ibrahim Mohamed Date: Sun, 24 Apr 2022 18:23:07 -0700 Subject: [PATCH 08/10] recording update & code owner update --- .github/CODEOWNERS | 2 +- .../recording_can_send_an_sms_message.json | 14 ++++---- ...an_sms_message_to_multiple_recipients.json | 14 ++++---- ...an_sms_message_with_options_passed_in.json | 14 ++++---- ..._new_message_each_time_send_is_called.json | 28 +++++++-------- ...en_sending_from_a_number_you_dont_own.json | 12 +++---- ...n_when_sending_from_an_invalid_number.json | 12 +++---- .../recording_can_send_an_sms_message.json | 18 +++++----- ...an_sms_message_to_multiple_recipients.json | 18 +++++----- ...an_sms_message_with_options_passed_in.json | 18 +++++----- ..._new_message_each_time_send_is_called.json | 36 +++++++++---------- ...en_sending_from_a_number_you_dont_own.json | 16 ++++----- ...n_when_sending_from_an_invalid_number.json | 16 ++++----- .../recording_can_send_an_sms_message.json | 14 ++++---- ...an_sms_message_to_multiple_recipients.json | 14 ++++---- ...an_sms_message_with_options_passed_in.json | 14 ++++---- ..._new_message_each_time_send_is_called.json | 28 +++++++-------- ...en_sending_from_a_number_you_dont_own.json | 12 +++---- ...n_when_sending_from_an_invalid_number.json | 10 +++--- .../recording_can_send_an_sms_message.json | 18 +++++----- ...an_sms_message_to_multiple_recipients.json | 18 +++++----- ...an_sms_message_with_options_passed_in.json | 18 +++++----- ..._new_message_each_time_send_is_called.json | 36 +++++++++---------- ...en_sending_from_a_number_you_dont_own.json | 16 ++++----- ...n_when_sending_from_an_invalid_number.json | 16 ++++----- .../recording_can_send_an_sms_message.json | 14 ++++---- ...an_sms_message_to_multiple_recipients.json | 14 ++++---- ...an_sms_message_with_options_passed_in.json | 14 ++++---- ..._new_message_each_time_send_is_called.json | 28 +++++++-------- ...en_sending_from_a_number_you_dont_own.json | 12 +++---- ...n_when_sending_from_an_invalid_number.json | 12 +++---- .../recording_can_send_an_sms_message.json | 18 +++++----- ...an_sms_message_to_multiple_recipients.json | 18 +++++----- ...an_sms_message_with_options_passed_in.json | 18 +++++----- ..._new_message_each_time_send_is_called.json | 36 +++++++++---------- ...en_sending_from_a_number_you_dont_own.json | 16 ++++----- ...n_when_sending_from_an_invalid_number.json | 16 ++++----- .../recording_can_send_an_sms_message.json | 14 ++++---- ...an_sms_message_to_multiple_recipients.json | 14 ++++---- ...an_sms_message_with_options_passed_in.json | 14 ++++---- ..._new_message_each_time_send_is_called.json | 28 +++++++-------- ...en_sending_from_a_number_you_dont_own.json | 12 +++---- ...n_when_sending_from_an_invalid_number.json | 12 +++---- .../recording_can_send_an_sms_message.json | 18 +++++----- ...an_sms_message_to_multiple_recipients.json | 18 +++++----- ...an_sms_message_with_options_passed_in.json | 18 +++++----- ..._new_message_each_time_send_is_called.json | 36 +++++++++---------- ...en_sending_from_a_number_you_dont_own.json | 16 ++++----- ...n_when_sending_from_an_invalid_number.json | 16 ++++----- 49 files changed, 432 insertions(+), 432 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 63dea021bc57..c51d0f66fd3f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -56,7 +56,7 @@ /sdk/communication/communication-sms/ @arifibrahim4 @RoyHerrod # PRLabel: %Communication - Short Codes -/sdk/communication/communication-short-codes/ @danielav7 @AlonsoMondal @ericasp16 +/sdk/communication/communication-short-codes/ @danielav7 @ericasp16 # PRLabel: %Communication - Common /sdk/communication/communication-common/ @Azure/acs-identity-sdk @petrsvihlik @AikoBB @maximrytych-ms @martinbarnas-ms diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json index c6880ae7bd00..44922c4bc64d 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "230", @@ -19,7 +19,7 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "358e29ad-a97a-4624-9a16-ccf126158283", + "x-ms-client-request-id": "2b404561-80d4-47df-8eef-bb51c7f8730a", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -40,19 +40,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:23 GMT", - "MS-CV": "D5aS0Tz\u002BTkiT9dSx69xAWg.0", + "Date": "Mon, 25 Apr 2022 01:04:25 GMT", + "MS-CV": "/a\u002BG\u002BA/qDEOnzRSsOMGzfg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0S3FhYgAAAAA9PkiRVLitT6lpg0tzVyqlUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0mfNlYgAAAADhVdcNzY08RZ9rrw1pYNTHV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "366ms" + "X-Processing-Time": "354ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_202204211459235a22bb98-8a07-4601-b13e-692f761377c2_noam", + "messageId": "Outgoing_2022042501042551a23517-47d4-4042-8278-d4283459572d_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json index eb76d60e15a4..c177b0ed4241 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "348", @@ -19,7 +19,7 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "9490473e-6982-4333-83e4-4ea9b7c6721f", + "x-ms-client-request-id": "e8eda94b-4cdc-40f2-8393-8b8c4cf2eebf", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -45,19 +45,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:25 GMT", - "MS-CV": "3uN4b762TUygZaRhlJswPw.0", + "Date": "Mon, 25 Apr 2022 01:04:28 GMT", + "MS-CV": "\u002Bc60SUiazUOU8SR5wxNRMA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0TXFhYgAAAACLRWDayHVWSrFoQO7arTAJUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0nPNlYgAAAADiayaxqzPwR7UG\u002BOEYsyX7V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "283ms" + "X-Processing-Time": "511ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145925b80607f3-7f2e-400c-93f9-19ba1c21969e_noam", + "messageId": "Outgoing_202204250104285e388a0d-9492-4205-a0a8-295f3e2ff9e5_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json index 6315c0ca3764..41884563decb 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -19,7 +19,7 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "f6aa13e3-21d4-4dfe-9e4f-bf68cdae1a0c", + "x-ms-client-request-id": "e113a90d-2c38-4d4a-9c8e-d989f2502dc2", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -41,19 +41,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:24 GMT", - "MS-CV": "eBXoP6Cb3UGqa0/AJ4cQmA.0", + "Date": "Mon, 25 Apr 2022 01:04:26 GMT", + "MS-CV": "gEpcqeP\u002BykSEqoaQimICxg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0THFhYgAAAABkIFkaX/GuRK5ymvnsB7c5UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0mvNlYgAAAAAONi/eC1VjQ4NafHJh0ns1V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "96ms" + "X-Processing-Time": "355ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_2022042114592422454580-404e-461c-9fb1-b550118fe638_noam", + "messageId": "Outgoing_20220425010426edf77c9a-e6d2-4715-85c0-8f7999b2638f_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json index 66b8aaee1588..bed91be7a3b3 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -19,7 +19,7 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "2ff7f50d-a6d2-4971-8218-35ad7adc5e78", + "x-ms-client-request-id": "5e0e2ad5-26da-4587-b70f-e0562bc7ad43", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -41,19 +41,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:24 GMT", - "MS-CV": "M4S8Utfaw0qVKGbdKJxa3w.0", + "Date": "Mon, 25 Apr 2022 01:04:27 GMT", + "MS-CV": "0yRxeXIlLkOg938yUt6rzQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0THFhYgAAAABGPWOHPXpoSbESAFXv/55QUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0mvNlYgAAAAACL1yO2EgySZCj/pP3E17DV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "263ms" + "X-Processing-Time": "358ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145924d89d254b-96eb-46ef-ac96-94f9fca0d0b8_noam", + "messageId": "Outgoing_20220425010427ba9f0925-de3d-409e-abc1-5f768d7a544b_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -67,7 +67,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -80,7 +80,7 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "35a3151e-f8d0-4557-acff-3baa5959dcff", + "x-ms-client-request-id": "02f4b481-ba66-4af2-abb9-3aba9f3c8f26", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -102,19 +102,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:25 GMT", - "MS-CV": "kBar8BkTPE25H9T1tR7JAA.0", + "Date": "Mon, 25 Apr 2022 01:04:27 GMT", + "MS-CV": "J6NDWyPieUahOZ6FCkr38A.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0TXFhYgAAAAC24DnmWLqfRpDyNj7g1xUXUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0m/NlYgAAAAC0GIBv5dnbR4roLKJjJsWlV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "233ms" + "X-Processing-Time": "361ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_2022042114592527eb56db-5c6f-4975-a7b9-1102697d1592_noam", + "messageId": "Outgoing_20220425010427b42da96f-ee94-404b-b5c2-84c57c49daea_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json index d9f529b85692..d4d663877aa7 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -19,7 +19,7 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "fe451fbb-d995-4f1b-88b7-4208c55f3742", + "x-ms-client-request-id": "9d8b3d78-a21e-4431-97ab-e67cf12077a9", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -41,13 +41,13 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json", - "Date": "Thu, 21 Apr 2022 14:59:26 GMT", - "MS-CV": "nTtGfwBgwE\u002BL5VWy6AmBOg.0", + "Date": "Mon, 25 Apr 2022 01:04:29 GMT", + "MS-CV": "EqWaAKtZlEyh2IdGPsF\u002BPw.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0TnFhYgAAAACAXeyerY/xTYH4Rt6qjJpeUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0nPNlYgAAAABDsvtwHc5ESp9g7yUKVYZmV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "178ms" + "X-Processing-Time": "426ms" }, "ResponseBody": { "error": { diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json index a61ae430306c..4a5ae824227f 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "253", @@ -19,7 +19,7 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "70d0631d-2455-4012-909f-6e567bbb55ab", + "x-ms-client-request-id": "9b6b75d8-900f-466a-b3f5-2091a18259ab", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -40,13 +40,13 @@ "StatusCode": 400, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:26 GMT", - "MS-CV": "Sn5xuDPfPE6qpiDZpGIz2w.0", + "Date": "Mon, 25 Apr 2022 01:04:29 GMT", + "MS-CV": "R3f\u002BSixH4Uiacvxf7jQJLQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0TnFhYgAAAAAaWLbssoBLSaLSCdIYdtu7UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0nfNlYgAAAAD/qvjhiHhMTbPSg5RZj5HYV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "15ms" + "X-Processing-Time": "12ms" }, "ResponseBody": { "From": [ diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message.json index 2b1636c6b92a..b6a59cd97ad3 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "230", @@ -19,9 +19,9 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "b327bdb4-b6e8-4e34-b9a6-6f5ca8f34d0f", - "x-ms-content-sha256": "7V8Q25f2RaiSaT\u002BPUgb2ccDgFx5yID7xhH43LH5Dyv8=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:26 GMT", + "x-ms-client-request-id": "fc57f843-931a-4708-bd5f-a9409019ef9f", + "x-ms-content-sha256": "n4ihHYYwkFhL0Z66EvESdKtoc56GyOtZu8Ns/eJk6fU=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:29 GMT", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -42,19 +42,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:27 GMT", - "MS-CV": "J9rMtrikzk2xgNZiWIDOSA.0", + "Date": "Mon, 25 Apr 2022 01:04:30 GMT", + "MS-CV": "MoIrObrOiEy7ioPVTHuTeg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0TnFhYgAAAAAi53DtN9bRRbs85wQKJQrkUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0nfNlYgAAAAABxgbnnkCaSZHrS1jyv4hRV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "267ms" + "X-Processing-Time": "572ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145927520f1481-358d-4070-919e-4e738b0f1fb3_noam", + "messageId": "Outgoing_202204250104308d7e41c8-8048-4aba-9262-3142ffd2c76c_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json index 61dd253a21ae..848b9af8ea2e 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "348", @@ -19,9 +19,9 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "ea9cd442-37f2-469f-a777-17d885af401c", - "x-ms-content-sha256": "2tU2EwnEjupHSSj0f1TW1E/9ej8axtHFX1yKss76LzQ=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:28 GMT", + "x-ms-client-request-id": "c8a9c021-ebfe-41b7-afd4-850cee213643", + "x-ms-content-sha256": "AGO1wwvEfpgH/R1J98WEkJWZGbi8CYufWlLaXylE6lI=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:32 GMT", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -47,19 +47,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:28 GMT", - "MS-CV": "K/8kyYloMU2BZrrOIBRKBA.0", + "Date": "Mon, 25 Apr 2022 01:04:32 GMT", + "MS-CV": "OllkksBAJES3guBPE6bDvA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0UHFhYgAAAABiLG\u002BLMA5gSqJkr9VlV9O9UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0oPNlYgAAAAD\u002B\u002BfrniDIAS68\u002BVQQ5kpjsV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "234ms" + "X-Processing-Time": "515ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_202204211459289fbcfd83-ee51-4622-ace6-913aaadee921_noam", + "messageId": "Outgoing_2022042501043202ec2563-139e-4948-b336-f384ffa8114a_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json index 83a348af7c16..439c3b29cddf 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -19,9 +19,9 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "b32971a7-f482-4331-b1c4-786b53dfeb4c", - "x-ms-content-sha256": "hWOuD5nTpRC\u002BCcN6NyTVq6bwMdjDp7KDJ98Oq9xQxcc=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:27 GMT", + "x-ms-client-request-id": "4749f530-982c-4510-a91e-03e47d6d24a0", + "x-ms-content-sha256": "/RIt\u002BuMAktrTRkHYBhpE70P4DnllS03MSxkxwJ8rnVs=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:30 GMT", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -43,19 +43,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:27 GMT", - "MS-CV": "pj3Hmg1XGU28W6D4bGxAJA.0", + "Date": "Mon, 25 Apr 2022 01:04:30 GMT", + "MS-CV": "1nzO7XcAqUKlY7FV3aI1vg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0T3FhYgAAAAAADN8JecJyR59s4sLk4/QkUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0nvNlYgAAAABsqMHxISKqSZjfxMV22xZXV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "271ms" + "X-Processing-Time": "506ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145927ead03e7f-871f-4e43-89cd-2ff731658f8a_noam", + "messageId": "Outgoing_20220425010431c4d452c6-7885-41cf-8e3c-21819623c6cf_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json index dac238bc8ff3..9a3846d5047f 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -19,9 +19,9 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "17bd3f4e-0f68-4356-a066-91f46367f5c4", - "x-ms-content-sha256": "yO8B79pgOr81bdAstqxuOfpsc4Sus2TX1kDkfCrb6us=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:27 GMT", + "x-ms-client-request-id": "e08986bf-2f53-4c65-a108-31c6fbbe2476", + "x-ms-content-sha256": "hvNMhWHUURrd8BxQqe03W9neabV8IjzXt/AWxs6sEvM=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:31 GMT", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -43,19 +43,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:27 GMT", - "MS-CV": "PUOnOgD6bEehta1tlz9ZBA.0", + "Date": "Mon, 25 Apr 2022 01:04:31 GMT", + "MS-CV": "HAZBQAbbW0yBEDUuAI3DbQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0T3FhYgAAAADLSJDWlYdcR6T9u/M63I1KUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0n/NlYgAAAADif8K7HNqrSZ/tkpOr3n5\u002BV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "259ms" + "X-Processing-Time": "542ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145927983da229-1630-4b04-af88-ea25be10f26f_noam", + "messageId": "Outgoing_20220425010431df8d1ff2-e7d0-4d8e-b385-ae8eeaffa4ac_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -69,7 +69,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -82,9 +82,9 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "238d4278-945e-49fe-94e7-1fdf9adf99de", - "x-ms-content-sha256": "P2BAZ9G5p52sdroDden6HzOQwTv71JiYfOqTHu2XJX4=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:28 GMT", + "x-ms-client-request-id": "b254891e-a268-463c-9541-5b37b0a1a231", + "x-ms-content-sha256": "ttqDLHlY\u002BpmkOLT1pMNKcW5wcLCvauvGu2IDZtDPbUs=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:31 GMT", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -106,19 +106,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:28 GMT", - "MS-CV": "Wi7fgNgK1EeCXH6TnMSQ0g.0", + "Date": "Mon, 25 Apr 2022 01:04:32 GMT", + "MS-CV": "aaUuXtFKC0mdtiKxssaibw.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0UHFhYgAAAABTG7SV/ssRRYZYqaDOIquJUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0n/NlYgAAAACNqo72b/wRQa6Gs7XVxRW2V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "289ms" + "X-Processing-Time": "501ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_202204211459282b467ce6-be63-41af-9a4d-85ace14aaa98_noam", + "messageId": "Outgoing_20220425010432ebb40a8a-7624-4c21-a36f-d919ee1f64dc_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json index a120578664d6..90bccdb4386c 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -19,9 +19,9 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "9a6c5928-1b7a-4a5a-93ec-005914faa919", - "x-ms-content-sha256": "lezAlpu3V4YNj2y3APetEbI4FxmVKe7JnYPZPqScGxI=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:28 GMT", + "x-ms-client-request-id": "4edd1634-ee7c-4f1b-8bdb-bff8f4596e5a", + "x-ms-content-sha256": "erq3cDvvMNMMGhIgvlg95jv3gDog9XRZKkm/6/6kh4I=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:33 GMT", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -43,13 +43,13 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json", - "Date": "Thu, 21 Apr 2022 14:59:29 GMT", - "MS-CV": "B3/SO73cT029AT6VRV1Thg.0", + "Date": "Mon, 25 Apr 2022 01:04:33 GMT", + "MS-CV": "HxUOVnv1q0eogFC35JQkmQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0UHFhYgAAAAAsf0HeDespRq4sYRS6ficfUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0ofNlYgAAAABvy6OXk\u002ByzRac4rQZr1SSPV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "196ms" + "X-Processing-Time": "430ms" }, "ResponseBody": { "error": { diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json index ea6a3729f83e..22f4436c1284 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "253", @@ -19,9 +19,9 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "7da279f8-5542-4114-b961-71cccbdc9aae", - "x-ms-content-sha256": "tcMTTe54zazzLcv97UIH/UJ4SJ7zBMiY5n8qbWOXAgA=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:29 GMT", + "x-ms-client-request-id": "3794defc-5327-4e27-9bc3-2c5861509528", + "x-ms-content-sha256": "VXtHA2BA3XN0z5cXZZ\u002BDM\u002Bf6X8hf0/wZRqeFxyXIrv8=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:33 GMT", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -42,13 +42,13 @@ "StatusCode": 400, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:29 GMT", - "MS-CV": "hRapX3BLWkywhj45Rt1j6g.0", + "Date": "Mon, 25 Apr 2022 01:04:33 GMT", + "MS-CV": "FakOachnVUKiRl4OCL\u002Bvpw.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0UXFhYgAAAABZE7oWhRLzR7FUpV9zYBdvUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0ofNlYgAAAADOp5DWNJJERbZ4TmL96S9nV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "20ms" + "X-Processing-Time": "17ms" }, "ResponseBody": { "From": [ diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json index 1498adcedf9f..6c7ce82192f8 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "230", @@ -19,7 +19,7 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "f21e4c75-95b8-4a32-b01a-65c9e4c231aa", + "x-ms-client-request-id": "f0ff0dd8-0c0d-4efe-a9e7-ba8131c80fcf", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -40,19 +40,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:17 GMT", - "MS-CV": "gbwA4e1w5keJTsPfpHbWGg.0", + "Date": "Mon, 25 Apr 2022 01:04:18 GMT", + "MS-CV": "gXgRCQxwikWmrWumBFvdGQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0RnFhYgAAAADRSDyiKG2QRL2ZGz9dOWprUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0kvNlYgAAAAA8aTCtfdKYSJNsKRkA\u002BK7yV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "101ms" + "X-Processing-Time": "366ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145918a340a8f1-812e-4bc3-a836-c595dbe85af8_noam", + "messageId": "Outgoing_202204250104186952a7f4-c91d-458c-a0b2-da67f4f9dce1_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json index b39fbb0e0f4d..fdc604ff4fc5 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "348", @@ -19,7 +19,7 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "f7239b8f-2718-49f7-a535-56427d378684", + "x-ms-client-request-id": "1ae67a00-f56e-472a-b9fb-ddc2ef3ab072", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -45,19 +45,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:19 GMT", - "MS-CV": "8FwMvp3tNE\u002BiF3Y1HCeaEw.0", + "Date": "Mon, 25 Apr 2022 01:04:20 GMT", + "MS-CV": "m15vRKv1n0q2\u002BP9Y3c146Q.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0R3FhYgAAAABRMvY5kDwwSLkEF8l/quIRUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0lPNlYgAAAAA/a2pQvJ0JQoZtC862V4jYV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "101ms" + "X-Processing-Time": "362ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_202204211459207b52a54a-54bf-4a31-9755-90de879063c1_noam", + "messageId": "Outgoing_202204250104213a40a246-85cb-4762-b82e-9579b447e223_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json index b3bb45860bc6..8fa6b72653e0 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -19,7 +19,7 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "31d4166b-067a-41e0-a6e6-399c5bb56899", + "x-ms-client-request-id": "087c1090-9e20-4029-9459-e4761929ab9d", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -41,19 +41,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:18 GMT", - "MS-CV": "vtqKB2cBa0SYciP\u002BLFwarA.0", + "Date": "Mon, 25 Apr 2022 01:04:19 GMT", + "MS-CV": "HVAYDsIFFkueqO\u002BH5okqvw.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0RnFhYgAAAAD93cepm/59Sb4UTWG3HEt3UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0k/NlYgAAAAAsOgSdJcdWSo/fI3A/\u002BYWzV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "101ms" + "X-Processing-Time": "365ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145919acf6967b-c304-4bd3-bb71-d5a700b5e891_noam", + "messageId": "Outgoing_20220425010419281f2c87-1db8-446f-a29d-af2f7cf60f5d_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json index ff0dd10625e8..645c199d26e0 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -19,7 +19,7 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "46b1dcf4-0e04-4e6f-b3bd-41ce66deacba", + "x-ms-client-request-id": "d47c9c11-aeb1-4a58-9288-535f54f974a8", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -41,19 +41,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:18 GMT", - "MS-CV": "pxQ3x8IMKkKAHCoHBhuiQA.0", + "Date": "Mon, 25 Apr 2022 01:04:19 GMT", + "MS-CV": "dRPdwTUAKkS5D/LyEJHaEQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0R3FhYgAAAACRV3WoK5JCR7SpSwURYy4iUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0k/NlYgAAAADJtIUV7wl2RLI0PzGmKkCzV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "110ms" + "X-Processing-Time": "358ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145919685ac2e6-dd0a-433d-8548-7d7a49091260_noam", + "messageId": "Outgoing_20220425010420182c1ffb-47f0-4e9b-ae3a-3a3bc2c6ff51_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -67,7 +67,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -80,7 +80,7 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "2e7012b3-1195-4670-8cb2-d51a7126f9f8", + "x-ms-client-request-id": "5b080cc9-3dad-46e7-9eda-722823ce0a64", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -102,19 +102,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:18 GMT", - "MS-CV": "DmiZPdv7rEqMWErTzai4Wg.0", + "Date": "Mon, 25 Apr 2022 01:04:20 GMT", + "MS-CV": "2Q/rQKfD1Umon/2bg220aA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0R3FhYgAAAADbbbySwe\u002BjTZpQdHCzDxN1UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0lPNlYgAAAACRMEkz/VckSoca4QhzWWgXV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "106ms" + "X-Processing-Time": "353ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145919dd404bd8-fd29-4dad-9d0a-84d297d0945b_noam", + "messageId": "Outgoing_202204250104205205ebb8-3ac4-4d99-a437-57323f703bc5_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json index e2d9f89e7f35..dabf623275a6 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -19,7 +19,7 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "3a9d36ea-5e0f-4650-a98d-fe5b2891c23b", + "x-ms-client-request-id": "d2cc7759-99ce-4bfb-b288-859157a80b14", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -41,13 +41,13 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json", - "Date": "Thu, 21 Apr 2022 14:59:19 GMT", - "MS-CV": "BgPANCjqVUawopbKLt9kKw.0", + "Date": "Mon, 25 Apr 2022 01:04:21 GMT", + "MS-CV": "KqL3Vn6RsU2z6mh81NwW5w.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0SHFhYgAAAAAAlieLY6akQ7E7dxXoyUsqUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0lfNlYgAAAABkxQww67bnRogAuLxwbVToV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "52ms" + "X-Processing-Time": "273ms" }, "ResponseBody": { "error": { diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json index c17abc928082..9fad97d39fc8 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "253", @@ -19,7 +19,7 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "92dc9cd4-c733-42de-abb0-dad6c1119037", + "x-ms-client-request-id": "6f1a2f72-ffea-40f5-9cf1-bc7cc921a572", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -40,11 +40,11 @@ "StatusCode": 400, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:19 GMT", - "MS-CV": "N6utOiWzO0qCqVqB455aHQ.0", + "Date": "Mon, 25 Apr 2022 01:04:21 GMT", + "MS-CV": "mdsxT7OX3UGPImwUWShuJg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0SHFhYgAAAACyXbqXgUSlTYIcGw0wTm4HUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0lvNlYgAAAAAPMJjSMwNfRo9S113DBPsXV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", "X-Processing-Time": "13ms" }, diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json index f0765e3b1188..88aec17a9964 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "230", @@ -19,9 +19,9 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "0a75aa8e-a8e9-47e6-a140-7a6bf245e4ef", - "x-ms-content-sha256": "ZM8EHPfdyEHl\u002BxZujBWfL4A/vgLM320N5\u002B\u002BFjt6Jnuw=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:20 GMT", + "x-ms-client-request-id": "a0ac65ef-16dd-4182-b2de-20f89b004162", + "x-ms-content-sha256": "lTECQyl3hsT2E/BH9vz0M3zqvmRTNaYzbo\u002BgCGgvoNA=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:22 GMT", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -42,19 +42,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:21 GMT", - "MS-CV": "z\u002B0eBWPqgEuUI5dWmVlwDA.0", + "Date": "Mon, 25 Apr 2022 01:04:22 GMT", + "MS-CV": "p2JgSANgiUCqzvhdKWjb4Q.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0SHFhYgAAAABPnhTefSJsR7iHKbXrbVh5UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0lvNlYgAAAACUcmDbaqbPSLXWrXQ0vWcOV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "103ms" + "X-Processing-Time": "375ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145921c05582f2-aa22-4a01-b65b-ec41209c6f40_noam", + "messageId": "Outgoing_202204250104224cf2fc46-f5c1-4363-bf31-93cabfb20088_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json index 1cf6070d732e..b821e2f1b1d0 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "348", @@ -19,9 +19,9 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "5dd7e4b8-f1a1-41d1-8bee-3fb105dbb259", - "x-ms-content-sha256": "DPImxJjHqJgWcrkZcxF6jn/LXczRG7BSP4n3QNRbNUk=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:22 GMT", + "x-ms-client-request-id": "7fe301e9-ad96-42c2-a583-38d5b5831d65", + "x-ms-content-sha256": "tn2hQBHO2Wjjr6R58p\u002BGk7FucAexbX14cbB9OB4hwow=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:24 GMT", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -47,19 +47,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:22 GMT", - "MS-CV": "wOnooi2Zi0OJ\u002BWMjkREMUg.0", + "Date": "Mon, 25 Apr 2022 01:04:24 GMT", + "MS-CV": "maUISpiPn0iKFX2Q0FyfNA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0SnFhYgAAAAD02L84X38WTq1I7qOCpzBEUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0mPNlYgAAAAA3UcQMonrFS6OTOmjJkQyhV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "173ms" + "X-Processing-Time": "366ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145922f6e896b6-d13e-4b29-97c1-9c2c5a0d5c51_noam", + "messageId": "Outgoing_20220425010424a96cc4d8-19b3-49e3-9c53-52ecf297e473_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json index 89d48182c347..ffda0fa656a8 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -19,9 +19,9 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "5e2d11f0-c2c4-41e4-a1ce-bc071d74e9fe", - "x-ms-content-sha256": "7b76dQrGW9xGICH/QWYYY/Q8x5dWb09GcwkkUfMjNwA=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:21 GMT", + "x-ms-client-request-id": "4e742cc2-02a9-4dad-a351-a1b0882e2e51", + "x-ms-content-sha256": "fpXXVy6SD0gRoUnuThx8JYvOSK6vB7MUvjvlUM\u002BW2Io=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:22 GMT", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -43,19 +43,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:21 GMT", - "MS-CV": "NApg8j1XPkCOCfAo\u002B1a6Hg.0", + "Date": "Mon, 25 Apr 2022 01:04:22 GMT", + "MS-CV": "VZyOw9D7Y0\u002BlzzrxQ8bGVg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0SXFhYgAAAAA/SfSF9wVEQYMgOKQ5CVPZUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0lvNlYgAAAADtnV6FSyWSRIOr0JyALpuQV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "442ms" + "X-Processing-Time": "366ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_2022042114592187790b20-a8aa-4191-ad44-906b19153e74_noam", + "messageId": "Outgoing_2022042501042341a30251-9d77-4bee-b22c-6940e51bd67a_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json index 562d3ad8efa1..a6b175775142 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -19,9 +19,9 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "0bafab12-3617-450c-9964-5b5ba27f2101", - "x-ms-content-sha256": "3p5O7ntXe3VviZr1KUzCRJ9pTM8SjeGBAGdr12KDXbo=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:21 GMT", + "x-ms-client-request-id": "0734cdff-c573-40cf-bbd2-355bd9a5774d", + "x-ms-content-sha256": "nVCy7c30z8GhxZer/uIvuySQcVgR4k9h2Z5Sa2KGICk=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:23 GMT", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -43,19 +43,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:21 GMT", - "MS-CV": "DpcCLX7oeECpbffaEspJug.0", + "Date": "Mon, 25 Apr 2022 01:04:23 GMT", + "MS-CV": "ZHnOebvKqUaxNlvBLyLHCA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0SXFhYgAAAACpxmQ5qDcfTpBR\u002BtklWjuBUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0l/NlYgAAAADm9YPa6muhT7\u002BhWVhTLFNWV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "105ms" + "X-Processing-Time": "368ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145921b172c87f-34cd-4944-ad32-a324d859d75e_noam", + "messageId": "Outgoing_2022042501042325eed125-d718-462f-8332-b7bfcbe5fe1e_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -69,7 +69,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -82,9 +82,9 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "24c1ab41-a410-4c77-bb11-4e8e828f2c38", - "x-ms-content-sha256": "3G956r8qNoRgV7AFvsyTjty0H28ovFpumugJotjzJzE=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:21 GMT", + "x-ms-client-request-id": "3ebb6a87-8648-4920-8848-93f90882e435", + "x-ms-content-sha256": "sLIEGv9NcZioMz35rkuWVHXuqHEiccd2G7UhyoNmqck=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:23 GMT", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -106,19 +106,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:22 GMT", - "MS-CV": "j/QrfYJrsUqMbgyaq1D4Vw.0", + "Date": "Mon, 25 Apr 2022 01:04:23 GMT", + "MS-CV": "ZY9Ivx8lI0\u002By0tLmggARLA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0SXFhYgAAAACFub0LJy6BSY0QSFMmwvnpUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0l/NlYgAAAAALb7dl5i5nT4Rn5FUl/HgKV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "298ms" + "X-Processing-Time": "354ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_202204211459224829c55f-3002-4889-9286-b3ed9cd8dae4_noam", + "messageId": "Outgoing_20220425010424b3f67f50-28b3-4145-9a8c-ec9d8c240142_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json index 587763387e18..07435e519bc9 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "251", @@ -19,9 +19,9 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "09d88cb1-ab34-4269-8551-18b49dd1511b", - "x-ms-content-sha256": "1hdxJvVLhl83MSLot6cBpzJccFcqlD5PM7eef1c0Ag0=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:22 GMT", + "x-ms-client-request-id": "b44ab95d-c784-4f3c-8c12-0f865e041d88", + "x-ms-content-sha256": "APtMVqDHyf9CHxpKwvu7im4I14Ax\u002BdYDpV4awaPXNkY=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:24 GMT", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -43,13 +43,13 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json", - "Date": "Thu, 21 Apr 2022 14:59:23 GMT", - "MS-CV": "BzMqGjjUnk\u002Bs1GMV6Y6F3g.0", + "Date": "Mon, 25 Apr 2022 01:04:24 GMT", + "MS-CV": "hIyzhQyBRkuH/Xyr0v5wxg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0SnFhYgAAAACKtql3n2AyTaFxQq72nat8UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0mPNlYgAAAACRzDDsz5VASZkOfEWuJjBKV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "191ms" + "X-Processing-Time": "285ms" }, "ResponseBody": { "error": { diff --git a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json index aa679bf3509d..5c706bb50e33 100644 --- a/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json +++ b/sdk/communication/communication-sms/recordings/browsers/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -6,7 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "cs", + "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "253", @@ -19,9 +19,9 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "3db1359e-3f83-432b-ab6a-8b15318da8e2", - "x-ms-content-sha256": "XKcVNmFZX9gd0lz7f7PDFMUwa1yIkPUMwiH3KUJnI/8=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:23 GMT", + "x-ms-client-request-id": "1d7cc34f-a9d1-40a0-9ffe-c5bb22925a6c", + "x-ms-content-sha256": "uYSUdad6VUcBoz\u002B\u002BkRGYdCd5VMl/vDOfKHyj8YS8pCQ=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:25 GMT", "x-ms-useragent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 OS/Win32" }, "RequestBody": { @@ -42,13 +42,13 @@ "StatusCode": 400, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:23 GMT", - "MS-CV": "geqdNdvp2UybD8upIgFoWg.0", + "Date": "Mon, 25 Apr 2022 01:04:24 GMT", + "MS-CV": "gyFtKB\u002B5PUSrB5LN2CYZKg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0S3FhYgAAAACk3QRWvl12RKxc2/Vo6OFeUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0mfNlYgAAAADms7UEnrDMRqt/lwQEg/Y4V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "20ms" + "X-Processing-Time": "18ms" }, "ResponseBody": { "From": [ diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json index 4b57fb11350e..4e18f846dec3 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message.json @@ -10,8 +10,8 @@ "Connection": "keep-alive", "Content-Length": "230", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "3405de06-2db5-466d-b512-32449f29bda9" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "ecfa6014-9edc-46bc-ad07-ff0b2494b056" }, "RequestBody": { "from": "\u002B14255550123", @@ -31,19 +31,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:07 GMT", - "MS-CV": "rslY8uUzIUOnfKj9FI8/YA.0", + "Date": "Mon, 25 Apr 2022 01:04:03 GMT", + "MS-CV": "WMeHaE0XCE\u002Bxz6\u002B5JXJoBg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0PHFhYgAAAAA/pzH5dgaJSLTGWxoZqnn0UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0g/NlYgAAAABhQXJLo/4YSZSYiyDhd5j4V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "230ms" + "X-Processing-Time": "373ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_202204211459088aa5006e-5a12-459b-bbc8-843f8dd4a89b_noam", + "messageId": "Outgoing_20220425010403db590b8e-dddd-4db5-99d1-7e421299f176_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json index b74b4cdd3ead..ba97ecb31db8 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -10,8 +10,8 @@ "Connection": "keep-alive", "Content-Length": "348", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "16b1ef49-1e4f-45c7-9b29-de68b04e9711" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "3ce28c11-ef71-4aa5-a72b-017a8de69874" }, "RequestBody": { "from": "\u002B14255550123", @@ -36,19 +36,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:09 GMT", - "MS-CV": "UQEvTxbOGE6yOZIn7mCdsQ.0", + "Date": "Mon, 25 Apr 2022 01:04:07 GMT", + "MS-CV": "jst\u002BOunVn02al2oNZZXmFg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0PnFhYgAAAADm7cYZC7uAS4S0mGy8BFCxUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0h/NlYgAAAADxidOVscRSTaDTrBQBKskLV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "92ms" + "X-Processing-Time": "514ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_202204211459102608f5f1-6ab5-4778-91f8-632909b85fb0_noam", + "messageId": "Outgoing_20220425010407629b3ae2-ced9-4296-9303-3ddc9fac532b_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json index f8a98c48feb1..5247c8ca1920 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json @@ -10,8 +10,8 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "6d208838-d559-4538-a73d-6b9139e860b7" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "bc396c55-2982-4894-9454-53ec3c763ac5" }, "RequestBody": { "from": "\u002B14255550123", @@ -32,19 +32,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:08 GMT", - "MS-CV": "Tvj5K30jdEChJ6JOqwZlwg.0", + "Date": "Mon, 25 Apr 2022 01:04:04 GMT", + "MS-CV": "tnsj5GZ8g0mzCtglDA/mqw.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0PHFhYgAAAAD7gsmEXKKKToD1lxQxVQjRUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0hPNlYgAAAABvx7rrxZhkQ56Ib8qMfV5FV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "229ms" + "X-Processing-Time": "499ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145909f894321b-e673-4459-ab9d-76151cc223e1_noam", + "messageId": "Outgoing_2022042501040443608f64-aa24-40ee-8bb0-9b7079769b1d_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json index c46a2ff50f85..7a84c6d42594 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json @@ -10,8 +10,8 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "cf0cfac0-7d99-4445-aa99-ca91e98e5d60" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "e939cdec-0dab-4b63-be60-308f4155ba4e" }, "RequestBody": { "from": "\u002B14255550123", @@ -32,19 +32,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:08 GMT", - "MS-CV": "/AbCUWKQoU6CyzlyUTHjcQ.0", + "Date": "Mon, 25 Apr 2022 01:04:05 GMT", + "MS-CV": "H4hab3AfYU2d77UepDI2rA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0PXFhYgAAAABAMh6Kp9KXRaUbLuhhGVu8UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0hfNlYgAAAABmDkH1/O0BTLuIN9hsg\u002BI9V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "232ms" + "X-Processing-Time": "511ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145909ada3c074-057d-4b1f-8891-6b9575ad0385_noam", + "messageId": "Outgoing_202204250104056f052deb-4060-4ac1-badc-956036d5d700_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -62,8 +62,8 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "88dc4a82-ccca-4b82-8387-0f9cb55cc230" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "6bdbe4b3-3b4a-40d2-a238-79d3a4cacc8e" }, "RequestBody": { "from": "\u002B14255550123", @@ -84,19 +84,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:09 GMT", - "MS-CV": "MMQIgOCBiE\u002BkM0O\u002Bvs54bA.0", + "Date": "Mon, 25 Apr 2022 01:04:06 GMT", + "MS-CV": "Kvr2oKTQGkSpz3wtZU/Vpw.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0PXFhYgAAAAApIKGV/iMSSISpvvtpG1kkUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0hfNlYgAAAAAq5z9I/6D4QLb4kUJtqxjMV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "109ms" + "X-Processing-Time": "547ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145909a1255764-3404-4510-8d9f-54aff45f65cf_noam", + "messageId": "Outgoing_202204250104063aece869-b16d-4e31-a6ed-fd1af7479050_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json index ddd42c078e04..d21322b36a96 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -10,8 +10,8 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "0c202dba-039b-4eee-a655-3e8a2373554b" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "9a350715-6aab-4693-a5da-86634bac011b" }, "RequestBody": { "from": "\u002B14255550123", @@ -32,13 +32,13 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json", - "Date": "Thu, 21 Apr 2022 14:59:09 GMT", - "MS-CV": "\u002BF\u002BNaJpK2UaueC53\u002BeV3Ug.0", + "Date": "Mon, 25 Apr 2022 01:04:08 GMT", + "MS-CV": "k786vwJDt0yqhdMxYd1JXQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0PnFhYgAAAAB/ZmtRmh1TTbYBenhJFjOWUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0iPNlYgAAAACef58bqLbITpzg/GQCE4HpV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "51ms" + "X-Processing-Time": "426ms" }, "ResponseBody": { "error": { diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json index 0e5f40b5e778..09c572160833 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_aad_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -10,8 +10,8 @@ "Connection": "keep-alive", "Content-Length": "253", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "9902b195-8d74-4b92-965a-99d0241de1e6" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "7e141b5c-c1f8-439e-b382-2544ce14cfb0" }, "RequestBody": { "from": "\u002B1425555012345", @@ -31,13 +31,13 @@ "StatusCode": 400, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:10 GMT", - "MS-CV": "BrD6gN2Z3U6paixfL\u002B8Jsg.0", + "Date": "Mon, 25 Apr 2022 01:04:08 GMT", + "MS-CV": "/KcAPpZcNkmQORNAfTaKew.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0P3FhYgAAAAC5oxV62yX7TK79511I7CAgUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0ifNlYgAAAACqQQFSfBACTJMmWUBl7kIOV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "13ms" + "X-Processing-Time": "12ms" }, "ResponseBody": { "From": [ diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message.json index c617bc25a285..46eb2c185bc2 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message.json @@ -10,10 +10,10 @@ "Connection": "keep-alive", "Content-Length": "230", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "96eaa9f9-1a3a-470d-9664-a12d099573ed", - "x-ms-content-sha256": "1EijGVQv8XOtsRGZYmD7dJEiaDU9s5AwYPd/LaqroQw=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:11 GMT" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "77880525-032f-40a3-91c0-4ac4889ec3a2", + "x-ms-content-sha256": "BgPBpdoyAVI58c50tp84AQxrH4UWQmKBj1TN7/GfuO8=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:09 GMT" }, "RequestBody": { "from": "\u002B14255550123", @@ -33,19 +33,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:10 GMT", - "MS-CV": "WqckibhS6UO2M6ObEqmrZw.0", + "Date": "Mon, 25 Apr 2022 01:04:09 GMT", + "MS-CV": "/iNeXGRJNUyvhIgiClRmfQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0P3FhYgAAAAA5zxsajRGLSryFAhunwFk4UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0ifNlYgAAAAC5lxN2R7ksRbTbst9qq\u002BRsV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "114ms" + "X-Processing-Time": "513ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145911d59780be-094f-4e64-a9f5-940bc7784ff3_noam", + "messageId": "Outgoing_2022042501040914d01119-b679-4b11-831d-ac9751418e02_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json index f9faaa8184e0..3d60326dbc78 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -10,10 +10,10 @@ "Connection": "keep-alive", "Content-Length": "348", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "4048a6bd-9b0d-417a-83e6-43112a139c84", - "x-ms-content-sha256": "JiSgzkiBvKs6B3cJqVjEdXpkNwDjBOg6W9bRDTytF2Y=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:12 GMT" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "c89106ed-752c-4e73-9d81-1dd3467f8899", + "x-ms-content-sha256": "7buRnUDTy/ee5k8ifF1z5TqcoyDX6AEPDYOC1YxGKAo=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:11 GMT" }, "RequestBody": { "from": "\u002B14255550123", @@ -38,19 +38,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:11 GMT", - "MS-CV": "x0ee46q35UCU14KeEn3EQQ.0", + "Date": "Mon, 25 Apr 2022 01:04:11 GMT", + "MS-CV": "GiQSD5IngkuZhw4saWW1gQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0QHFhYgAAAADv2ldP2mCKRpeEpYT6zjFVUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0i/NlYgAAAAAPNR9nni5dTLnHdG\u002Bt7CjkV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "103ms" + "X-Processing-Time": "361ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145912f0a95d67-e779-4278-b366-4435bda12f50_noam", + "messageId": "Outgoing_20220425010411fd4b36c2-c8ee-421f-9a51-1515b83b1ba5_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json index e288b0ad0823..aeb08a24931f 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_can_send_an_sms_message_with_options_passed_in.json @@ -10,10 +10,10 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "d6d26ef1-2a72-448f-a6ff-34431e84c624", - "x-ms-content-sha256": "4rw155OcALE7lhzv8MUjGO6UWJnL5kI2cv/4ZcOwLqY=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:11 GMT" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "746877af-74cc-48a9-b52a-cc53797ab574", + "x-ms-content-sha256": "KHbzzWN/RKBCOlrMJTJWvpWhIFL7gHFb1R921XsneEA=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:09 GMT" }, "RequestBody": { "from": "\u002B14255550123", @@ -34,19 +34,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:10 GMT", - "MS-CV": "3Ztk3mlreEKk\u002Bz6nNGfeyA.0", + "Date": "Mon, 25 Apr 2022 01:04:10 GMT", + "MS-CV": "8drq0bHFeUqODL8NNDWowg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0P3FhYgAAAAB1BeXVrUoeQKGmwKEpXb8MUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0ifNlYgAAAADgWYwMVYMpQb2bIAtmhmU4V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "109ms" + "X-Processing-Time": "532ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_2022042114591129921524-2eb8-4ec0-9295-4e7bbe83c30f_noam", + "messageId": "Outgoing_20220425010410613ae3b5-d1aa-49d5-ad91-a8ed10c31da9_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json index 26b122b19853..61f82f3508de 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_sends_a_new_message_each_time_send_is_called.json @@ -10,10 +10,10 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "ff5e7921-bb03-426a-9775-287743c53cab", - "x-ms-content-sha256": "RBOB23dqZZEl/KSaUNqytWb6o2k9tykKCqT8eAn/Ok8=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:11 GMT" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "6fa6007f-488e-43fc-aab3-a6434437d0fe", + "x-ms-content-sha256": "LgauvVVu\u002Bpwi3v7HMdBQecSkBMdhnLpViJewKH8nRYE=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:10 GMT" }, "RequestBody": { "from": "\u002B14255550123", @@ -34,19 +34,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:11 GMT", - "MS-CV": "2BFQ\u002BOYiPkyVvEhQpSJ\u002B0w.0", + "Date": "Mon, 25 Apr 2022 01:04:10 GMT", + "MS-CV": "8ER5e8WE4kCSgp60UhFrWg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0P3FhYgAAAAAdkSpfheXCQZeLOqIrSqtgUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0ivNlYgAAAABd4ugu4U2URLHGXQyQlo1bV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "103ms" + "X-Processing-Time": "515ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_202204211459110f65c399-1405-4e26-a997-e7c63fff7f0d_noam", + "messageId": "Outgoing_202204250104103231508e-ba38-4456-8dce-e36ada8967ea_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -64,10 +64,10 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "3151f161-6154-45d4-9e98-52c5705cf27d", - "x-ms-content-sha256": "FAMxZju0wMXJZcbRoU/7LE52iYE0rpM/yDmvdSdB17E=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:11 GMT" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "5159977e-3342-413c-935a-624f004331d1", + "x-ms-content-sha256": "Ui41YDJws/gH\u002BvZ4Sy8ndfSNLdDoHZbm7H3RTdNNcE4=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:11 GMT" }, "RequestBody": { "from": "\u002B14255550123", @@ -88,19 +88,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:11 GMT", - "MS-CV": "0G\u002BjCHbIj0qILt/q1RwCTQ.0", + "Date": "Mon, 25 Apr 2022 01:04:11 GMT", + "MS-CV": "YsW13/CdDEK1eVG5tkDA9A.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0QHFhYgAAAAAD/UKGsKLxR4mUgL//tZbOUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0ivNlYgAAAAD8RCoo\u002BZ5jSJXBG0ZyyZ1oV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "102ms" + "X-Processing-Time": "375ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_202204211459127728d178-ab3a-4cf5-a29e-018064b73d89_noam", + "messageId": "Outgoing_2022042501041138c5461a-d4e4-4e0c-99e0-9ab9e328006f_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json index d7d16f4dbf48..d661e9c577ce 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -10,10 +10,10 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "d9d33585-1b5e-4e7c-a0ef-582cde24a9cc", - "x-ms-content-sha256": "26T3W313jOppMv1k/xpfVagqNV5yK3\u002BZ/9UkeXr1JdY=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:12 GMT" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "81032775-1ced-4612-8292-276c132c9dfd", + "x-ms-content-sha256": "bp4bj7snvuzEht1k\u002BlPVr9AmQzpv3Gbg60Ku74wGLtQ=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:11 GMT" }, "RequestBody": { "from": "\u002B14255550123", @@ -34,13 +34,13 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json", - "Date": "Thu, 21 Apr 2022 14:59:11 GMT", - "MS-CV": "OIhmBohDSkCHGKsESoSOOA.0", + "Date": "Mon, 25 Apr 2022 01:04:11 GMT", + "MS-CV": "JPF98gAF/UaMw\u002BBuRdKCLw.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0QHFhYgAAAAADddBJ\u002B9rYTLhPvY2IbV8PUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0i/NlYgAAAAD\u002BHOWDGnNNSo2Hr\u002BWUVlN6V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "60ms" + "X-Processing-Time": "280ms" }, "ResponseBody": { "error": { diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json index 96e89f23b460..01c72d16cfee 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_live_test_send_method/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -10,10 +10,10 @@ "Connection": "keep-alive", "Content-Length": "253", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "0366ea5e-06f2-4788-a816-e652e23d9fc2", - "x-ms-content-sha256": "E/46I5DkY/QPaYDVRcYtCZWYKhIywmWnEDTflAKLw\u002Bw=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:12 GMT" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "4af5f16a-4def-4165-a39f-83dbaac59da3", + "x-ms-content-sha256": "9hMRtzMVb/hQXSadaMtso58GCT8dDrdXVkkAz\u002BbASzA=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:12 GMT" }, "RequestBody": { "from": "\u002B1425555012345", @@ -33,13 +33,13 @@ "StatusCode": 400, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:11 GMT", - "MS-CV": "OJ8cc0wRl0ie\u002BbWfY11cFw.0", + "Date": "Mon, 25 Apr 2022 01:04:12 GMT", + "MS-CV": "DNPh6/QJQUat2yWncrr7Gw.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0QHFhYgAAAAB6WgSBd6SnTqZhMMECDRTCUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0jPNlYgAAAAAst28ySAVPR4mkw1d55GhwV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "20ms" + "X-Processing-Time": "16ms" }, "ResponseBody": { "From": [ diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json index 5ba4c0bd8181..32c71e194766 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message.json @@ -10,8 +10,8 @@ "Connection": "keep-alive", "Content-Length": "230", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "4c3ab460-c014-4ecb-9640-01c6af14edc6" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "c51da63d-f2c2-4d02-9b32-24c7f3fceab2" }, "RequestBody": { "from": "\u002B14255550123", @@ -31,19 +31,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:01 GMT", - "MS-CV": "TUFhIOCVWEGBarv\u002BdtStCA.0", + "Date": "Mon, 25 Apr 2022 01:03:55 GMT", + "MS-CV": "rWW3AoS1dEGl2cqg5rOdng.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0NXFhYgAAAAAVNUUETzeyQotbNWEY8R87UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0evNlYgAAAABx8yZ5OkeTQJ0d/8ma/JKOV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "264ms" + "X-Processing-Time": "365ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145901c7f3e788-0757-44a7-83a4-e3467339f66f_noam", + "messageId": "Outgoing_20220425010355b27eb82c-2b55-4d86-8c1f-da1f102de6f2_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json index 48f194e5ecee..1b765f82943e 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -10,8 +10,8 @@ "Connection": "keep-alive", "Content-Length": "348", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "b2f62600-187c-4f5c-b023-a2cdb19b59b1" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "a2923ccc-35be-4343-a3ab-a9faae21c52f" }, "RequestBody": { "from": "\u002B14255550123", @@ -36,19 +36,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:03 GMT", - "MS-CV": "Nx2wqPTc9k2enxu4N0xQjg.0", + "Date": "Mon, 25 Apr 2022 01:03:58 GMT", + "MS-CV": "mSiCUAszwkWPJ7/\u002Bzliu\u002BA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0N3FhYgAAAAA3mJ5u71uFTo7NJXUPmk9XUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0fvNlYgAAAACRB1ZqesgZRIvOGsQoaKZRV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "223ms" + "X-Processing-Time": "364ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_202204211459036d38b0a3-c2f4-41cd-ae59-47133ce22aab_noam", + "messageId": "Outgoing_20220425010358a8e86c86-efe7-49ec-8b3c-837ac2379cab_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json index e59141c7f886..87b9b9aaae78 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json @@ -10,8 +10,8 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "8f5590f5-e899-45ef-8f99-65740d0d6a95" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "08dffd32-2c97-4154-8ac7-16e377a17604" }, "RequestBody": { "from": "\u002B14255550123", @@ -32,19 +32,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:01 GMT", - "MS-CV": "OD8lOE61NE6d\u002Be1pJaY63w.0", + "Date": "Mon, 25 Apr 2022 01:03:56 GMT", + "MS-CV": "uiLgdf2c802pJ8N8NXeeHQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0NnFhYgAAAADUah7DPO4rQquT0ocD\u002BmtVUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0e/NlYgAAAACJcDIiUx2HQoUzgcbWzo6OV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "252ms" + "X-Processing-Time": "358ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145902af2bfe4c-c86e-4432-b708-951b25bcc220_noam", + "messageId": "Outgoing_20220425010356a996b943-59e4-42e1-b899-36417199c3a9_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json index 006a5c4633a0..10912a112bd5 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json @@ -10,8 +10,8 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "b173a6b6-2d60-45ba-9d7b-a4851bfe1f76" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "6d3d3cc0-bfe6-4f87-8719-b8a48db44560" }, "RequestBody": { "from": "\u002B14255550123", @@ -32,19 +32,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:02 GMT", - "MS-CV": "J4Ftp9wpxUCUvi3n/Df09g.0", + "Date": "Mon, 25 Apr 2022 01:03:57 GMT", + "MS-CV": "XTpcfpZ/b0eb8WEOjTZV\u002BA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0NnFhYgAAAABjaloaz4h4SrL8jcrwxYCJUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0fPNlYgAAAABYEaJ1XjGtQZ32T8iDZ2Q5V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "234ms" + "X-Processing-Time": "354ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_202204211459031decf6f5-73eb-4c3a-9aa0-21e52d80b5a5_noam", + "messageId": "Outgoing_20220425010357d275e215-5c51-4e7a-ab78-3cbfee5caa5b_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -62,8 +62,8 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "3eb1764f-b7aa-49f9-9f6c-215556c779d2" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "8676bb00-0953-44f6-ba01-0e1244db08f0" }, "RequestBody": { "from": "\u002B14255550123", @@ -84,19 +84,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:02 GMT", - "MS-CV": "R6qI/UTMBUeTLlCg2HwIqg.0", + "Date": "Mon, 25 Apr 2022 01:03:57 GMT", + "MS-CV": "vO/iNtefaEiSLJey\u002BkAWvQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0N3FhYgAAAADj5D7a4hn0TLifea\u002B6166aUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0ffNlYgAAAAD6sB0w79qtT7jFlHh2Bl09V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "235ms" + "X-Processing-Time": "376ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145903033b14b9-e6b3-4fa5-9fde-e43872ff9796_noam", + "messageId": "Outgoing_20220425010357fdfd6640-68e1-41bf-8990-09f7dcd00eb2_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json index d505f0738276..2a5799f4a9f4 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -10,8 +10,8 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "c137a16f-1937-49f0-a651-9bacc0906d0b" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "a43a3d7c-1fc5-4432-9cbc-3e6e122e8292" }, "RequestBody": { "from": "\u002B14255550123", @@ -32,13 +32,13 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json", - "Date": "Thu, 21 Apr 2022 14:59:03 GMT", - "MS-CV": "QBADi4U5uU2jMjO2Vva1DQ.0", + "Date": "Mon, 25 Apr 2022 01:03:59 GMT", + "MS-CV": "5i0fzXLj8Ei7HNIQqgu2mA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0OHFhYgAAAABUaIJgMJgKRqNZ3zs/s3XIUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0f/NlYgAAAAB9vH15sOoUR4KE6yCiwq8BV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "188ms" + "X-Processing-Time": "275ms" }, "ResponseBody": { "error": { diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json index f970356bba0c..6cc04e204c0e 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_aad_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -10,8 +10,8 @@ "Connection": "keep-alive", "Content-Length": "253", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "6b7a8169-3ddb-492f-bc04-b0eab206281b" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "5cb10264-a62f-4dea-b1b1-23e62b16f482" }, "RequestBody": { "from": "\u002B1425555012345", @@ -31,13 +31,13 @@ "StatusCode": 400, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:04 GMT", - "MS-CV": "RDVc1/Xd2U6lbD67ZgHzvA.0", + "Date": "Mon, 25 Apr 2022 01:03:59 GMT", + "MS-CV": "ZSBTP97vPkGztb/6bjFldw.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0OHFhYgAAAADYl9gGZD/0SbxF7ZE1/Ew4UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0f/NlYgAAAACtBuSTLhy2QrUYxY2wyOjmV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "17ms" + "X-Processing-Time": "11ms" }, "ResponseBody": { "From": [ diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json index 05cff5bcc947..b8510778196f 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message.json @@ -10,10 +10,10 @@ "Connection": "keep-alive", "Content-Length": "230", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "2fe25533-2214-4eed-b997-845921792087", - "x-ms-content-sha256": "GHhQe77R3mEtxA\u002B8O858uUmr08eSsEI/Arg4Nki/BP8=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:05 GMT" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "53805160-51a6-4865-a8e6-a8df1ea905be", + "x-ms-content-sha256": "rZuFezFp9Bf9SOe3BjKG7M/1NanTe\u002BoKIKNWJKiG788=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:00 GMT" }, "RequestBody": { "from": "\u002B14255550123", @@ -33,19 +33,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:04 GMT", - "MS-CV": "ocTlgZBTz0OgZUzlfruwCg.0", + "Date": "Mon, 25 Apr 2022 01:04:00 GMT", + "MS-CV": "wSTvc96LfUSkH4RxfxMyXQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0OXFhYgAAAAAtuzNCLIbjTbs1QZZzHnivUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0gPNlYgAAAAC86pTJUZhKTJtWMnlxAynLV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "233ms" + "X-Processing-Time": "471ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_2022042114590586f44e65-192b-41fd-952f-9013bde85136_noam", + "messageId": "Outgoing_20220425010400c788c66a-2904-4eb6-9f3c-45f9889cf87e_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json index ea4e7f0cb351..d6af96e6451e 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_to_multiple_recipients.json @@ -10,10 +10,10 @@ "Connection": "keep-alive", "Content-Length": "348", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "8c3da7bc-d64d-40c1-90c3-ff26e2dbadb3", - "x-ms-content-sha256": "D/Oe\u002BYy6aTeRztYcOy9btluDxxtPiLyII4P1G361XrM=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:06 GMT" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "0dd75d29-87ce-4453-b543-545847c2f5a6", + "x-ms-content-sha256": "T10tIgymYZRSEer6DFSYYLDktdUlpmkA9tqJU9A7yRU=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:02 GMT" }, "RequestBody": { "from": "\u002B14255550123", @@ -38,19 +38,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:06 GMT", - "MS-CV": "pVMEEKWO0kmalW\u002BE87oAoQ.0", + "Date": "Mon, 25 Apr 2022 01:04:02 GMT", + "MS-CV": "mmxgnlkoAU29ODZwnnX9Gw.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0OnFhYgAAAACCAfzqRwiyT5Ak2e3Cz3K0UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0gfNlYgAAAACtre0mucfpTrSwKDMmHQcnV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "230ms" + "X-Processing-Time": "362ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145906ee6ee364-75c7-44fe-a4e8-f2471f8e6b83_noam", + "messageId": "Outgoing_2022042501040280bd8bb7-6b3a-4a9a-827f-06e2a3fb1f48_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json index 314e7aebfa28..d0c0e5711b6a 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_can_send_an_sms_message_with_options_passed_in.json @@ -10,10 +10,10 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "2e1847f2-06ce-440d-951f-71f2900802c9", - "x-ms-content-sha256": "my/201h0\u002BSNpsn6eaBXGW0qBi1xEukZvHCBiJgOrBos=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:05 GMT" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "5943d040-f570-40d2-b3ec-420aaa085221", + "x-ms-content-sha256": "qNsE7Gphk84P6bROmeam\u002BpFxSQaIbKk4hOdcI2JoeSI=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:00 GMT" }, "RequestBody": { "from": "\u002B14255550123", @@ -34,19 +34,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:04 GMT", - "MS-CV": "Wv1z4/ssrkaisX/LoMM0Vg.0", + "Date": "Mon, 25 Apr 2022 01:04:00 GMT", + "MS-CV": "CU5mbBcI30y4Z8Hqnsu88Q.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0OXFhYgAAAAAP\u002BAKQ8XZzQqVgjXEfZP1pUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0gPNlYgAAAABTlxvMlniqQ7xM2H6AtO\u002BGV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "228ms" + "X-Processing-Time": "371ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_20220421145905e326691a-c1f8-46ae-9e85-0109580d69e5_noam", + "messageId": "Outgoing_20220425010400de09950b-d3ed-4764-832d-9623291650ce_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json index 5685affc6c17..cca958170324 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_sends_a_new_message_each_time_send_is_called.json @@ -10,10 +10,10 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "044a42f0-ab5d-4f47-86ac-b8050823679d", - "x-ms-content-sha256": "xv8LWOJdvjgusb3utCar50YxQqhQnAWfae2S0o3uhCk=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:05 GMT" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "30ee5279-19bf-4647-af95-cb9c084ded20", + "x-ms-content-sha256": "7/QQDPWyCi8rnVYIic\u002BT0\u002BMrJAT/VT2CYFm52JdD8t8=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:01 GMT" }, "RequestBody": { "from": "\u002B14255550123", @@ -34,19 +34,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:05 GMT", - "MS-CV": "VjOgRFZuLkaJ2jtLgeDtgQ.0", + "Date": "Mon, 25 Apr 2022 01:04:01 GMT", + "MS-CV": "YbzD5z8PWUag/w28Y/rxaA.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0OXFhYgAAAADyz7iUIlBRRov0/Hl9b7eWUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0gfNlYgAAAABhNythwFs9TJpH1geRB2xzV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "234ms" + "X-Processing-Time": "360ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_202204211459069972c907-044b-4d62-bd5f-b71d29206aac_noam", + "messageId": "Outgoing_202204250104017625f067-6ba9-4e59-af70-eb35deeb3f9f_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true @@ -64,10 +64,10 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "ba38e85a-8edf-4e75-93ee-d3dcb3e343e5", - "x-ms-content-sha256": "SPqpzpgq9aXRiDtBiAwZSYDysceP8HsM9JgMXL55r18=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:06 GMT" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "13e0f3fc-cfd7-48d3-b642-25d5be06dbc8", + "x-ms-content-sha256": "e7y1sqbyGU3BYAT4erPWR95FFtUz8ofB7OTgvGBDiRo=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:01 GMT" }, "RequestBody": { "from": "\u002B14255550123", @@ -88,19 +88,19 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:05 GMT", - "MS-CV": "TKB6fzbR0U\u002BzPfQUtyT5Zg.0", + "Date": "Mon, 25 Apr 2022 01:04:01 GMT", + "MS-CV": "CZFcVibWbEuV1HTkE02i6Q.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0OnFhYgAAAACLMgYkMaDYTa2JYNnYjtQ0UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0gfNlYgAAAABAIVKZMHfQQaz/apt/kT/wV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "250ms" + "X-Processing-Time": "370ms" }, "ResponseBody": { "value": [ { "to": "\u002B14255550123", - "messageId": "Outgoing_202204211459064c6e0277-24d2-4990-8a51-9c4ac327fb03_noam", + "messageId": "Outgoing_2022042501040140bccebb-6b13-4f34-994b-9a9a18a1155d_noam", "httpStatusCode": 202, "repeatabilityResult": "accepted", "successful": true diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json index f7b11688bc85..aaa9aa376ae4 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_a_number_you_dont_own.json @@ -10,10 +10,10 @@ "Connection": "keep-alive", "Content-Length": "251", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "ae41837b-ff80-4970-834a-cc042d7f7b9a", - "x-ms-content-sha256": "WK2XoRzdvgDFygXQ0tHHi\u002BFeyWXpJnDVFWX5srpd4GQ=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:06 GMT" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "7ca9a3ab-a60e-42c7-b632-2212382ed164", + "x-ms-content-sha256": "rtEPrnBXfBDFJEeZrYRIXabwzQcI58eGkOYVbFVroG0=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:02 GMT" }, "RequestBody": { "from": "\u002B14255550123", @@ -34,13 +34,13 @@ "ResponseHeaders": { "api-supported-versions": "2020-07-20-preview1, 2020-08-20-preview, 2021-03-07", "Content-Type": "application/json", - "Date": "Thu, 21 Apr 2022 14:59:06 GMT", - "MS-CV": "QR1UY\u002BY7l0Co/MR3RaafhQ.0", + "Date": "Mon, 25 Apr 2022 01:04:02 GMT", + "MS-CV": "Ic2wM2Jln0e6hOox5M0FVg.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0OnFhYgAAAABW685n3QBdRqF4C\u002Bz4pIZlUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0gvNlYgAAAADYfTcIbeskRqhLu1gdpTUPV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "220ms" + "X-Processing-Time": "282ms" }, "ResponseBody": { "error": { diff --git a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json index 44bd80c930fd..d5b28a453661 100644 --- a/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json +++ b/sdk/communication/communication-sms/recordings/node/smsclient_playbackrecord_when_sending_sms/recording_throws_an_exception_when_sending_from_an_invalid_number.json @@ -10,10 +10,10 @@ "Connection": "keep-alive", "Content-Length": "253", "Content-Type": "application/json", - "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.19.0 OS/(x64-Windows_NT-10.0.22000)", - "x-ms-client-request-id": "9f5ab44f-2240-4ae4-b5b0-7876cd91f81c", - "x-ms-content-sha256": "YREpxF7gz7gST1khcAJqosynA/L1x889/vx5xr5Tc0g=", - "x-ms-date": "Thu, 21 Apr 2022 14:59:07 GMT" + "User-Agent": "azsdk-js-communication-sms/1.2.0-beta.1 core-rest-pipeline/1.8.0 Node/v14.17.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "b475f380-e901-4106-8547-773aa56ceac9", + "x-ms-content-sha256": "8xUEyGiCqPDmQ7J/gRvnP6BZG85v7a9nYKTVfFjWq2k=", + "x-ms-date": "Mon, 25 Apr 2022 01:04:02 GMT" }, "RequestBody": { "from": "\u002B1425555012345", @@ -33,13 +33,13 @@ "StatusCode": 400, "ResponseHeaders": { "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 21 Apr 2022 14:59:06 GMT", - "MS-CV": "m1dGcObC9kSZ7l6ZUBRfnA.0", + "Date": "Mon, 25 Apr 2022 01:04:02 GMT", + "MS-CV": "XLxsrPROEEGsMnAP6kvGCQ.0", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0O3FhYgAAAAD3yobdsI6QTZTvIG0mByBzUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref": "0gvNlYgAAAABomD1KVJr4QrWgb4dWy\u002BVlV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "89ms" + "X-Processing-Time": "17ms" }, "ResponseBody": { "From": [ From 8c91650318dbf1039c94e0bd7f387c982f85666f Mon Sep 17 00:00:00 2001 From: Arif Ibrahim Mohamed Date: Mon, 25 Apr 2022 05:25:29 -0700 Subject: [PATCH 09/10] analyzer fix --- .../test/public/utils/recordedClient.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sdk/communication/communication-sms/test/public/utils/recordedClient.ts b/sdk/communication/communication-sms/test/public/utils/recordedClient.ts index 92ac3f6f3c53..6f29c31aad39 100644 --- a/sdk/communication/communication-sms/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-sms/test/public/utils/recordedClient.ts @@ -9,10 +9,10 @@ import { env, isPlaybackMode, } from "@azure-tools/test-recorder"; +import { SmsClient } from "../../../src"; +import { parseConnectionString } from "@azure/communication-common"; import { TokenCredential } from "@azure/core-auth"; import { createTestCredential } from "@azure-tools/test-credential"; -import { parseConnectionString } from "@azure/communication-common"; -import { SmsClient } from "../../../src"; export interface RecordedClient { client: T; @@ -36,15 +36,15 @@ const sanitizerOptions: SanitizerOptions = { }, ], generalSanitizers: [ - { regex: true, target: `"access_token"\s?:\s?"[^"]*"`, value: `"access_token":"sanitized"` }, + { regex: true, target: `"access_token"\\s?:\\s?"[^"]*"`, value: `"access_token":"sanitized"` }, { regex: true, - target: `"repeatabilityRequestId"\s?:\s?"[^"]*"`, + target: `"repeatabilityRequestId"\\s?:\\s?"[^"]*"`, value: `"repeatabilityRequestId":"sanitized"`, }, { regex: true, - target: `"repeatabilityFirstSent"\s?:\s?"[^"]*"`, + target: `"repeatabilityFirstSent"\\s?:\\s?"[^"]*"`, value: `"repeatabilityFirstSent":"Thu, 01 Jan 1970 00:00:00 GMT"`, }, ], From 2e289c447eb06e6317f5972f0daec2ead3316fc1 Mon Sep 17 00:00:00 2001 From: Arif Ibrahim Mohamed Date: Mon, 25 Apr 2022 13:19:46 -0700 Subject: [PATCH 10/10] update code owner for sms --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f5082c037e3a..f09a0e7d1992 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -53,7 +53,7 @@ /sdk/communication/communication-network-traversal/ @AriZavala2 # PRLabel: %Communication - SMS -/sdk/communication/communication-sms/ @arifibrahim4 @RoyHerrod +/sdk/communication/communication-sms/ @DimaKolomiiets # PRLabel: %Communication - Short Codes /sdk/communication/communication-short-codes/ @danielav7