diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 1a1798456090..469d12ed8fe2 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -13133,7 +13133,7 @@ packages: dev: false file:projects/arm-relay.tgz: - resolution: {integrity: sha512-BZwNmIqiRhcjqE/MrR7Tdm9Ut62aY0SGojZ8eXkh96VSSJrO7L4XNCjFZUKICC1dLtDJC/B7ZgLhk5w8xsa8Fw==, tarball: file:projects/arm-relay.tgz} + resolution: {integrity: sha512-2y6NoWrmtnt0l5+PPJmcGCjNggTcXTd8QMdfz3nh9BmZhGatb1gPjyZ2NXOQ+C5Vsj+zM5ru5pJuFcy4ZdpFaw==, tarball: file:projects/arm-relay.tgz} name: '@rush-temp/arm-relay' version: 0.0.0 dependencies: @@ -13145,6 +13145,8 @@ packages: '@rollup/plugin-json': 4.1.0_rollup@2.75.7 '@rollup/plugin-multi-entry': 4.1.0_rollup@2.75.7 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.75.7 + '@types/chai': 4.3.1 + chai: 4.3.6 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 @@ -13156,7 +13158,6 @@ packages: uglify-js: 3.16.2 transitivePeerDependencies: - '@types/node' - - encoding - supports-color dev: false diff --git a/sdk/relay/arm-relay/CHANGELOG.md b/sdk/relay/arm-relay/CHANGELOG.md index b37d42ad23b9..8261f8cd8827 100644 --- a/sdk/relay/arm-relay/CHANGELOG.md +++ b/sdk/relay/arm-relay/CHANGELOG.md @@ -1,15 +1,17 @@ # Release History + +## 3.1.0 (2022-07-08) + +**Features** -## 3.0.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface AuthorizationRule + - Added Interface HybridConnection + - Added Interface RelayNamespace + - Added Interface RelayUpdateParameters + - Added Interface ResourceNamespacePatch + - Added Interface TrackedResource + - Added Interface WcfRelay + ## 3.0.1 (2022-04-29) **Features** diff --git a/sdk/relay/arm-relay/README.md b/sdk/relay/arm-relay/README.md index aa4ea3c013e3..fc98173f3b71 100644 --- a/sdk/relay/arm-relay/README.md +++ b/sdk/relay/arm-relay/README.md @@ -1,6 +1,6 @@ -# Azure Service client library for JavaScript +# Azure RelayApi client library for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Service client. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure RelayApi client. Use these API to manage Azure Relay resources through Azure Resource Manager. @@ -24,7 +24,7 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP ### Install the `@azure/arm-relay` package -Install the Azure Service client library for JavaScript with `npm`: +Install the Azure RelayApi client library for JavaScript with `npm`: ```bash npm install @azure/arm-relay @@ -32,8 +32,8 @@ npm install @azure/arm-relay ### Create and authenticate a `RelayAPI` -To create a client object to access the Azure Service API, you will need the `endpoint` of your Azure Service resource and a `credential`. The Azure Service client can use Azure Active Directory credentials to authenticate. -You can find the endpoint for your Azure Service resource in the [Azure Portal][azure_portal]. +To create a client object to access the Azure RelayApi API, you will need the `endpoint` of your Azure RelayApi resource and a `credential`. The Azure RelayApi client can use Azure Active Directory credentials to authenticate. +You can find the endpoint for your Azure RelayApi resource in the [Azure Portal][azure_portal]. You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). @@ -43,7 +43,7 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below npm install @azure/identity ``` -You will also need to **register a new AAD application and grant access to Azure Service** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). +You will also need to **register a new AAD application and grant access to Azure RelayApi** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). @@ -72,7 +72,7 @@ To use this client library in the browser, first you need to use a bundler. For ### RelayAPI -`RelayAPI` is the primary interface for developers using the Azure Service client library. Explore the methods on this client object to understand the different features of the Azure Service service that you can access. +`RelayAPI` is the primary interface for developers using the Azure RelayApi client library. Explore the methods on this client object to understand the different features of the Azure RelayApi service that you can access. ## Troubleshooting diff --git a/sdk/relay/arm-relay/_meta.json b/sdk/relay/arm-relay/_meta.json index 946d61b6093d..23e431992f5c 100644 --- a/sdk/relay/arm-relay/_meta.json +++ b/sdk/relay/arm-relay/_meta.json @@ -1,8 +1,8 @@ { "commit": "0cd7b3e83d5e7e21222dcc4bdde4565562da0cdf", "readme": "specification\\relay\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\relay\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1 --generate-sample=true", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\relay\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.1 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.3.0", - "use": "@autorest/typescript@6.0.0-alpha.19.20220408.1" -} + "release_tool": "@azure-tools/js-sdk-release-tools@2.4.0", + "use": "@autorest/typescript@6.0.0-rc.1" +} \ No newline at end of file diff --git a/sdk/relay/arm-relay/package.json b/sdk/relay/arm-relay/package.json index 6f674208f501..90ca7a9ec27d 100644 --- a/sdk/relay/arm-relay/package.json +++ b/sdk/relay/arm-relay/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for RelayAPI.", - "version": "3.0.2", + "version": "3.1.0", "engines": { "node": ">=12.0.0" }, @@ -40,9 +40,13 @@ "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^1.0.0", + "@azure-tools/test-recorder": "^2.0.0", + "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "cross-env": "^7.0.2" + "@types/chai": "^4.2.8", + "chai": "^4.2.0", + "cross-env": "^7.0.2", + "@azure/dev-tool": "^1.0.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/relay/arm-relay", "repository": { @@ -93,9 +97,8 @@ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", - "integration-test:browser": "echo skipped", - "docs": "echo skipped" + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -115,4 +118,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-relay?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_create_test.js b/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_create_test.js deleted file mode 100644 index f67e9eae96a3..000000000000 --- a/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_create_test.js +++ /dev/null @@ -1,671 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "b948971e95eded2eba42a424fb4745dc"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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', - '515b7f7a-a6ec-4d9d-a61d-90fdcf0c0c00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AsdA9I6_3MJIgR7IESqCxsk; expires=Sun, 09-Jan-2022 05:50:10 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4BbhYVvsZWChK9et3_jvnOiwNtjmp2tGoarOoA-wmo41W_S6z81xJanOtbAKywfuZx6khgu5_LAT_FoJD_ScsZELc2A1BAj5Dn-eT3TBAiAx9YMapzxR7p6i2MB37-5wdX-h4E-P7d4u_WnXxL8DTq2Sk2f-ANetbTsweWelBkEgAA; 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, 10 Dec 2021 05:50:10 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/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', - '9e4deb1d-59f9-4f91-a0fa-cb1eed3d0b00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Arv7cFcg1f9KmLJsxqySkmc; expires=Sun, 09-Jan-2022 05:50:10 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBbbvAppmx68fCx_lpPOWYGBj0hshvtpaSuVvIfitn4y7J0ghPx0_dV6oGLarGGGLVS9--K9oWMFcVaYMCGyvqKfqZFI_XxZj8CYGGE4iXtQ8uQ9H_1iQPN9QkWkBxJPqrZU4uQWM1zCvUGHErqrROZBiVUEnOPCvC-8Wr0H7ORggAA; 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, 10 Dec 2021 05:50:10 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&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=4385fbce-b20d-4f0c-aa58-2f4e8e382135&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":"access_token"}, [ - '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', - '1306231f-1899-4d48-aeca-900136130b00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AhOQHkcV-CdMl_XxrFQKxsIWPr5BAQAAAJLhRNkOAAAA; expires=Sun, 09-Jan-2022 05:50:10 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, 10 Dec 2021 05:50:10 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx', {"location":"eastus","tags":{"tag1":"value1"},"sku":{"name":"Standard","tier":"Standard"}}) - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c170326fc56794d94e0afe9afcba2a1978be50591a5456727754ebf805e8bbcad8be91948741b9a3ceaa13f1550c72d41d8dbd9dbdddedddbdedd79b373ffd1fd9d47bb0fc6bb7bf77e8a9aad57b3db346bf2fab298e64fd6cde972b6aa8a25dacfdb76d53cbadb21e958db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d04f8e878da169744bde5c547bfe4","97fc3f1d8349be3a020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '9cd9bebf-e1af-4a01-b614-5f44b1a0c9c4_M4CH3_M4CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes', - '1199', - 'x-ms-correlation-request-id', - 'efb927ec-3f5d-49ba-89fb-4c4b12c51c45', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055019Z:efb927ec-3f5d-49ba-89fb-4c4b12c51c45', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:50:18 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c170326fc56794d94e0afe9afcba2a1978be50591a5456727754ebf805e8bbcad8be91948741b9a3ceaa13f1550c72d41d8dbd9dbdddedddbdedd79b373ffd1fd9d47bb0fc6bb7bf77e8a9aad57b3db346bf2fab298e64fd6cde972b6aa8a25dacfdb76d53cbadb21e958db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d04f8e878da169744bde5c547bfe4","97fc3f1d8349be3a020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - 'c0c9e010-3dbc-4ee1-bcac-86fb5e80b0a8_M11CH3_M11CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11999', - 'x-ms-correlation-request-id', - 'ccb0cbf5-134a-4bf1-909a-d710f465d70a', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055020Z:ccb0cbf5-134a-4bf1-909a-d710f465d70a', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:50:20 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c170326fc56794d94e0afe9afcba2a1978be50591a5456727754ebf805e8bbcad8be91948741b9a3ceaa13f1550c72d41d8dbd9dbdddedddbdedd79b373ffd1fd9d47bb0fc6bb7bf77e8a9aad57b3db346bf2fab298e64fd6cde972b6aa8a25dacfdb76d53cbadb21e958db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d04f8e878da169744bde5c547bfe4","97fc3f1d8349be3a020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '2e610945-14e9-4b8d-8a68-ba9474fdc475_M8CH3_M8CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11998', - 'x-ms-correlation-request-id', - '2a51869b-9ad1-4b07-82ca-c1e90fb8573b', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055023Z:2a51869b-9ad1-4b07-82ca-c1e90fb8573b', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:50:23 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c170326fc56794d94e0afe9afcba2a1978be50591a5456727754ebf805e8bbcad8be91948741b9a3ceaa13f1550c72d41d8dbd9dbdddedddbdedd79b373ffd1fd9d47bb0fc6bb7bf77e8a9aad57b3db346bf2fab298e64fd6cde972b6aa8a25dacfdb76d53cbadb21e958db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d04f8e878da169744bde5c547bfe4","97fc3f1d8349be3a020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - 'cdb584b7-eb86-44e7-95cf-609b755466a3_M10CH3_M10CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11997', - 'x-ms-correlation-request-id', - '53de320b-cff6-4ecd-9b04-662c98e4a3e3', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055027Z:53de320b-cff6-4ecd-9b04-662c98e4a3e3', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:50:26 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c170326fc56794d94e0afe9afcba2a1978be50591a5456727754ebf805e8bbcad8be91948741b9a3ceaa13f1550c72d41d8dbd9dbdddedddbdedd79b373ffd1fd9d47bb0fc6bb7bf77e8a9aad57b3db346bf2fab298e64fd6cde972b6aa8a25dacfdb76d53cbadb21e958db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d04f8e878da169744bde5c547bfe4","97fc3f1d8349be3a020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - 'd32189bf-8353-419c-8012-a5d6b8298bf4_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11996', - 'x-ms-correlation-request-id', - '40d6c0d8-7746-451a-8f7b-16b1032fab8a', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055031Z:40d6c0d8-7746-451a-8f7b-16b1032fab8a', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:50:30 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c170326fc56794d94e0afe9afcba2a1978be50591a5456727754ebf805e8bbcad8be91948741b9a3ceaa13f1550c72d41d8dbd9dbdddedddbdedd79b373ffd1fd9d47bb0fc6bb7bf77e8a9aad57b3db346bf2fab298e64fd6cde972b6aa8a25dacfdb76d53cbadb21e958db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d04f8e878da169744bde5c547bfe4","97fc3f1d8349be3a020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '0f3a531a-99b4-4eb6-a111-fd0afe911bec_M7CH3_M7CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11995', - 'x-ms-correlation-request-id', - 'e6c28032-55a9-4ea6-8154-26c3a9f98600', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055033Z:e6c28032-55a9-4ea6-8154-26c3a9f98600', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:50:33 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c170326fc56794d94e0afe9afcba2a1978be50591a5456727754ebf805e8bbcad8be91948741b9a3ceaa13f1550c72d41d8dbd9dbdddedddbdedd79b373ffd1fd9d47bb0fc6bb7bf77e8a9aad57b3db346bf2fab298e64fd6cde972b6aa8a25dacfdb76d53cbadb21e958db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d04f8e878da169744bde5c547bfe4","97fc3f1d8349be3a020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - 'd84f4a4b-d0db-4ace-a4fb-5476d7b8787c_M7CH3_M7CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11994', - 'x-ms-correlation-request-id', - '625a4615-2474-440d-b5d5-e759cc9a4d27', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055036Z:625a4615-2474-440d-b5d5-e759cc9a4d27', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:50:36 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c170326fc56794d94e0afe9afcba2a1978be50591a5456727754ebf805e8bbcad8be91948741b9a3ceaa13f1550c72d41d8dbd9dbdddedddbdedd79b373ffd1fd9d47bb0fc6bb7bf77e8a9aad57b3db346bf2fab298e64fd6cde972b6aa8a25dacfdb76d53cbadb21e958db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d04f8e878da169744bde5c547bfe4","97fc3f1d8349be3a020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '0e0f65f3-3692-49be-86d8-5f25128eaa41_M9CH3_M9CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11993', - 'x-ms-correlation-request-id', - 'c701efa1-5fc2-415e-9398-2b8d76fcf188', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055040Z:c701efa1-5fc2-415e-9398-2b8d76fcf188', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:50:39 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c170326fc56794d94e0afe9afcba2a1978be50591a5456727754ebf805e8bbcad8be91948741b9a3ceaa13f1550c72d41d8dbd9dbdddedddbdedd79b373ffd1fd9d47bb0fc6bb7bf77e8a9aad57b3db346bf2fab298e64fd6cde972b6aa8a25dacfdb76d53cbadb21e958db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d04f8e878da169744bde5c547bfe4","97fc3f1d8349be3a020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - 'ef5ecfe7-f14e-4e81-a2de-f8ede44a829f_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11992', - 'x-ms-correlation-request-id', - '9b76f4a8-dcc4-4a51-92cc-32eb906e0ee0', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055044Z:9b76f4a8-dcc4-4a51-92cc-32eb906e0ee0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:50:43 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c170326fc56794d94e0afe9afcba2a1978be50591a5456727754ebf805e8bbcad8be91948741b9a3ceaa13f1550c72d41d8dbd9dbdddedddbdedd79b373ffd1fd9d47bb0fc6bb7bf77e8a9aad57b3db346bf2fab298e64fd6cde972b6aa8a25dacfdb76d53cbadb21e958db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d04f8e878da169744bde5c547bfe4","97fc3f1d8349be3a020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '6b89acc2-3f9b-4a7a-a70f-901dc81169b4_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11991', - 'x-ms-correlation-request-id', - '12faffeb-2018-4fbd-bdfb-567a86a760a8', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055047Z:12faffeb-2018-4fbd-bdfb-567a86a760a8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:50:47 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c170326fc56794d94e0afe9afcba2a1978be50591a5456727754ebf805e8bbcad8be91948741b9a3ceaa13f1550c72d41d8dbd9dbdddedddbdedd79b373ffd1fd9d47bb0fc6bb7bf77e8a9aad57b3db346bf2fab298e64fd6cde972b6aa8a25dacfdb76d53cbadb21e958db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d04f8e878da169744bde5c547bfe4","97fc3f1d8349be3a020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '32af82f0-2b01-4988-9fa0-22377b734ac8_M11CH3_M11CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11990', - 'x-ms-correlation-request-id', - '2ba3a64d-4fc4-475c-9f9c-0322bf780d60', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055051Z:2ba3a64d-4fc4-475c-9f9c-0322bf780d60', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:50:50 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c170326fc56794d94e0afe9afcba2a1978be50591a5456727754ebf805e8bbcad8be91948741b9a3ceaa13f1550c72d41d8dbd9dbdddedddbdedd79b373ffd1fd9d47bb0fc6bb7bf77e8a9aad57b3db346bf2fab298e64fd6cde972b6aa8a25dacfdb76d53cbadb21e958db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d04f8e878da169744bde5c547bfe4","97fc3f1d8349be3a020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '55aa725e-4b11-4185-96b5-8871cec9d9d5_M4CH3_M4CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11989', - 'x-ms-correlation-request-id', - 'b17ae183-6be2-4a06-ac6c-6f332dfb1c19', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055054Z:b17ae183-6be2-4a06-ac6c-6f332dfb1c19', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:50:54 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c170326fc56794d94e0afe9afcba2a1978be50591a5456727754ebf805e8bbcad8be91948741b9a3ceaa13f1550c72d41d8dbd9dbdddedddbdedd79b373ffd1fd9d47bb0fc6bb7bf77e8a9aad57b3db346bf2fab298e64fd6cde972b6aa8a25dacfdb76d53cbadb21e958db4ed6cdf8aa58ceaaab66bcccdb47fbfbf7ee02120d754d04f8e878da169744bde5c547bfe4","97fc3f1d8349be3a020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '15211147-c9cd-40ca-a761-5956a89a51ee_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11988', - 'x-ms-correlation-request-id', - 'f9004db9-3850-42c8-a206-cd9412e420cb', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055058Z:f9004db9-3850-42c8-a206-cd9412e420cb', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:50:57 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c170326fc56794d94e0afe9afcba2a1978be50591a54567afd7d3699ecf72506c91b775313d03916e439547bd014ceb9ca0ce8e5b82b0b7b3b7bbbdbbb7bdbbf366e7fea3fb3b8f761f8c77f7eefd14355baf66c3cdee3f1c1fec3d40b326af2f8b69fe64dd9c2e67abaa58a2fdbc6d57cda3bb1da28eb5ed64dd8caf8ae5acba6ac6cbbc7db4bf7fef2e20d160d744828f8ea76d71997ff44b7e","c9ff0354517f5838020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '6d6ee1f9-b798-4cba-9163-a2d94effa0b3_M8CH3_M8CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11987', - 'x-ms-correlation-request-id', - '6d76dedd-cf0a-457a-b727-d31cdfe0a1d5', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055100Z:6d76dedd-cf0a-457a-b727-d31cdfe0a1d5', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:50:59 GMT' -]); diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_create_test.json b/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_create_test.json new file mode 100644 index 000000000000..a4b233a76cd0 --- /dev/null +++ b/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_create_test.json @@ -0,0 +1,840 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "90", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "92a83300-a241-4a5b-bbff-6714d2b5f856" + }, + "RequestBody": { + "location": "eastus", + "tags": { + "tag1": "value1" + }, + "sku": { + "name": "Standard", + "tier": "Standard" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:38:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ddff3c10-d4d2-4c94-8705-7d243f97148f", + "x-ms-ratelimit-remaining-subscription-resource-requests": "49", + "x-ms-request-id": "64df2958-6d02-4e16-a644-256ef3c49e35_M6CH3_M6CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073854Z:ddff3c10-d4d2-4c94-8705-7d243f97148f" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:38:52.287Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "2a4af481-cb3f-48f8-8306-3ebf82b5cb10" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:38:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3b8dce84-7347-4375-95d3-a7e3f61b0b72", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "a876fdbb-e826-401d-8ea9-ec0049e01db3_M8CH3_M8CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073855Z:3b8dce84-7347-4375-95d3-a7e3f61b0b72" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:38:52.287Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "74de12df-b546-4351-99a8-37f9176f926f" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:38:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "03ed9b4f-5c2f-4ece-ad96-6506d4d3b168", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "e45d9ae3-1d8a-4d66-b0cc-d74e41735dd4_M8CH3_M8CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073855Z:03ed9b4f-5c2f-4ece-ad96-6506d4d3b168" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:38:52.287Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "f9def726-dc4c-47cb-b45a-b0ff82889aee" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:38:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6db4c178-d945-47cb-af4a-1e7e57ae2b03", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "e19fccfc-cc78-44f1-b181-f80a1d9d94d1_M0CH3_M0CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073859Z:6db4c178-d945-47cb-af4a-1e7e57ae2b03" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:38:52.287Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "03e6446c-6474-4b9a-a891-fe0f3948d4eb" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "260bd5e2-6c93-4a62-a438-16c6a02e9277", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "043b43f2-0dda-43e9-b8d9-daab17505a1f_M3CH3_M3CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073903Z:260bd5e2-6c93-4a62-a438-16c6a02e9277" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:38:52.287Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "879d0d56-2168-49ac-80e3-0de98dbfbdc9" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "55dff4d9-ee77-4018-8c23-45b6ae229f01", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "02c66bcb-0e52-4bbf-bd22-23735bd17750_M11CH3_M11CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073907Z:55dff4d9-ee77-4018-8c23-45b6ae229f01" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:38:52.287Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "d0c03a2c-ac58-4f8b-b6f5-4a098d726486" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "54aabf5f-8271-48ca-98f5-3a833de2e2f3", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "5c5cda89-701d-4b63-8200-970411a42f67_M3CH3_M3CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073910Z:54aabf5f-8271-48ca-98f5-3a833de2e2f3" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:38:52.287Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "e535ccc7-4817-47ff-802b-bd4a6c820ffa" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b5c99bb5-bcdc-49cd-97b6-939a1284e01b", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "69a2dec2-2d3a-4fc6-bfd8-dcdeda6bfa84_M7CH3_M7CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073914Z:b5c99bb5-bcdc-49cd-97b6-939a1284e01b" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:38:52.287Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "93e98fd9-6f63-4716-bc96-b60ad8d0fc33" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "113849c1-bbab-460c-a3b9-22bb27b0b9e3", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "78ff9d79-34ee-4e7b-b36b-6b8998738d14_M1CH3_M1CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073918Z:113849c1-bbab-460c-a3b9-22bb27b0b9e3" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:38:52.287Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "87fc27fc-82da-4a8a-b620-cc354a69349d" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e9170654-25b9-4fe1-9e65-f6c83b374cb9", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "46580af8-0e97-4dd7-bb0d-a48e55b3b07a_M3CH3_M3CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073921Z:e9170654-25b9-4fe1-9e65-f6c83b374cb9" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:38:52.287Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "6629ca7d-b4fe-4814-a814-e7f4c431c8c7" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "406d851a-65ca-4390-b0b5-c80ae0a32b87", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-request-id": "d755a5ba-2168-4cd3-a802-5e0dcdb06793_M5CH3_M5CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073925Z:406d851a-65ca-4390-b0b5-c80ae0a32b87" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:38:52.287Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "d2f8dd46-828e-4403-8e8c-0ec7b201547b" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "76ed28a6-8030-4418-a36f-f5d92f99b1a2", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-request-id": "199ed05c-e5ae-48c3-a3cf-5d10730d0963_M9CH3_M9CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073929Z:76ed28a6-8030-4418-a36f-f5d92f99b1a2" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:38:52.287Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "49698d85-cd24-430f-9bd8-3ab19324b4f8" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "efd311ba-2177-4ee1-a05a-ae12d58e7c62", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "dbd77fd1-e382-4388-ade0-5d0c6d377f12_M12CH3_M12CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073932Z:efd311ba-2177-4ee1-a05a-ae12d58e7c62" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:38:52.287Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "3cd89b17-7d7f-4679-8ff1-a38f35bce009" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "540", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f4ec0f33-3966-4395-a409-cf368b6c840d", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "505ebadc-04de-4080-9901-cfd6c12262b8_M12CH3_M12CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073935Z:f4ec0f33-3966-4395-a409-cf368b6c840d" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Created", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:38:52.287Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "e7371a4a-cf95-4e21-abd4-a2dc176ed12f" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "538", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7cb1135f-228b-42bd-8be5-d38c43757059", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "99b3daf9-d959-4d7e-980b-e1a565be2c9e_M12CH3_M12CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073938Z:7cb1135f-228b-42bd-8be5-d38c43757059" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:39:35.233Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Active" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_delete_test.js b/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_delete_test.js deleted file mode 100644 index c50a459ced4c..000000000000 --- a/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_delete_test.js +++ /dev/null @@ -1,861 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "cf465a79d162e3d4a3dd1bb9861b455a"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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', - '9e4deb1d-59f9-4f91-a0fa-cb1e68400b00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AoC3zK6SqipHvdQBlzqDjkg; expires=Sun, 09-Jan-2022 05:51:36 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrRvKLOjspZmfL669BqD0PyWHBd0BgUeYQqBbOllizVfqEqAekTpfwnSoodyT3JA29MOQ1_KRy35ZOxeOcfRMtHUW8mAc5rXrpJFmHwF-kOOJjrM9Cq5AWW-OdeOgmN2In0UdRurXXuMFgKEUMfvPCrSrbL0GO7xEhHVUIsfwoYgYgAA; 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, 10 Dec 2021 05:51:36 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/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', - '2f2a3fa4-e575-45d7-8873-faa515720a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AlSFCEKeAoNBvq42WbrPoDQ; expires=Sun, 09-Jan-2022 05:51:37 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1hog3AOLC0m6K2VX6ighziAaL-FD71rqGI1zo1sGokqiEbiADVgvWPI9uFdSGZmZskWPp77ZdKXsMlZlzkH2tfKfyCA_dgZ6Ycu5ZcPqkchN1ZBzVUjIL_J3jt0BD5ecRpmZ36g-e1ofzNf2yUvJzBpwnxPVaERwlveVo9j12tkgAA; 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, 10 Dec 2021 05:51:36 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&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=718dbad8-f637-49fa-924f-744c673907c9&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":"access_token"}, [ - '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', - '2f2a3fa4-e575-45d7-8873-faa518720a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AmznUzyecsZHj70Q1JRrbicWPr5BAQAAAOnhRNkOAAAA; expires=Sun, 09-Jan-2022 05:51:37 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, 10 Dec 2021 05:51:37 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'x-ms-request-id', - 'a7e9dc47-3c3a-4b04-91a2-3d8dcf61bbde_M0CH3_M0CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-deletes', - '14997', - 'x-ms-correlation-request-id', - '0b269583-a0a7-42b5-a071-20d9004d0ab0', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055139Z:0b269583-a0a7-42b5-a071-20d9004d0ab0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:38 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '227f7d78-c0f8-4530-bd37-491c2d3737f0_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11978', - 'x-ms-correlation-request-id', - '50d4cc19-8cad-49d8-961b-15e7d0f58a85', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055139Z:50d4cc19-8cad-49d8-961b-15e7d0f58a85', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:39 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'fe55175d-9d0a-4b70-9f82-7e58a011e5e9_M11CH3_M11CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11977', - 'x-ms-correlation-request-id', - 'cb59600d-0aaf-4242-aaad-d4650b0f68ee', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055142Z:cb59600d-0aaf-4242-aaad-d4650b0f68ee', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:41 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'd26d5f9b-2127-4dd3-8a7e-597967f99de9_M10CH3_M10CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11976', - 'x-ms-correlation-request-id', - 'efbc15ec-813b-45f9-bb49-416d855fed64', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055143Z:efbc15ec-813b-45f9-bb49-416d855fed64', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:42 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'f6fcdfce-3aa2-4562-a737-1d37f50deb4b_M1CH3_M1CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11975', - 'x-ms-correlation-request-id', - 'baacbf96-8e2a-4bb8-a6df-55b0e78d1c8d', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055145Z:baacbf96-8e2a-4bb8-a6df-55b0e78d1c8d', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:44 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '0baca29c-6353-43eb-8e07-a4b9a9b3cbe2_M11CH3_M11CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11974', - 'x-ms-correlation-request-id', - '740ccd22-eac1-4ee4-b633-77f56cd08766', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055146Z:740ccd22-eac1-4ee4-b633-77f56cd08766', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:45 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'cdc7ea1c-ea53-4aed-913e-0bdf89c56a8f_M11CH3_M11CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11973', - 'x-ms-correlation-request-id', - '1b22afc2-551a-4891-bbd3-236b181b3f1e', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055147Z:1b22afc2-551a-4891-bbd3-236b181b3f1e', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:46 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'cfb85e19-2268-4045-8ee0-7d5942df897e_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11972', - 'x-ms-correlation-request-id', - '4c8fc966-4924-4ae8-aa7b-2abe941c759a', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055149Z:4c8fc966-4924-4ae8-aa7b-2abe941c759a', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:48 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '442c9a26-8887-4407-80f0-2783b80cab06_M7CH3_M7CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11971', - 'x-ms-correlation-request-id', - '7eb21cf9-3f8b-4db0-becc-3f8e7c21d8b3', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055150Z:7eb21cf9-3f8b-4db0-becc-3f8e7c21d8b3', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:49 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '67d1bd66-d636-4431-8bb0-d09acfe264e7_M0CH3_M0CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11970', - 'x-ms-correlation-request-id', - '5564a3a8-eb62-4e14-a2b0-36e982ca2c3a', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055152Z:5564a3a8-eb62-4e14-a2b0-36e982ca2c3a', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:51 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '9515141c-972e-4a34-a6c1-3004f96f2770_M0CH3_M0CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11969', - 'x-ms-correlation-request-id', - '1d002d57-c014-426a-8c38-02f1b2cb26f9', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055155Z:1d002d57-c014-426a-8c38-02f1b2cb26f9', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:54 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '073bfb95-038f-4004-aef8-6fe8d0ad4f42_M4CH3_M4CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11968', - 'x-ms-correlation-request-id', - '0eeb22a9-1527-4dee-9c66-5246d599a80f', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055156Z:0eeb22a9-1527-4dee-9c66-5246d599a80f', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:55 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'd32e2bbf-fe65-40ff-a620-4d3bc3c4d76f_M10CH3_M10CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11967', - 'x-ms-correlation-request-id', - '9dd6d085-5406-47a6-b8e3-57e71f6cef42', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055157Z:9dd6d085-5406-47a6-b8e3-57e71f6cef42', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:56 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '0e097d55-422c-4815-981f-80aa535ecfd1_M10CH3_M10CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11966', - 'x-ms-correlation-request-id', - '067556b2-c969-4681-944d-d553255a4862', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055158Z:067556b2-c969-4681-944d-d553255a4862', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:57 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - 'bf657f13-8dac-4f68-b31f-246b9ecccda9_M10CH3_M10CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11965', - 'x-ms-correlation-request-id', - 'c55b99d8-99e0-486e-95a6-ff18f6aa42fa', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055159Z:c55b99d8-99e0-486e-95a6-ff18f6aa42fa', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:58 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '744976ad-aeee-48b9-9acc-e87cac5f749d_M7CH3_M7CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11964', - 'x-ms-correlation-request-id', - '2e936a6b-613a-4e35-8ad0-cc4941e27ee7', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055201Z:2e936a6b-613a-4e35-8ad0-cc4941e27ee7', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:52:01 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(202, {"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx","name":"mynamespacexxx","type":"Microsoft.Relay/Namespaces","location":"East US","tags":{"tag1":"value1","tag2":"value2","tag3":"value3"},"properties":{"provisioningState":"Succeeded","metricId":"azure_subscription_id:mynamespacexxx","createdAt":"2021-12-10T05:50:17.123Z","updatedAt":"2021-12-10T05:51:39.293Z","serviceBusEndpoint":"https://mynamespacexxx.servicebus.windows.net:443/","status":"Removing"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '602', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01', - 'Retry-After', - '0', - 'x-ms-request-id', - '749c486e-dce1-423b-b114-e804a02a4a45_M1CH3_M1CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11963', - 'x-ms-correlation-request-id', - '6f2817da-39ee-4ec5-9029-86bef43b39d5', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055202Z:6f2817da-39ee-4ec5-9029-86bef43b39d5', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:52:02 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx') - .query(true) - .reply(200, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Expires', - '-1', - 'x-ms-request-id', - '20724fcb-f573-4e56-80b1-6b95a74d2986_M0CH3_M0CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11962', - 'x-ms-correlation-request-id', - '4a74d3bd-41f7-4c27-8acf-a8474b1f57ed', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055204Z:4a74d3bd-41f7-4c27-8acf-a8474b1f57ed', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:52:04 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bdefff","92ff0742ea40440c000000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - 'efb68426-482a-417b-9739-830c5a8d49c7_M0CH3_M0CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11961', - 'x-ms-correlation-request-id', - 'c275d1d5-18d3-4e02-811b-d130ee764292', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055204Z:c275d1d5-18d3-4e02-811b-d130ee764292', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:52:04 GMT' -]); diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_delete_test.json b/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_delete_test.json new file mode 100644 index 000000000000..cb07d99628f1 --- /dev/null +++ b/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_delete_test.json @@ -0,0 +1,224 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "04943ed1-a49a-4d84-8d8f-726056dc28c2" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 08 Jul 2022 07:40:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "153c6be0-ef44-4fd0-9027-1dffa4462d3f", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "6f6fb55c-246e-4a41-88ac-b3b8d82ce571_M12CH3_M12CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T074004Z:153c6be0-ef44-4fd0-9027-1dffa4462d3f" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "8769e131-8c68-4b44-b183-2123646479e2" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "572", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:40:05 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01", + "Pragma": "no-cache", + "Retry-After": "46", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1fc03ac1-7841-4355-b264-5fe41521024a", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-request-id": "b27c8a66-ba60-46b3-8aa2-d146508f5631_M12CH3_M12CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T074005Z:1fc03ac1-7841-4355-b264-5fe41521024a" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:40:04.327Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Removing" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "e1d0f9d4-4be3-4bc3-bff0-25ef95201626" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "572", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:40:05 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01", + "Pragma": "no-cache", + "Retry-After": "45", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c72027f5-275b-42ca-9623-6233e1e173c2", + "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-request-id": "4811a789-1eea-4f0d-aada-0a073668e556_M7CH3_M7CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T074005Z:c72027f5-275b-42ca-9623-6233e1e173c2" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:40:04.327Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Removing" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/operationresults/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "6671731c-2555-4999-8107-994c4329d844" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 08 Jul 2022 07:40:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/SN1", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/SN1", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0dfe6f46-b9a8-4597-bd5e-68a87620fd95", + "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-request-id": "4ac5fe10-939d-4a75-a225-f39e03ce0fc5_M3SN1_M3SN1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T074052Z:0dfe6f46-b9a8-4597-bd5e-68a87620fd95" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "a8182ee7-7213-45a4-93da-c1febc561027" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:40:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/SN1", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/SN1", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2412e2bf-6600-4040-bd14-ea897e28b79f", + "x-ms-ratelimit-remaining-subscription-reads": "11967", + "x-ms-request-id": "a0bf56f5-055c-4470-9931-afbb3457386e_M3SN1_M3SN1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T074052Z:2412e2bf-6600-4040-bd14-ea897e28b79f" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": {} +} diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_get_test.js b/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_get_test.js deleted file mode 100644 index 66ccadd9e39a..000000000000 --- a/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_get_test.js +++ /dev/null @@ -1,151 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "d86a34d0632b273cc64395b2fefe23c0"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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', - '1306231f-1899-4d48-aeca-9001f3140b00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=Ai7LI5N1jBlDksL7eIJr2Vg; expires=Sun, 09-Jan-2022 05:51:00 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4hPLr-fR-XI0QlrCslr18ydZeZIFsFAi1yog959w21FK_u6rzEdkSVobi6HUuUMu7vOQUqFJ6FP5nyeIyqd6M7ULTLf5RKdrDvmMb2cqusNnP3g8PVH_Qa3SHiUvNla8PTk0JCdEArfiu26Y7HPjeyXgzoajMaTibRr4W-KY4ksgAA; 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, 10 Dec 2021 05:51:00 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/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', - '20616d55-2ea3-43e7-9507-b18da7f70a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=Ajca620D3iNKlJ2nqusVUUo; expires=Sun, 09-Jan-2022 05:51:00 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrmx5liEdWwzzpBw0oUVnplxhMClUbX3IDP9WnqofzsR76AlpNq-wtgFqGOOsCuOLeFhv3QeB3fEP4oWFQ_lGInqqj9cG6gSMnKbwANOMT5EwoH6GPg80qa-G-TW0S7B6xtFwEQ49nA8p5Hr_qOJoCdGcVjwPowKD-4oG3m8b5XgQgAA; 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, 10 Dec 2021 05:51:00 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&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=9278fab5-e5af-4eff-8c0c-1e37f119f022&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":"access_token"}, [ - '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', - '25e1b200-ca8c-4386-a214-6e125bba0a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Aqo2siGpSflHkdiZW-uAsd8WPr5BAQAAAMThRNkOAAAA; expires=Sun, 09-Jan-2022 05: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, 10 Dec 2021 05:51:01 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c170326fc56794d94e0afe9afcba2a1978be50591a54567afd7d3699ecf72506c91b775313d03916e439547bd014ceb9ca0ce8e5b82b0b7b3b7bbbdbbb7bdbbf366e7fea3fb3b8f761f8c77f7eefd14355baf66c3cdee3f1c1fec3d40b326af2f8b69fe64dd9c2e67abaa58a2fdbc6d57cda3bb1da28eb5ed64dd8caf8ae5acba6ac6cbbc7db4bf7fef2e20d160d744828f8ea76d71997ff44b7e","c9ff0354517f5838020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '50b3044d-8388-4aec-8d36-8b9b948cb1cb_M11CH3_M11CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11986', - 'x-ms-correlation-request-id', - '03474520-0233-43cc-8566-fa27d9d86cd0', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055102Z:03474520-0233-43cc-8566-fa27d9d86cd0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:02 GMT' -]); diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_get_test.json b/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_get_test.json new file mode 100644 index 000000000000..e0ae26892c8a --- /dev/null +++ b/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_get_test.json @@ -0,0 +1,59 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "e8dfcd3e-a080-42ca-bfb8-9c6419dd3a76" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "538", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "80b06453-c7c0-4fc5-bcaa-94ab9b3d5f47", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "88cb216a-5c5f-4fd3-88c7-3f9cb01339c4_M12CH3_M12CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073939Z:80b06453-c7c0-4fc5-bcaa-94ab9b3d5f47" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:39:35.233Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Active" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_list_test.js b/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_list_test.js deleted file mode 100644 index c5472353ef27..000000000000 --- a/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_list_test.js +++ /dev/null @@ -1,153 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "722f58834472f1ead1a36525fe6227c9"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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', - '25e1b200-ca8c-4386-a214-6e1268ba0a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=ApkJyeu6V65GmY8LWStj3qA; expires=Sun, 09-Jan-2022 05:51:02 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrwSaDBKOdKMBJQQs1OTQjUE23Rx_3oQH_79qOyii6ABKoJWy6FC-G-zJ0lGk8DRG7pH9xUQAkLbWpazempZB_RRn-uGgvxTqGJ7fH2XG4tV5EGgcyRS946RLdQlzYx3lZ9x4BzCimiQNuXEomN-eJ50el4WzryEZf3Rj_iLlZdI0gAA; 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, 10 Dec 2021 05:51:02 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/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', - '41c02d2e-ea5c-4c6b-b8a9-d8681aed0a00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AsDfyQ1cfAZJt9ULfGAnWIU; expires=Sun, 09-Jan-2022 05:51:03 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrePsgdlJY688Fb0uCAAwH1BuATGzwZrA1krhr4O4Ij0G_bRYsuLsFX7rUdAtkl9KHWuluDAFhWPa7TYZxXOBBoA1QXmHv-30vUhgV1FpiWX9vT7cbPSBb4dEcJpyHTrId0S1ZZdWE7H-thLHzEu6MrRIa9xF4Wmt2tfWe-2yUGbogAA; 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, 10 Dec 2021 05:51:02 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&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=6fdba6a8-5833-4078-a5e0-e076882d3513&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":"access_token"}, [ - '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', - '41c02d2e-ea5c-4c6b-b8a9-d8681eed0a00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AmYEORn4x91PmH5XNg0YZ2oWPr5BAQAAAMbhRNkOAAAA; expires=Sun, 09-Jan-2022 05:51:03 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, 10 Dec 2021 05:51:03 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.Relay/namespaces') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffc51f376fdd1a35ffcd1325bd0df1fbd6eb3e52cab671f8d3e6a8bbcf63ff925a38f8a197d70b7594f9a695dacdaa25a36771fee9d3fbc3f3b38dfbe37fdf4c1f6feeedefef6c3dde983ed83e9f9ce83e96c72beb7bf7bb7ce9b6a5d4ff3cfeb6abd6aee2eae7fba69f3a6bdbbaaabcb6296d7cddd2f8a695d35d5793b7e9597d9f55de0d3acb2698ed6f68f77efde1166f89310e97dde5eaff07917d40bd3aaa1366535cd8038b53bcd9a36fdea357dd866170d88403f77e90b26ce2e064cf8adf29a28c15fd35f9745432f17cb0b224b8bce5eafa7d33c9fe5a0d8226feb627a0622dd862a8f7a0398d639419d1db704616f676f777b776f7b77e7cdcefd47f7771eed3e18efeeddfb296ab65ecd869bdd7f383ed87b80664d5e5f16d3fcc9ba395dce5655b144fb79dbae9a47773b441d6bdbc9ba195f15cb5975d58c9779fb687fffde5d40a2c1ae89041f1d4fdbe232ffe897fc92efff","92ff078f7eb1a944020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-inline-count', - '', - 'x-ms-request-id', - '5a935082-27b0-47a5-b3f7-bf526f825d63_M6CH3_M6CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11985', - 'x-ms-correlation-request-id', - '6f97db0f-cc12-4f78-8cd5-3c30b1d8aec8', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055104Z:6f97db0f-cc12-4f78-8cd5-3c30b1d8aec8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:04 GMT' -]); diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_list_test.json b/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_list_test.json new file mode 100644 index 000000000000..26745e2d3481 --- /dev/null +++ b/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_list_test.json @@ -0,0 +1,64 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Relay/namespaces?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "0de0efa4-bf16-48b2-bf0c-217e378b46aa" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "550", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5e7f84b3-99d0-4688-812c-3772daddc1b6", + "x-ms-inline-count": "", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "e8e7fad2-4bca-42d2-9fa7-1c6402dd2261_M12CH3_M12CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073940Z:5e7f84b3-99d0-4688-812c-3772daddc1b6" + }, + "ResponseBody": { + "value": [ + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:39:35.233Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Active" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_update_test.js b/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_update_test.js deleted file mode 100644 index 04674d37afd0..000000000000 --- a/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_update_test.js +++ /dev/null @@ -1,151 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "b0baa90dfbc30c2a1d4522fe8e07f150"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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', - 'db2a9199-e54d-47bc-9a5f-7621d20a0b00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=Al4B0Xb9SaRLjfdxIU4J1UM; expires=Sun, 09-Jan-2022 05:51:05 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr3boq18gQrD_oZ1gFh6_kVTejwXFSrnX5Vf-n983S_Huy7kCve0GLxlVqBgzD4Vu_fJUt2IGDojX5dEOFyQV5iNE0kgmRC6DX7kugcydyi-p97pcOUbrOy65O0zu4bNDNKvj5EbSdNOo1noxpJQLdXDDz7DRh6LHhIypzM0OkA2EgAA; 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, 10 Dec 2021 05:51:05 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/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', - '25e1b200-ca8c-4386-a214-6e127dba0a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AvqDM8oQL4FJqDDQAz5z6uI; expires=Sun, 09-Jan-2022 05:51:05 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr7gdwyfkXRsYjH2GuuWtlNfqs1tPf3GY-A0rqziwc1s7auBby0BS_S0FU7uMPivxwqXKu6phPxN8jf6oenkW93By3kxDkf9HTDVA-JtgfS5DpEks6_yxjXGQtwC9C53kRH6UCwxAaImIXTbIAu_4FfsNQ8-RRpMd9qcimfhqubCwgAA; 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, 10 Dec 2021 05:51:05 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&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=5106d09f-f977-4749-8d93-fb720e6e7693&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":"access_token"}, [ - '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', - '056f2747-a290-418e-88dc-c95888480a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AichwAVAekJBgDmynjsPfdYWPr5BAQAAAMnhRNkOAAAA; expires=Sun, 09-Jan-2022 05:51:05 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, 10 Dec 2021 05:51:05 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .patch('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx', {"tags":{"tag1":"value1","tag2":"value2","tag3":"value3"}}) - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cddbf5478f7ef147cb6c917ff4e8a3d76db69c65f5eca3d1476d91d7fe27bf64f45131a30fee36eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7aff232bbbe0b7c9a5536cdd1dafef1eedd3bc20c7f1222bdcfdbeb153eef827a615a35d4a6aca61910a776a759d3a65fbda60fdbeca20111e8e72e7d719995eb7c573edf337fefc9dff7ccdff74010c27f95d744297e9dfeba2c1a025e2c2f886c2d90f96a35a3fe9617f4f6226feb627a061ade86688f7ae39bd639019d1db704616f676f777b776f7b77e7cdcefd47f7771eed3e18efeeddfb296ab64697f166bb8f760ec60f3e7d80664d5e5f16d3fcc9ba395dce5655b144fb79dbae9a47773b341f6bdbc9ba195f15cb5975d58c9779fb687fffde5d40a2b1ae89021f1d4fdbe25286fb4b","7ec9ff03302d84425b020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - 'e29970de-bf07-4f46-abc3-292588b100c9_M4CH3_M4CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes', - '1198', - 'x-ms-correlation-request-id', - 'ad2b1a1f-80cd-4d47-b008-f36d450f75e0', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055111Z:ad2b1a1f-80cd-4d47-b008-f36d450f75e0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:11 GMT' -]); diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_update_test.json b/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_update_test.json new file mode 100644 index 000000000000..a1b563c9ae2b --- /dev/null +++ b/sdk/relay/arm-relay/recordings/node/relay_test/recording_namespaces_update_test.json @@ -0,0 +1,69 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx?api-version=2017-04-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "58", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "5d710df1-45de-48fc-b92d-740d8967b86c" + }, + "RequestBody": { + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "573", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7fe50a78-f893-4b0e-896b-a74655b20c90", + "x-ms-ratelimit-remaining-subscription-resource-requests": "48", + "x-ms-request-id": "6fba57b9-0ac4-443b-93bc-88a7afd76c7e_M12CH3_M12CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073944Z:7fe50a78-f893-4b0e-896b-a74655b20c90" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx", + "name": "mynamespacexxx", + "type": "Microsoft.Relay/Namespaces", + "location": "East US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "provisioningState": "Updating", + "metricId": "azure_subscription_id:mynamespacexxx", + "createdAt": "2022-07-08T07:38:52.287Z", + "updatedAt": "2022-07-08T07:39:42.407Z", + "serviceBusEndpoint": "https://mynamespacexxx.servicebus.windows.net:443/", + "status": "Activating" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_create_test.js b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_create_test.js deleted file mode 100644 index 57fc2d8ca46c..000000000000 --- a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_create_test.js +++ /dev/null @@ -1,151 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "bbc20c238fef37bfe122586fa03f1f54"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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', - '84e10da0-7734-4177-95ed-c3438bdb0b00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=Ar5xokX4JIBPnhrKB_U6k1s; expires=Sun, 09-Jan-2022 05:51:11 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrfHBNpfXca5OC0QB7d3Es-B6l2pPXLGBFNPwEr9DOpkIEbNZK48mOoQXXSuYiHRUbOMcZ2v2Fl86RUm9yOD6zrCnanmpCJyFSbm6H5sRONl_DOkr4_Ktu8e6XKKxFWsQTbuGyokXEiZep0n_pGT_ad3nMxS7eYsugDV1vrfjMckcgAA; 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, 10 Dec 2021 05:51:11 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/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', - '1306231f-1899-4d48-aeca-900152150b00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=Aoz2td0p5IhJkeoqLZ-W4Ws; expires=Sun, 09-Jan-2022 05:51:12 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrROCZK94tiJMN7YuglQk3eLw2K9F3c6hSl8BdZRZPLYJ6LZNK8lH0eHPppls_4t-z6KgZAqjpRP24JXpNLJOmC8D_Tbt10Ta4nLT4Hd1TdwwT3pF7ifiYxdt5tLfIhqL4j3E36ExB3QgLg9ZLUyGYEOklni2vqXqJsWrMI6JKd3sgAA; 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, 10 Dec 2021 05:51:11 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&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=5e5517c4-4829-42c6-bf2d-a4b1a80e051f&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":"access_token"}, [ - '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', - '25e1b200-ca8c-4386-a214-6e12b0ba0a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AuYwPDfoXVVBrJhXkzW5E2cWPr5BAQAAANDhRNkOAAAA; expires=Sun, 09-Jan-2022 05:51:12 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, 10 Dec 2021 05:51:12 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx', {"properties":{"relayType":"NetTcp","requiresClientAuthorization":true,"requiresTransportSecurity":true}}) - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e5fe565767d77992df266954d73b4b67fbc7bf7eeeed5f49c9be08b1abfd0871f8d3e421bc22ef8acbd5ee1b32eec17d494c13577bf6b8051ebb29a661813bd719a356dfad56bfa90305ce5755be4cd478f7ef147d33acfda7c76dc529bbd9dbdddedddbdeddd9d373bf71fdddf7db47b7f7c6fe7e1feceee839fa217d7abd96d9b9605516399d727d57a49cd77461fd5f92f5a1744b493b2c897edf1ba9d5775f103c5aeadd7399a10da6f64802ff2f6cd744590cc7b6fea6cd9acaaba7d9d4fd775d15e9bb78ae629a8594c3f7a749e954dfe4b7e","c9ff03d7c84178d6010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '17470838-72a0-4b1a-928b-879df359ca50_M3CH3_M3CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes', - '1197', - 'x-ms-correlation-request-id', - '6e01b72a-06e0-4143-9b39-5978d438e2e8', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055115Z:6e01b72a-06e0-4143-9b39-5978d438e2e8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:15 GMT' -]); diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_create_test.json b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_create_test.json new file mode 100644 index 000000000000..4793afaa107d --- /dev/null +++ b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_create_test.json @@ -0,0 +1,57 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "105", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "1783c753-e6b3-4c6a-a9fb-09727ee13dd3" + }, + "RequestBody": { + "properties": { + "relayType": "NetTcp", + "requiresClientAuthorization": true, + "requiresTransportSecurity": true + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "454", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "05440db0-3309-4f7a-83c3-7e67b6763e6e", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "05440db0-3309-4f7a-83c3-7e67b6763e6e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073949Z:05440db0-3309-4f7a-83c3-7e67b6763e6e" + }, + "ResponseBody": { + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx", + "name": "myrelayxxx", + "type": "Microsoft.Relay/Namespaces/WcfRelays", + "location": "eastus", + "properties": { + "createdAt": "2022-07-08T07:39:48.6275824Z", + "updatedAt": "2022-07-08T07:39:48.6275824Z", + "listenerCount": 0, + "requiresClientAuthorization": true, + "relayType": "NetTcp", + "requiresTransportSecurity": true, + "isDynamic": false + } + } + } + ], + "Variables": {} +} diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_createorupdateauthorizationrule_test.js b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_createorupdateauthorizationrule_test.js deleted file mode 100644 index 50856a853a85..000000000000 --- a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_createorupdateauthorizationrule_test.js +++ /dev/null @@ -1,151 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "d30fb3cdd2890be1ffa60969d1b437cd"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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', - '84e10da0-7734-4177-95ed-c343b7db0b00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=Antb76_2S4tPjByaH8_aWQU; expires=Sun, 09-Jan-2022 05:51:16 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrThyyjqZVOxfievQwU1xMSa05aGgqFEdmiADM75ZNo8EufPL_tE8aFu54Ao1qh171CRfsZIdUcXCUHyRk_NepTuy-Olwwhw8wkFOReQVj8jlojOg9w33cqAkD2wiplw2TBLjrUKxUiFdbKWoPsyblH5KUbVGD6OAg2lOgSpHjtiUgAA; 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, 10 Dec 2021 05:51:15 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/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', - '1306231f-1899-4d48-aeca-90016b150b00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=ApP5ArcU6i9LmLpn54B1vu4; expires=Sun, 09-Jan-2022 05:51:16 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLVV9q4kLgnjUbZe0AZlQ58P3r37TZfeK2vTzwqIqmpiGKg5YdXC4rYwTI9miIGBpUMp1auElHIlKhjv-co1ypQnPr18kCtFMeENowN26k84S_4cAHw-MGGYAYtvmsFG233wYJ3zEZTmRLY6Uy4RtwSRcwzGPspvTh4cGe3KM3AggAA; 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, 10 Dec 2021 05:51:16 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&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=8d18d8d7-8d6a-4059-b3e8-2c31b9faef9e&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":"access_token"}, [ - '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', - '41c02d2e-ea5c-4c6b-b8a9-d8688eed0a00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AiCC-4iaKv5En10dnA_A4KAWPr5BAQAAANPhRNkOAAAA; expires=Sun, 09-Jan-2022 05:51:16 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, 10 Dec 2021 05:51:16 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx/authorizationRules/myauthorizationxxxx', {"properties":{"rights":["Listen","Send"]}}) - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e5fe565767d77992df266954d73b4b67fbc7bf7eeeed5f49c9be08b1abfe0c36cddceabbaf84106a45ead4b7e2df8905abdfb68f41140d120e25fb6d72b7cd9c5e505bdc3dd3777bf6b3b3ff6dfe71e0940594df96f02729a356dfad56bfa9006b9caebb6a0168f7ef1477571316fe9b7ef7df4bc20222ca9c1eb7c39fbe8fbbfe4","97fc3fa63c59c461010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '3ed931ae-639e-4edc-b417-4edc7b98b9fa_M4CH3_M4CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes', - '1196', - 'x-ms-correlation-request-id', - 'ecd59b87-f9c9-4246-9d37-ddef0971bf76', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055117Z:ecd59b87-f9c9-4246-9d37-ddef0971bf76', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:16 GMT' -]); diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_createorupdateauthorizationrule_test.json b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_createorupdateauthorizationrule_test.json new file mode 100644 index 000000000000..928730b19f9c --- /dev/null +++ b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_createorupdateauthorizationrule_test.json @@ -0,0 +1,54 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx/authorizationRules/myauthorizationxxxx?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "43", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "3e313c5b-d442-4642-bfb9-8d4cf4fe203b" + }, + "RequestBody": { + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "317", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7c5b73f5-4a77-44d4-8329-3830ebc783fd", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "7c5b73f5-4a77-44d4-8329-3830ebc783fd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073951Z:7c5b73f5-4a77-44d4-8329-3830ebc783fd" + }, + "ResponseBody": { + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx/authorizationRules/myauthorizationxxxx", + "name": "myauthorizationxxxx", + "type": "Microsoft.Relay/Namespaces/WcfRelays/AuthorizationRules", + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + } + } + ], + "Variables": {} +} diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_delete_test.js b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_delete_test.js deleted file mode 100644 index 855617fca8e5..000000000000 --- a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_delete_test.js +++ /dev/null @@ -1,187 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "3a2e285bd2e679da649b7ce5e968bc6b"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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', - '1306231f-1899-4d48-aeca-9001fa150b00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=Av-w9DjNiOJFroretriUE_E; expires=Sun, 09-Jan-2022 05:51:31 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIdVwOSY9XJVEROUChLsM0qVErrCNm0xw28jwiesl4dtMMeAnPZbHYB1-j2Y0ta4yeZzFBCz55XTqQl66IrVMm9u17eXjWXfVhvvlLnbe13yAXLlYMFqUzlHLsRhAPsWNg8CNPWkhE-DqvNfrcENEs4J1p250QlbiHN2v9Et3VLsgAA; 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, 10 Dec 2021 05:51:31 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/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', - '1306231f-1899-4d48-aeca-9001ff150b00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=Aozq29SXNtRAoGTCYzxXYV8; expires=Sun, 09-Jan-2022 05:51:31 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1IeB-1042Sl3U9Z_56sHkPpiKxC_6X2v99MvbPYP8v2ZUMX1OeljGDA7hA-_Zu2wuwMwFXKCS6-Y_1kOXrYxoegZbsShPf-8rMN3TlgcwMqR8pOAKOyA1_9ma07oGka2HnyZp7jdJjSN1KIlUrFnQlwS7SsROhNtCoTEC_93IDggAA; 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, 10 Dec 2021 05:51:31 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&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=d1509050-376a-46e1-b252-d82cb029afda&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":"access_token"}, [ - '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', - '84e10da0-7734-4177-95ed-c34351dc0b00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AgWsBCmMjgVLiavwxz-6UU0WPr5BAQAAAOLhRNkOAAAA; expires=Sun, 09-Jan-2022 05:51: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', - 'Fri, 10 Dec 2021 05:51:31 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx') - .query(true) - .reply(200, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Expires', - '-1', - 'x-ms-request-id', - 'cfdf172d-2dc3-45c2-8a07-9e32e4328ae7_M10CH3_M10CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-deletes', - '14998', - 'x-ms-correlation-request-id', - 'c2a800ac-8500-46af-956d-95b64a03e4c4', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055133Z:c2a800ac-8500-46af-956d-95b64a03e4c4', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:33 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bdefff","92ff0742ea40440c000000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-inline-count', - '', - 'x-ms-request-id', - '97ce1698-73a8-4214-bcd4-530600c03312_M4CH3_M4CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11979', - 'x-ms-correlation-request-id', - 'c0f0fa1e-0b46-48f1-8cfb-3cb7371db0d6', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055136Z:c0f0fa1e-0b46-48f1-8cfb-3cb7371db0d6', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:35 GMT' -]); diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_delete_test.json b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_delete_test.json new file mode 100644 index 000000000000..82e11f829ad5 --- /dev/null +++ b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_delete_test.json @@ -0,0 +1,68 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx?api-version=2017-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "b2c7acf8-44bd-4e47-92c6-737e29c8c3e7" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "2", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:40:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c327eee5-5893-450d-8908-978c93e32404", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "c327eee5-5893-450d-8908-978c93e32404", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T074001Z:c327eee5-5893-450d-8908-978c93e32404" + }, + "ResponseBody": "\u0022\u0022" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "2af0e7e0-dbf4-4f82-a534-a03fe42e111c" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:40:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5a9d3340-1bb5-4ef2-a280-6fef077440db", + "x-ms-inline-count": "", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-request-id": "5a9d3340-1bb5-4ef2-a280-6fef077440db", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T074002Z:5a9d3340-1bb5-4ef2-a280-6fef077440db" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": {} +} diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_deleteauthorizationrule_test.js b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_deleteauthorizationrule_test.js deleted file mode 100644 index 428792046c61..000000000000 --- a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_deleteauthorizationrule_test.js +++ /dev/null @@ -1,185 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "bc08d660d6f614f6ecf58b1bbc343243"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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', - '25e1b200-ca8c-4386-a214-6e1233bb0a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AmOF4XVwBQZBuXpoIwxYXJI; expires=Sun, 09-Jan-2022 05:51:27 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrppBBhQCqnp_nPtnLRWsviltvU6FBrCJ3H1meeqjAUogrYsqAqBuhN6Nm3cKeJZCqJ38vKYb5oqsFIsthy7OygZK1oS6tI2KpiglkdMsCw0IM-LgquXIjhWPSEgJwVyXpLXSKewUO0e3_JWHIEfzaGBlsHqffZyW-GNhdM2_Hv44gAA; 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, 10 Dec 2021 05:51:27 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/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', - '41c02d2e-ea5c-4c6b-b8a9-d868e2ed0a00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AqM8QtleHTRKqBzFucORLw0; expires=Sun, 09-Jan-2022 05:51:27 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrgb6uJ-MXuafTgDEPmDlzKzwpYlexUBeVtGSDZyGlEGDTH0N8MVi3luiD648VG-f4kjB5biFSlNhzCZbERtuQWROnwGe0nzD0Oxh1ngYxGhph6LsDZWDILYWVUHIq4OW84nYx1UF5_TgS2tAjwnugJWvJqbdfjRFVn2krRteZZnIgAA; 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, 10 Dec 2021 05:51:27 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&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=1406acc6-42ab-45d7-8c2a-4c79d7c79f69&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":"access_token"}, [ - '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', - '84e10da0-7734-4177-95ed-c34328dc0b00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AlPZ4c1yW6hKvwd2HbQPaYgWPr5BAQAAAN_hRNkOAAAA; expires=Sun, 09-Jan-2022 05:51:28 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, 10 Dec 2021 05:51:27 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx/authorizationRules/myauthorizationxxxx') - .query(true) - .reply(200, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Expires', - '-1', - 'x-ms-request-id', - '774ea885-a7cd-45fd-ae2f-c6bd69ba36ad_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-deletes', - '14999', - 'x-ms-correlation-request-id', - '8f98c214-ac6b-464b-830b-7e4f016adef9', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055129Z:8f98c214-ac6b-464b-830b-7e4f016adef9', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:29 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myauthorizationxxxx/authorizationRules') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef12f","f97f0043bfa6a302000000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - '1cf7e354-c18c-4bfb-a437-19c9ca254108_M10CH3_M10CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11980', - 'x-ms-correlation-request-id', - '83d7d95e-313b-435b-a92f-5e6fca7789b9', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055131Z:83d7d95e-313b-435b-a92f-5e6fca7789b9', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:30 GMT' -]); diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_deleteauthorizationrule_test.json b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_deleteauthorizationrule_test.json new file mode 100644 index 000000000000..736736da7563 --- /dev/null +++ b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_deleteauthorizationrule_test.json @@ -0,0 +1,67 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx/authorizationRules/myauthorizationxxxx?api-version=2017-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "76aa9c84-31ad-442e-ab85-b1d250a8173a" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "2", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b829a7de-03bb-4ac2-86c7-00368c90a2f6", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "b829a7de-03bb-4ac2-86c7-00368c90a2f6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073958Z:b829a7de-03bb-4ac2-86c7-00368c90a2f6" + }, + "ResponseBody": "\u0022\u0022" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx/authorizationRules?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "d9cd6460-f0af-45fe-8fff-4506a7a3aa19" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "98e501d2-c3c0-4795-8197-e1603ee6261a", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-request-id": "98e501d2-c3c0-4795-8197-e1603ee6261a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073959Z:98e501d2-c3c0-4795-8197-e1603ee6261a" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": {} +} diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_get_test.js b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_get_test.js deleted file mode 100644 index 4e286d1adb4d..000000000000 --- a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_get_test.js +++ /dev/null @@ -1,151 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "bd00f4adb8d574ecf94e3c3e62ef3939"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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', - '1306231f-1899-4d48-aeca-900178150b00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AiOfGiqPMMFGp0PE3rodWU0; expires=Sun, 09-Jan-2022 05:51:17 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrvF6EKu4kD-GOKtxWlzSkCeaoGKCWBNQMo4TC085KQgBRWnHh3C-oLxXf2RGO2vcPyVkRjT_cqnTkBPycSLz2wm-8ABfH4MwsO4tXAVbAcPXZoX8s2ywNTXcUdwpQ-Fl3Edk0sTTKqiQRdVxevBCTcqNbyAnIQ8_p2LMUUKfG3NsgAA; 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, 10 Dec 2021 05:51:17 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/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', - '1306231f-1899-4d48-aeca-90017a150b00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AtDWUJM_Z41JpU5HkiJh1TE; expires=Sun, 09-Jan-2022 05:51:17 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrT3MxtT-CtKC-jfbbylT_GcoXtCFglmODg88HGHVrr9yUDfRxZGTWuKFcmGWyorkAxnWLvEaH90xiotI8Hwn2QwLa4KJ0z1M3zGaJH8PWBhaxcoT0HDHV4dYcSO6ZsM5HoK9HvkNZo2CnBos8eVY0fo_n4qqdw--ax2OBE8r4w6ogAA; 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, 10 Dec 2021 05:51:17 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&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=cba8aaf6-a56d-430b-9ef8-1643907e875a&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":"access_token"}, [ - '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', - '1306231f-1899-4d48-aeca-90017d150b00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Atm43Ir7QHBMqEShmPGxqEUWPr5BAQAAANXhRNkOAAAA; expires=Sun, 09-Jan-2022 05:51:18 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, 10 Dec 2021 05:51:17 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e5fe565767d77992df266954d73b4b67fbc7bf7eeeed5f49c9be08b1abfd0871f8d3e421bc22ef8acbd5ee1b32eec17d494c13577bf6b8051ebb29a661813bd719a356dfad56bfa90305ce5755be4cd478f7ef147d33acfda7c76dc529bbd9dbdddedddbdeddd9d373bf71fdddf7db47b7f7c6fe7e1feceee839fa217d7abd986a60fc67bf71e3c7cf0e92e9a9605516399d727d57a49cd77461fd5f92f5a1744b493b2c897edf1ba9d5775f103c5aeadd7399a10da6f64802ff2f6cd744590cc7b6fea6cd9acaaba7d9d4fd775d15e9bb78ae629a8594c3f7a749e954dfe4b","7ec9ff034976ab18d6010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - 'e2fbdb69-6425-485a-8b7d-3d8aecf0e673_M0CH3_M0CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11984', - 'x-ms-correlation-request-id', - 'db7d0275-0fae-4f3e-b3b7-19830d957db1', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055119Z:db7d0275-0fae-4f3e-b3b7-19830d957db1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:18 GMT' -]); diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_get_test.json b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_get_test.json new file mode 100644 index 000000000000..d0ca9a726d1d --- /dev/null +++ b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_get_test.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "d78bf8a1-e698-42e4-854a-d15c9cd32918" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "454", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b9ef151f-1e0b-4778-8848-0240a6444b4e", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "b9ef151f-1e0b-4778-8848-0240a6444b4e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073953Z:b9ef151f-1e0b-4778-8848-0240a6444b4e" + }, + "ResponseBody": { + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx", + "name": "myrelayxxx", + "type": "Microsoft.Relay/Namespaces/WcfRelays", + "location": "eastus", + "properties": { + "createdAt": "2022-07-08T07:39:48.6275824Z", + "updatedAt": "2022-07-08T07:39:51.6438939Z", + "listenerCount": 0, + "requiresClientAuthorization": true, + "relayType": "NetTcp", + "requiresTransportSecurity": true, + "isDynamic": false + } + } + } + ], + "Variables": {} +} diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_getauthorizationrule_test.js b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_getauthorizationrule_test.js deleted file mode 100644 index e709ee201524..000000000000 --- a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_getauthorizationrule_test.js +++ /dev/null @@ -1,151 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "37e40cfff6602414289f21bdfd5adc95"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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', - '41c02d2e-ea5c-4c6b-b8a9-d868aeed0a00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AvExn83G_zNBpGcjRIyiTv0; expires=Sun, 09-Jan-2022 05:51:19 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLINrnECsre_HdgEtA-76Vlg9ZmovJsbi1fcM1opJqs4JvcmYvLpX6CVLkOJt74BzXa97xsswAGFOgdULnTglSngYR1xx3uFjXdeMiCD_vBTJ20OIZKD8gaB3YASaMNuhKLUB27T9ekxaSfQkaK6iyziXAHBzg5E6p25ihvdIVfggAA; 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, 10 Dec 2021 05:51:19 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/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', - '056f2747-a290-418e-88dc-c95804490a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AjBb9CpHsVJDpDQKxtBlVSw; expires=Sun, 09-Jan-2022 05:51:19 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrsxY35_KnK5RnN0_UEjdK4xn_w_Vd7hXRWiPU1H7otm20QE-bU8rsSXUQSkitV72h4SPLYJmzHvfg4R0LIDU28vfYhfG7oooXitGDY40Y4TWXj629BsRN2vlOnzPAIjYf1Au4DFRzYuMkKJ3vVEycFltgX3sw9hLThmfcey-fJEIgAA; 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, 10 Dec 2021 05:51:19 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&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=bd723b0d-91a4-4a7e-bd86-96e6d2b5bdbc&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":"access_token"}, [ - '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', - '20616d55-2ea3-43e7-9507-b18d3ef80a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=ArOLJR9MyxlLm4l47w_o4YUWPr5BAQAAANfhRNkOAAAA; expires=Sun, 09-Jan-2022 05:51:20 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, 10 Dec 2021 05:51:20 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx/authorizationRules/myauthorizationxxxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e5fe565767d77992df266954d73b4b67fbc7bf7eeeed5f49c9be08b1abfe0c36cddceabbaf84106a45ead4b7e2df8905abdfb68f41140d120e25fb6d72b7cd9c5e505bdc3dd3777bf6b3b3ff6dfe71e0940594df96f02729a356dfad56bfa9006b9caebb6a0168f7ef1477571316fe9b7ef7df4bc20222ca9c1eb7c39fbe8fbbfe4","97fc3fa63c59c461010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - 'f19fa546-8de2-423f-addc-9fffb7290af5_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11983', - 'x-ms-correlation-request-id', - '6c7c9595-5cd5-48a7-9ad1-ebc1e4381b60', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055122Z:6c7c9595-5cd5-48a7-9ad1-ebc1e4381b60', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:21 GMT' -]); diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_getauthorizationrule_test.json b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_getauthorizationrule_test.json new file mode 100644 index 000000000000..be6e4ae90c38 --- /dev/null +++ b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_getauthorizationrule_test.json @@ -0,0 +1,46 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx/authorizationRules/myauthorizationxxxx?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "d13b3dbd-b5aa-4cdb-a020-032301e25389" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "337", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c8976c00-c14d-492d-bcc2-4077c1f2978e", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "c8976c00-c14d-492d-bcc2-4077c1f2978e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073954Z:c8976c00-c14d-492d-bcc2-4077c1f2978e" + }, + "ResponseBody": { + "id": "/subscriptions/azure_subscription_id/resourcegroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfrelays/myrelayxxx/authorizationrules/myauthorizationxxxx", + "name": "myauthorizationxxxx", + "type": "Microsoft.Relay/Namespaces/WcfRelays/AuthorizationRules", + "location": "eastus", + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + } + } + ], + "Variables": {} +} diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_list_test.js b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_list_test.js deleted file mode 100644 index 870ea4102b9f..000000000000 --- a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_list_test.js +++ /dev/null @@ -1,153 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "54dbb88b1f7bddfa451ff863a9b568c6"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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', - '84e10da0-7734-4177-95ed-c343f9db0b00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=Av7gCw64hzRFpEDPVwB8WqE; expires=Sun, 09-Jan-2022 05:51:22 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrFvCvXjpU3HBfTJ7P1riQ5REuGjqrV4acAJy9N1mb-yS5y94BUG9Z966o0k6HS4SpnmFVIuqlUWJfl_QJqRJ8OPz6jiOswN8155T_LyvllyX9qisN_A3OyofkFcB9Z5Pjvlqj49x2qnifZ5U4ROE64r57dBwXAjzDt5gPrv779XogAA; 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, 10 Dec 2021 05:51:21 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/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', - '84e10da0-7734-4177-95ed-c343fadb0b00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AkcITIwmr1xJgZjZxm1fdVI; expires=Sun, 09-Jan-2022 05:51:22 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrlVjgirAClCmQhGj-xp95NTKpfSo2vVTMxaHD73Guu_UlpHx1t2l5UkCGVLFqtqo3I_Jq7lOMDWuxIm1OswgOhFpJcZJY-S7mLQLMtD7-CE-rJL3o51MnCvuq7os_jS0-PvjXmYi4Zoe6oqN6HLHG_yqnHvG3kjizEwEaLTFwqrcgAA; 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, 10 Dec 2021 05:51:22 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&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=82f8dc6c-5434-4407-a044-436e25d4c1e8&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":"access_token"}, [ - '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', - '25e1b200-ca8c-4386-a214-6e120dbb0a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=ArzYnrgOfU9LhwYOjT3iTvkWPr5BAQAAANrhRNkOAAAA; expires=Sun, 09-Jan-2022 05:51:22 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, 10 Dec 2021 05:51:22 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffc5131fbe8d147779bf5a499d6c5aa2daa6573f7e1def9c3fbb383f3ed7bd34f1f6cefefeeed6f3fdc9d3ed83e989eef3c98ce26e77bfbbb77ebbca9d6f534ffbcaed6abe6eee2faa79b366fdabbabbaba2c6679dddcfda298d655539db7e35779995ddf5d668bbc5965d31caded1fefdebdbb7b353de726f8a2c62ff4e147a38fd086b00b3e6baf57f8ac0bfb05356570cdddef1a60d4baaca619c6446f9c664d9b7ef59a3e240c5779dd1679f3d1a35ffcd1b4ceb3369f1db7d4666f676f777b776f7b77e7cdcefd47f7771fedde1fdfdb79b8bfb3fbe0a7e8c5f56ab6a1e983f1debd070f1f7cba8ba66541d458e6f549b55e52f39dd14775fe8bd60511eda42cf2657bbc6ee7555dfc40b16beb758e2684f61b19e08bbc7d335d1124f3de9b3a5b36abaa6e5fe7d3755db4d7e6ada2790a6a16d38f1e9d676593ff925ff2fd","5ff2ff007dd22ca6e2010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-inline-count', - '', - 'x-ms-request-id', - '42fc3e7b-2511-44c9-adfa-b06f8a19606b_M9CH3_M9CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11982', - 'x-ms-correlation-request-id', - 'e284d792-387a-4f6e-aed1-7d0eadbd1199', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055124Z:e284d792-387a-4f6e-aed1-7d0eadbd1199', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:23 GMT' -]); diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_list_test.json b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_list_test.json new file mode 100644 index 000000000000..ec9c0b858664 --- /dev/null +++ b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_list_test.json @@ -0,0 +1,54 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "7fdb7abb-0340-4e03-8204-c1f6193fc9a4" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "466", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3c78dc9d-96b8-466c-b742-f0730995f0c1", + "x-ms-inline-count": "", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "3c78dc9d-96b8-466c-b742-f0730995f0c1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073955Z:3c78dc9d-96b8-466c-b742-f0730995f0c1" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx", + "name": "myrelayxxx", + "type": "Microsoft.Relay/Namespaces/WcfRelays", + "location": "eastus", + "properties": { + "createdAt": "2022-07-08T07:39:48.6275824Z", + "updatedAt": "2022-07-08T07:39:51.6438939Z", + "listenerCount": 0, + "requiresClientAuthorization": true, + "relayType": "NetTcp", + "requiresTransportSecurity": true, + "isDynamic": false + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_listauthorizationrules_test.js b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_listauthorizationrules_test.js deleted file mode 100644 index ee30966c7ea9..000000000000 --- a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_listauthorizationrules_test.js +++ /dev/null @@ -1,151 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "bfa03c59f93568b3e311eb9393e6876f"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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', - '41c02d2e-ea5c-4c6b-b8a9-d868cced0a00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AiX85CHSKQ1ClLUhgqeTSYc; expires=Sun, 09-Jan-2022 05:51:24 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr3-xVZGeOGWVWKFXhfpJALit97Zt9zrH3zNZ553FxBSupmLKiIYwnoBdEs85XML2PpEYs-xUT9Ix5-CCbPxsAtVcXmvzVE9d2KZ_I9njAZc1xARlgUm0cAPLVJz-XmkKad_N1rAOKI4QWIx4AWEl4DvbPGPvGIhtj9W8WHN1pQ8YgAA; 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, 10 Dec 2021 05:51:24 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/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/88888888-8888-8888-8888-888888888888/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', - '9e4deb1d-59f9-4f91-a0fa-cb1e19400b00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AlTJFd_df5VJm-cavhobmnI; expires=Sun, 09-Jan-2022 05:51:24 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrH-3x_nm6EWEJWA8Mj5GyKT9a7gaUTddGGU--u7c0_1-oPEWxEPoWGJid5MDjtbZdngrWdqat21clbCb12xjR6m740Id7SRwNpK-oq6Abhj8pUt5MICbmGChNKhIf9kyVZr3f9Ak0UiYK0WNp0tFWgf8LfEYikxwWfukCSJ-2RfYgAA; 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, 10 Dec 2021 05:51:24 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&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=463b537e-baaf-457a-b163-c09250fec84c&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":"access_token"}, [ - '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', - '41c02d2e-ea5c-4c6b-b8a9-d868d0ed0a00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AvQj_wZcAfZEgJGsjQGyfawWPr5BAQAAANzhRNkOAAAA; expires=Sun, 09-Jan-2022 05:51:25 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, 10 Dec 2021 05:51:24 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myauthorizationxxxx/authorizationRules') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef12f","f97f0043bfa6a302000000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-request-id', - 'bad685ba-e1e0-4074-aad7-8cdc6a49bdaa_M2CH3_M2CH3', - 'Server-SB', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Service-Bus-Resource-Provider/CH3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11981', - 'x-ms-correlation-request-id', - 'afb2e4ca-f46c-4014-84e9-373dbb5d45fe', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T055127Z:afb2e4ca-f46c-4014-84e9-373dbb5d45fe', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 05:51:26 GMT' -]); diff --git a/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_listauthorizationrules_test.json b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_listauthorizationrules_test.json new file mode 100644 index 000000000000..bef9fcbf3600 --- /dev/null +++ b/sdk/relay/arm-relay/recordings/node/relay_test/recording_wcfrelays_listauthorizationrules_test.json @@ -0,0 +1,50 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfRelays/myrelayxxx/authorizationRules?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-relay/3.1.0 core-rest-pipeline/1.9.1 Node/v16.15.1 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "b390eec5-35fb-4ff3-b413-4007605b4f67" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "349", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 07:39:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0ae3fca6-3224-4563-ba79-c6f34d4b1e30", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-request-id": "0ae3fca6-3224-4563-ba79-c6f34d4b1e30", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220708T073957Z:0ae3fca6-3224-4563-ba79-c6f34d4b1e30" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/azure_subscription_id/resourcegroups/myjstest/providers/Microsoft.Relay/namespaces/mynamespacexxx/wcfrelays/myrelayxxx/authorizationrules/myauthorizationxxxx", + "name": "myauthorizationxxxx", + "type": "Microsoft.Relay/Namespaces/WcfRelays/AuthorizationRules", + "location": "eastus", + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/relay/arm-relay/review/arm-relay.api.md b/sdk/relay/arm-relay/review/arm-relay.api.md index 34a98249e423..215461e361b7 100644 --- a/sdk/relay/arm-relay/review/arm-relay.api.md +++ b/sdk/relay/arm-relay/review/arm-relay.api.md @@ -23,9 +23,9 @@ export interface AccessKeys { export type AccessRights = "Manage" | "Send" | "Listen"; // @public -export type AuthorizationRule = Resource & { +export interface AuthorizationRule extends Resource { rights: AccessRights[]; -}; +} // @public export interface AuthorizationRuleListResult { @@ -52,13 +52,13 @@ export interface ErrorResponse { } // @public -export type HybridConnection = Resource & { +export interface HybridConnection extends Resource { readonly createdAt?: Date; - readonly updatedAt?: Date; readonly listenerCount?: number; requiresClientAuthorization?: boolean; + readonly updatedAt?: Date; userMetadata?: string; -}; +} // @public export interface HybridConnectionListResult { @@ -365,14 +365,14 @@ export interface RelayAPIOptionalParams extends coreClient.ServiceClientOptions } // @public -export type RelayNamespace = TrackedResource & { - sku?: Sku; - readonly provisioningState?: ProvisioningStateEnum; +export interface RelayNamespace extends TrackedResource { readonly createdAt?: Date; - readonly updatedAt?: Date; - readonly serviceBusEndpoint?: string; readonly metricId?: string; -}; + readonly provisioningState?: ProvisioningStateEnum; + readonly serviceBusEndpoint?: string; + sku?: Sku; + readonly updatedAt?: Date; +} // @public export interface RelayNamespaceListResult { @@ -384,14 +384,14 @@ export interface RelayNamespaceListResult { export type Relaytype = "NetTcp" | "Http"; // @public -export type RelayUpdateParameters = ResourceNamespacePatch & { - sku?: Sku; - readonly provisioningState?: ProvisioningStateEnum; +export interface RelayUpdateParameters extends ResourceNamespacePatch { readonly createdAt?: Date; - readonly updatedAt?: Date; - readonly serviceBusEndpoint?: string; readonly metricId?: string; -}; + readonly provisioningState?: ProvisioningStateEnum; + readonly serviceBusEndpoint?: string; + sku?: Sku; + readonly updatedAt?: Date; +} // @public export interface Resource { @@ -401,11 +401,11 @@ export interface Resource { } // @public -export type ResourceNamespacePatch = Resource & { +export interface ResourceNamespacePatch extends Resource { tags?: { [propertyName: string]: string; }; -}; +} // @public export interface Sku { @@ -414,27 +414,27 @@ export interface Sku { } // @public -export type TrackedResource = Resource & { +export interface TrackedResource extends Resource { location: string; tags?: { [propertyName: string]: string; }; -}; +} // @public export type UnavailableReason = "None" | "InvalidName" | "SubscriptionIsDisabled" | "NameInUse" | "NameInLockdown" | "TooManyNamespaceInCurrentSubscription"; // @public -export type WcfRelay = Resource & { - readonly isDynamic?: boolean; +export interface WcfRelay extends Resource { readonly createdAt?: Date; - readonly updatedAt?: Date; + readonly isDynamic?: boolean; readonly listenerCount?: number; relayType?: Relaytype; requiresClientAuthorization?: boolean; requiresTransportSecurity?: boolean; + readonly updatedAt?: Date; userMetadata?: string; -}; +} // @public export interface WCFRelays { diff --git a/sdk/relay/arm-relay/src/models/index.ts b/sdk/relay/arm-relay/src/models/index.ts index 9c4167750d05..18ac248af741 100644 --- a/sdk/relay/arm-relay/src/models/index.ts +++ b/sdk/relay/arm-relay/src/models/index.ts @@ -161,27 +161,27 @@ export interface WcfRelaysListResult { } /** Definition of resource. */ -export type TrackedResource = Resource & { +export interface TrackedResource extends Resource { /** Resource location. */ location: string; /** Resource tags. */ tags?: { [propertyName: string]: string }; -}; +} /** Definition of resource. */ -export type ResourceNamespacePatch = Resource & { +export interface ResourceNamespacePatch extends Resource { /** Resource tags. */ tags?: { [propertyName: string]: string }; -}; +} /** Description of a namespace authorization rule. */ -export type AuthorizationRule = Resource & { +export interface AuthorizationRule extends Resource { /** The rights associated with the rule. */ rights: AccessRights[]; -}; +} /** Description of hybrid connection resource. */ -export type HybridConnection = Resource & { +export interface HybridConnection extends Resource { /** * The time the hybrid connection was created. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -201,10 +201,10 @@ export type HybridConnection = Resource & { requiresClientAuthorization?: boolean; /** The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored. */ userMetadata?: string; -}; +} /** Description of the WCF relay resource. */ -export type WcfRelay = Resource & { +export interface WcfRelay extends Resource { /** * Returns true if the relay is dynamic; otherwise, false. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -233,10 +233,10 @@ export type WcfRelay = Resource & { requiresTransportSecurity?: boolean; /** The usermetadata is a placeholder to store user-defined string data for the WCF Relay endpoint. For example, it can be used to store descriptive data, such as list of teams and their contact information. Also, user-defined configuration settings can be stored. */ userMetadata?: string; -}; +} /** Description of a namespace resource. */ -export type RelayNamespace = TrackedResource & { +export interface RelayNamespace extends TrackedResource { /** SKU of the namespace. */ sku?: Sku; /** NOTE: This property will not be serialized. It can only be populated by the server. */ @@ -261,10 +261,10 @@ export type RelayNamespace = TrackedResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly metricId?: string; -}; +} /** Description of a namespace resource. */ -export type RelayUpdateParameters = ResourceNamespacePatch & { +export interface RelayUpdateParameters extends ResourceNamespacePatch { /** SKU of the namespace. */ sku?: Sku; /** NOTE: This property will not be serialized. It can only be populated by the server. */ @@ -289,7 +289,8 @@ export type RelayUpdateParameters = ResourceNamespacePatch & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly metricId?: string; -}; +} + /** Defines values for UnavailableReason. */ export type UnavailableReason = | "None" diff --git a/sdk/relay/arm-relay/src/relayAPI.ts b/sdk/relay/arm-relay/src/relayAPI.ts index 5d829fbf55af..eef89d745309 100644 --- a/sdk/relay/arm-relay/src/relayAPI.ts +++ b/sdk/relay/arm-relay/src/relayAPI.ts @@ -8,6 +8,11 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest +} from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { OperationsImpl, @@ -56,7 +61,7 @@ export class RelayAPI extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-relay/3.0.2`; + const packageDetails = `azsdk-js-arm-relay/3.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -108,6 +113,35 @@ export class RelayAPI extends coreClient.ServiceClient { this.namespaces = new NamespacesImpl(this); this.hybridConnections = new HybridConnectionsImpl(this); this.wCFRelays = new WCFRelaysImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + } + }; + this.pipeline.addPolicy(apiVersionPolicy); } operations: Operations; diff --git a/sdk/relay/arm-relay/test/relay_examples.ts b/sdk/relay/arm-relay/test/relay_examples.ts index f1b24b0686a4..730191aec2ae 100644 --- a/sdk/relay/arm-relay/test/relay_examples.ts +++ b/sdk/relay/arm-relay/test/relay_examples.ts @@ -8,31 +8,25 @@ import { env, - record, - RecorderEnvironmentSetup, Recorder, + RecorderStartOptions, delay, - isPlaybackMode + isPlaybackMode, } from "@azure-tools/test-recorder"; -import * as assert from "assert"; -import { ClientSecretCredential } from "@azure/identity"; +import { createTestCredential } from "@azure-tools/test-credential"; +import { assert } from "chai"; +import { Context } from "mocha"; import { RelayAPI } from "../src/relayAPI"; -const recorderEnvSetup: RecorderEnvironmentSetup = { - replaceableVariables: { - AZURE_CLIENT_ID: "azure_client_id", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" - }, - customizationsOnRecordings: [ - (recording: any): any => - recording.replace( - /"access_token":"[^"]*"/g, - `"access_token":"access_token"` - ) - ], - queryParametersToSkip: [] +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables }; export const testPollingOptions = { @@ -49,16 +43,13 @@ describe("Relay test", () => { let namespaceName: string; let authorizationRuleName: string; - beforeEach(async function() { - recorder = record(this, recorderEnvSetup); - subscriptionId = env.SUBSCRIPTION_ID; + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + subscriptionId = env.SUBSCRIPTION_ID || ''; // This is an example of how the environment variables are used - const credential = new ClientSecretCredential( - env.AZURE_TENANT_ID, - env.AZURE_CLIENT_ID, - env.AZURE_CLIENT_SECRET - ); - client = new RelayAPI(credential, subscriptionId); + const credential = createTestCredential(); + client = new RelayAPI(credential, subscriptionId, recorder.configureClientOptions({})); location = "eastus"; resourceGroup = "myjstest"; relayName = "myrelayxxx"; @@ -66,111 +57,111 @@ describe("Relay test", () => { authorizationRuleName = "myauthorizationxxxx"; }); - afterEach(async function() { + afterEach(async function () { await recorder.stop(); }); - it("namespaces create test", async function() { - const res = await client.namespaces.beginCreateOrUpdateAndWait(resourceGroup,namespaceName,{ + it("namespaces create test", async function () { + const res = await client.namespaces.beginCreateOrUpdateAndWait(resourceGroup, namespaceName, { location: location, - sku: { - name: "Standard", - tier: "Standard" - }, - tags: { - tag1: "value1" - } + sku: { + name: "Standard", + tier: "Standard" + }, + tags: { + tag1: "value1" + } }); - assert.equal(res.name,namespaceName); + assert.equal(res.name, namespaceName); }); - it("namespaces get test", async function() { - const res = await client.namespaces.get(resourceGroup,namespaceName); - assert.equal(res.name,namespaceName); + it("namespaces get test", async function () { + const res = await client.namespaces.get(resourceGroup, namespaceName); + assert.equal(res.name, namespaceName); }); - it("namespaces list test", async function() { + it("namespaces list test", async function () { const resArray = new Array(); - for await (let item of client.namespaces.list()){ - resArray.push(item); + for await (let item of client.namespaces.list()) { + resArray.push(item); } }); - it("namespaces update test", async function() { - const res = await client.namespaces.update(resourceGroup,namespaceName,{ - tags: { - tag1: "value1", - tag2: "value2", - tag3: "value3" - } + it("namespaces update test", async function () { + const res = await client.namespaces.update(resourceGroup, namespaceName, { + tags: { + tag1: "value1", + tag2: "value2", + tag3: "value3" + } }); - assert.equal(res.type,"Microsoft.Relay/Namespaces"); + assert.equal(res.type, "Microsoft.Relay/Namespaces"); }); - it("wCFRelays create test", async function() { - const res = await client.wCFRelays.createOrUpdate(resourceGroup,namespaceName,relayName,{ - relayType: "NetTcp", - requiresClientAuthorization: true, - requiresTransportSecurity: true, + it("wCFRelays create test", async function () { + const res = await client.wCFRelays.createOrUpdate(resourceGroup, namespaceName, relayName, { + relayType: "NetTcp", + requiresClientAuthorization: true, + requiresTransportSecurity: true, }); - assert.equal(res.name,relayName); + assert.equal(res.name, relayName); }); - it("wCFRelays createOrUpdateAuthorizationRule test", async function() { - const res = await client.wCFRelays.createOrUpdateAuthorizationRule(resourceGroup,namespaceName,relayName,authorizationRuleName,{rights:["Listen","Send"]}); - assert.equal(res.name,authorizationRuleName); + it("wCFRelays createOrUpdateAuthorizationRule test", async function () { + const res = await client.wCFRelays.createOrUpdateAuthorizationRule(resourceGroup, namespaceName, relayName, authorizationRuleName, { rights: ["Listen", "Send"] }); + assert.equal(res.name, authorizationRuleName); }); - it("wCFRelays get test", async function() { - const res = await client.wCFRelays.get(resourceGroup,namespaceName,relayName); - assert.equal(res.name,relayName); + it("wCFRelays get test", async function () { + const res = await client.wCFRelays.get(resourceGroup, namespaceName, relayName); + assert.equal(res.name, relayName); }); - it("wCFRelays getAuthorizationRule test", async function() { - const res = await client.wCFRelays.getAuthorizationRule(resourceGroup,namespaceName,relayName,authorizationRuleName); - assert.equal(res.name,authorizationRuleName); + it("wCFRelays getAuthorizationRule test", async function () { + const res = await client.wCFRelays.getAuthorizationRule(resourceGroup, namespaceName, relayName, authorizationRuleName); + assert.equal(res.name, authorizationRuleName); }); - it("wCFRelays list test", async function() { + it("wCFRelays list test", async function () { const resArray = new Array(); - for await (let item of client.wCFRelays.listByNamespace(resourceGroup,namespaceName)){ - resArray.push(item); + for await (let item of client.wCFRelays.listByNamespace(resourceGroup, namespaceName)) { + resArray.push(item); } - assert.equal(resArray.length,1); + assert.equal(resArray.length, 1); }); - it("wCFRelays listAuthorizationRules test", async function() { + it("wCFRelays listAuthorizationRules test", async function () { const resArray = new Array(); - for await (let item of client.wCFRelays.listAuthorizationRules(resourceGroup,namespaceName,authorizationRuleName)){ - resArray.push(item); + for await (let item of client.wCFRelays.listAuthorizationRules(resourceGroup, namespaceName, relayName)) { + resArray.push(item); } - assert.equal(resArray.length,0); + assert.equal(resArray.length, 1); }); - it("wCFRelays deleteAuthorizationRule test", async function() { - const res = await client.wCFRelays.deleteAuthorizationRule(resourceGroup,namespaceName,relayName,authorizationRuleName); + it("wCFRelays deleteAuthorizationRule test", async function () { + const res = await client.wCFRelays.deleteAuthorizationRule(resourceGroup, namespaceName, relayName, authorizationRuleName); const resArray = new Array(); - for await (let item of client.wCFRelays.listAuthorizationRules(resourceGroup,namespaceName,authorizationRuleName)){ - resArray.push(item); + for await (let item of client.wCFRelays.listAuthorizationRules(resourceGroup, namespaceName, relayName)) { + resArray.push(item); } - assert.equal(resArray.length,0); + assert.equal(resArray.length, 0); }); - it("wCFRelays delete test", async function() { - const res = await client.wCFRelays.delete(resourceGroup,namespaceName,relayName); + it("wCFRelays delete test", async function () { + const res = await client.wCFRelays.delete(resourceGroup, namespaceName, relayName); const resArray = new Array(); - for await (let item of client.wCFRelays.listByNamespace(resourceGroup,namespaceName)){ - resArray.push(item); + for await (let item of client.wCFRelays.listByNamespace(resourceGroup, namespaceName)) { + resArray.push(item); } - assert.equal(resArray.length,0); + assert.equal(resArray.length, 0); }); - it("namespaces delete test", async function() { - const res = await client.namespaces.beginDeleteAndWait(resourceGroup,namespaceName,testPollingOptions); + it("namespaces delete test", async function () { + const res = await client.namespaces.beginDeleteAndWait(resourceGroup, namespaceName, testPollingOptions); const resArray = new Array(); - for await (let item of client.namespaces.listByResourceGroup(resourceGroup)){ - resArray.push(item); + for await (let item of client.namespaces.listByResourceGroup(resourceGroup)) { + resArray.push(item); } - assert.equal(resArray.length,0); + assert.equal(resArray.length, 0); }); });