From 146e42cc8cdec52f797f4b32a259ac632aea1b78 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 16 Dec 2021 03:28:18 +0000 Subject: [PATCH] CodeGen from PR 17111 in Azure/azure-rest-api-specs Merge f85e355f64839482da640d09465602702b6649b5 into 79751e0389d7b753b5c119c8b2d796a02d3abd28 --- .../arm-recoveryservices/CHANGELOG.md | 21 --- .../arm-recoveryservices/_meta.json | 4 +- .../arm-recoveryservices/package.json | 18 +- ...recording_vaultextendedinfo_create_test.js | 149 --------------- .../recording_vaultextendedinfo_get_test.js | 149 --------------- .../recording_vaults_create_test.js | 145 --------------- .../recording_vaults_delete_test.js | 175 ------------------ .../recording_vaults_get_test.js | 149 --------------- .../recording_vaults_list_test.js | 149 --------------- .../src/recoveryServicesClient.ts | 2 +- .../test/recoveryservices_examples.ts | 116 ------------ .../arm-recoveryservices/test/sampleTest.ts | 48 +++++ 12 files changed, 55 insertions(+), 1070 deletions(-) delete mode 100644 sdk/recoveryservices/arm-recoveryservices/CHANGELOG.md delete mode 100644 sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaultextendedinfo_create_test.js delete mode 100644 sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaultextendedinfo_get_test.js delete mode 100644 sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_create_test.js delete mode 100644 sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_delete_test.js delete mode 100644 sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_get_test.js delete mode 100644 sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_list_test.js delete mode 100644 sdk/recoveryservices/arm-recoveryservices/test/recoveryservices_examples.ts create mode 100644 sdk/recoveryservices/arm-recoveryservices/test/sampleTest.ts diff --git a/sdk/recoveryservices/arm-recoveryservices/CHANGELOG.md b/sdk/recoveryservices/arm-recoveryservices/CHANGELOG.md deleted file mode 100644 index 8801f98340aa..000000000000 --- a/sdk/recoveryservices/arm-recoveryservices/CHANGELOG.md +++ /dev/null @@ -1,21 +0,0 @@ -# Release History - -## 5.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 5.0.0 (2021-12-10) - -The package of @azure/arm-recoveryservices is using our next generation design principles since version 5.0.0, which contains breaking changes. - -To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). - -To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). - -To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/recoveryservices/arm-recoveryservices/_meta.json b/sdk/recoveryservices/arm-recoveryservices/_meta.json index a50ca051dc9b..31d48cd83dda 100644 --- a/sdk/recoveryservices/arm-recoveryservices/_meta.json +++ b/sdk/recoveryservices/arm-recoveryservices/_meta.json @@ -1,7 +1,7 @@ { - "commit": "76f8e0c50629ef12aa338d55782278ceca46212a", + "commit": "cf0e6775f8e1276f12937f6c5b1a9f394b30f158", "readme": "specification/recoveryservices/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/recoveryservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1", + "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/recoveryservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1" } \ No newline at end of file diff --git a/sdk/recoveryservices/arm-recoveryservices/package.json b/sdk/recoveryservices/arm-recoveryservices/package.json index fedb2a0e1ee8..bbb94abb4f24 100644 --- a/sdk/recoveryservices/arm-recoveryservices/package.json +++ b/sdk/recoveryservices/arm-recoveryservices/package.json @@ -3,10 +3,8 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for RecoveryServicesClient.", - "version": "5.0.1", - "engines": { - "node": ">=12.0.0" - }, + "version": "1.0.0-beta.1", + "engines": { "node": ">=12.0.0" }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", @@ -16,13 +14,7 @@ "@azure/core-rest-pipeline": "^1.1.0", "tslib": "^2.2.0" }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], + "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], "license": "MIT", "main": "./dist/index.js", "module": "./dist-esm/src/index.js", @@ -49,9 +41,7 @@ "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, + "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", "dist/**/*.js.map", diff --git a/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaultextendedinfo_create_test.js b/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaultextendedinfo_create_test.js deleted file mode 100644 index 913774f3c4b6..000000000000 --- a/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaultextendedinfo_create_test.js +++ /dev/null @@ -1,149 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "6a1f2faa193160f0ee61ff01a3fc737d"; - -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', - 'dcd37a9a-d598-498a-ac0d-377209360c00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Auxf4hZoc-pKjj8_oTQ0wfc; expires=Sun, 09-Jan-2022 08:05:45 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrbdVp_nfGv9-O0shjuPyEdUP5HV3vKlPdOszD12gzBmVCr114PshkO__vpZ5RWyh3_v-7Wzh_bb4HnArMVFvPCvZp7M0DB77WrPtsANHnz51GnBfFkXsZLDiEXE5G_7wZrbNH47_96M0gk7x8A-bXd_MnYcvtIBQ6Vq1ONJhio2sgAA; 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 08:05:44 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', - 'dcd37a9a-d598-498a-ac0d-37720d360c00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AhWTcCrW6atBjiqdrpG3QOw; expires=Sun, 09-Jan-2022 08:05:45 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrvUnL6llXpbwamLrMLI5K7SYXubr-Z3GfdgdrelzTRy5dY4s-_1ASTRXaSwDso1WisSGK1Zaot5bXWCwQ9M9yOq8tX-dOWVLnbaGavL5iaOGtjmh_T3xBPLDU_twRqxV-JZj_R9MtuOVhNzc4AkTVvCvLGfZ1RC2oDVMj3RVECYkgAA; 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 08:05:45 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=1a8176ed-f002-4c7f-831d-dbae6021a056&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', - 'dcd37a9a-d598-498a-ac0d-377212360c00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AuhGj1I_MXtAskbBpUqf7TwWPr5BAQAAAFkBRdkOAAAA; expires=Sun, 09-Jan-2022 08:05:46 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 08:05:45 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.RecoveryServices/vaults/myvaultxxx/extendedInformation/vaultExtendedInfo', {"properties":{"algorithm":"None"}}) - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cb6c917ff4e8a3cb6c5db6a7efda7c39cb6767cbf3eaa3d147799b5dd057d3d9defd87d9c1a7dbf70e76f6b7f767f776b6b387f4cfeec3837b9f3e7cf0706fe7c13d6abdaaab555eb745de7cf4e8177f949517555db4f3050178512df38f7ec9e8a362467fdc6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69ef529797c52caf9bbb5f14d3ba6aaaf376fc2a9f5697797dfd3aaf2f8b69dedce591e125fee5ddbb77b937ca7a91010f69d4197e7bbd02656e061d01f8d12f","f97f0076eecea25a010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'X-Content-Type-Options', - 'nosniff', - 'x-ms-request-id', - 'cbf49688-7ed0-42af-9305-c0081b3c2eba', - 'x-ms-client-request-id', - '10621fab-c4c8-453a-9017-22404908db4f', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-IIS/10.0', - 'x-ms-ratelimit-remaining-subscription-writes', - '1199', - 'x-ms-correlation-request-id', - 'cbf49688-7ed0-42af-9305-c0081b3c2eba', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T080547Z:cbf49688-7ed0-42af-9305-c0081b3c2eba', - 'Date', - 'Fri, 10 Dec 2021 08:05:47 GMT' -]); diff --git a/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaultextendedinfo_get_test.js b/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaultextendedinfo_get_test.js deleted file mode 100644 index 7d562fbefafc..000000000000 --- a/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaultextendedinfo_get_test.js +++ /dev/null @@ -1,149 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "db178ba8df9f6ff3bd4b00ab8431d64a"; - -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', - '26d71743-73ca-49e7-9274-7b1033920b00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=ArhLQSZigmdHpRe_RkGubIs; expires=Sun, 09-Jan-2022 08:05:47 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrj74YcPlyeKlNfnRcgkZZ25W1rnTtSEtRQPCCKq4PRxFG0Cxofl4V7HGGoZ1bvq_bThMwEEv8BcCV5ZHnxt3oq4IJ44lgdFPk_Gxro-YMwkew3eipwXDC6zuQap9M1oU_jpVxR9vWnRYBEbcyGlj697DvYr-uqR6xwoAmgtj5fGAgAA; 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 08:05:46 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', - 'e64f853d-c3ea-4b39-a1b7-d97372d00c00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AgI4DXtTKYhDlnRk0nFDC24; expires=Sun, 09-Jan-2022 08:05:47 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrAkCEItTMlXF6b3lTJ2zzcunuPMJGZV74FpAFo1ek0WhANSSziBiR-Y8vH8uKBw6hPWapHyrKA8DyfW3yj8vLcKfJtDS8iIPwKLX481lUBbL4Kh6n1uRgS91-mF6oFxC0dli8lkviMkIk0TMZ4greScqPo1Ub4GiBttaZSjTzHhUgAA; 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 08:05:47 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=c0feb0c4-d786-4c22-b862-a027011e36e1&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', - 'b97961c3-2566-4335-b7a6-2cc848ad0b00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AkGorutLvk1Ah-AsaAEOjIgWPr5BAQAAAFsBRdkOAAAA; expires=Sun, 09-Jan-2022 08:05:48 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 08:05:47 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.RecoveryServices/vaults/myvaultxxx/extendedInformation/vaultExtendedInfo') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cb6c917ff4e8a3cb6c5db6a7efda7c39cb6767cbf3eaa3d147799b5dd057d3d9defd87d9c1a7dbf70e76f6b7f767f776b6b387f4cfeec3837b9f3e7cf0706fe7c13d6abdaaab555eb745de7cf4e8177f949517555db4f3050178512df38f7ec9e8a362467fdc6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69ef529797c52caf9bbb5f14d3ba6aaaf376fc2a9f5697797dfd3aaf2f8b69dedce591e125fee5ddbb77b937ca7a91010f69d4197e7bbd02656e061d01f8d12f","f97f0076eecea25a010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'X-Content-Type-Options', - 'nosniff', - 'x-ms-request-id', - '9ea49abb-afaf-4279-b76c-b2c6913b669d', - 'x-ms-client-request-id', - '98b9a7d9-23af-480a-81be-c9668f9cf931', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-IIS/10.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11997', - 'x-ms-correlation-request-id', - '9ea49abb-afaf-4279-b76c-b2c6913b669d', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T080548Z:9ea49abb-afaf-4279-b76c-b2c6913b669d', - 'Date', - 'Fri, 10 Dec 2021 08:05:48 GMT' -]); diff --git a/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_create_test.js b/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_create_test.js deleted file mode 100644 index 3f90b7d0267c..000000000000 --- a/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_create_test.js +++ /dev/null @@ -1,145 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "62b296c9068244bbe700512e49ec82b7"; - -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', - '9f30f205-82d0-49c8-908f-cc15e1ff0b00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AhglPVd48URDkoPhpdJzx-8; expires=Sun, 09-Jan-2022 08:05:31 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrgAGaqh8nowYZbniwS9UGcPjfsCVvHnJ4EafqcK_ckPJAXhtOYFNjtMnyYqkzvA0eV58u5c_MGayhcfnbqIFHxXuaZn0xVWws5_jRPBCmxIkV143KoBmu4qmdDLtkh7jpTe6meJsfbftj4q_WeL_Ud2QzUOsq8OkI6JixCh7ZWsYgAA; 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 08:05: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', - 'cc3cd611-5a11-4fd8-9a15-7b10f9d40a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Amen1H4ljXlBt43dwsJT3lI; expires=Sun, 09-Jan-2022 08:05:32 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_3cQBnyTyOeW6487LuX2_QDD771lBNr_V8uHL6nAOZ38f7gbgWCKucxCu2Vt_1Dz99i8VoqvhcAKrp_oRKtCbvjInwL9HrN3TjroRrwosYL4nxgd2squSBeKRurC3MIh46z-SLa6Fg2LT26zPoOkmO5Jp15-s9htPAxDA8UWSw4gAA; 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 08:05: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=dc0cce2d-0675-4b85-9c7e-9b05685a8c04&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', - '89baab6e-fe24-4d4d-94c1-3b25bad80b00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ajpw7sAPFv5IjclOpPWOiJIWPr5BAQAAAEsBRdkOAAAA; expires=Sun, 09-Jan-2022 08:05: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 08:05:31 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.RecoveryServices/vaults/myvaultxxx', {"location":"eastus","identity":{"type":"SystemAssigned"},"properties":{},"sku":{"name":"Standard"}}) - .query(true) - .reply(201, {"location":"eastus","name":"myvaultxxx","etag":"W/\"datetime'2021-12-10T08%3A05%3A40.9827449Z'\"","identity":{"tenantId":"88888888-8888-8888-8888-888888888888","principalId":"dd789c17-0723-4f05-bf43-0a72a0b0adba","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.RecoveryServices/vaults/myvaultxxx","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '577', - 'Content-Type', - 'application/json', - 'Expires', - '-1', - 'X-Content-Type-Options', - 'nosniff', - 'x-ms-request-id', - '68acac55-e4da-4f3a-af8a-e578c3a6cd0e', - 'x-ms-client-request-id', - '31a18c90-5587-4608-91cb-b35cd1786041', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-IIS/10.0', - 'x-ms-ratelimit-remaining-subscription-resource-requests', - '209', - 'x-ms-correlation-request-id', - '68acac55-e4da-4f3a-af8a-e578c3a6cd0e', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T080542Z:68acac55-e4da-4f3a-af8a-e578c3a6cd0e', - 'Date', - 'Fri, 10 Dec 2021 08:05:42 GMT' -]); diff --git a/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_delete_test.js b/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_delete_test.js deleted file mode 100644 index 18951c90555e..000000000000 --- a/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_delete_test.js +++ /dev/null @@ -1,175 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "f7911d462c7e5f53c779117694307929"; - -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', - 'cc3cd611-5a11-4fd8-9a15-7b1080d50a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Ah-bppzKknBHtXXClASR_i4; expires=Sun, 09-Jan-2022 08:05:48 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2R7OrOHVBovaVKIzCDTK-9qTG9i0PVdLiyFWEYO3r3jFHFA82tLH1Cg0gSr1Jmgs9kZZqqkveDRGAVqfQwyEAuRcM6DoBVRj4jVWOIXPDJj8pATnK8oTXAN641RE9-kNmuzl-pnogy9v5BSHvX199RaUJCCVEf8gZJTsivcxUSMgAA; 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 08:05:48 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', - 'e64f853d-c3ea-4b39-a1b7-d97385d00c00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AlW58HH7-YRBhoiijVncjpQ; expires=Sun, 09-Jan-2022 08:05:49 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevru2wXJKJCC9ECPcxiiniAIXHoa9Z5ghqQ11aFL8zd-CggJ7AiPMb0aJBW_HH-JwbyAa5JCLs7ixQJeVYf3KfYPptVJR-r6LrRLrZinpypvbdtOQAF_w7CgiL3OLSAcHjn4SMsqiKT-UQyzrWFflk2qGwKbxXT-5TINZTXexIs4nEgAA; 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 08:05:48 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=47bc8314-b6ae-4441-9181-95ae37a86665&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', - 'c150f094-7348-426e-be56-31e011800b00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AvH-Vw2bAhdBsVn7zFWrwFcWPr5BAQAAAFwBRdkOAAAA; expires=Sun, 09-Jan-2022 08:05:49 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 08:05:49 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.RecoveryServices/vaults/myvaultxxx') - .query(true) - .reply(200, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Expires', - '-1', - 'X-Content-Type-Options', - 'nosniff', - 'x-ms-request-id', - '0c575c8e-9f63-4b0e-90bb-8a79d01524d3', - 'x-ms-client-request-id', - '5640751f-bebe-44ae-bf3c-29cb71da5913', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-ratelimit-remaining-subscription-resource-requests', - '9', - 'x-ms-correlation-request-id', - '0c575c8e-9f63-4b0e-90bb-8a79d01524d3', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T080555Z:0c575c8e-9f63-4b0e-90bb-8a79d01524d3', - 'Date', - 'Fri, 10 Dec 2021 08:05:54 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.RecoveryServices/vaults') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bdefff92ff0742ea40440c000000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-ratelimit-remaining-subscription-reads', - '11996', - 'x-ms-request-id', - '9a883eed-7955-4a3a-9796-55e1bc797d50', - 'x-ms-correlation-request-id', - '9a883eed-7955-4a3a-9796-55e1bc797d50', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T080555Z:9a883eed-7955-4a3a-9796-55e1bc797d50', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Fri, 10 Dec 2021 08:05:54 GMT', - 'Content-Length', - '133' -]); diff --git a/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_get_test.js b/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_get_test.js deleted file mode 100644 index 4fe3d561a741..000000000000 --- a/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_get_test.js +++ /dev/null @@ -1,149 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "3278ce129ddce44c9004726e64776f56"; - -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', - 'dcd37a9a-d598-498a-ac0d-3772f1350c00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AjrcC25v5YFDrPYv0Bh8dxU; expires=Sun, 09-Jan-2022 08:05:43 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrhZ-7x0dAW-8XsxtrTlNBdLmwr8FZxLDcVZEU0smUTxZlHsCcG2MOGGxWBjl_QvBoyOJWKyDr-ufa7KT1bLjaXWPBnxnSDGtFWO3gpqH-f37ctSuucRwXSlfDTGeQcUkevuvGxxMNwj-1Bh8zYSm9bpq4DgjJbqrCrBgbK7ZSuYMgAA; 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 08:05:42 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', - 'cc3cd611-5a11-4fd8-9a15-7b1054d50a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Ajt39jI4d29Kujex-jbSHf8; expires=Sun, 09-Jan-2022 08:05:43 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrkpooOHNdP-ndZhTKcilYbFFdhpojF_QC07E8lDExzVcM-L48-1t4kM9X1sgm5ssDKxYuKWdaMB5tM4KkMy33Ig0-7osGPVRQUidcLyeK7vtcKF34Fl7XMsjSYe1CBGeJjC0UGEermsxcbsWG69uywXxZGAu3-MOKXjuv7O-tBqIgAA; 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 08:05:42 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=3241b6ff-8c23-45fa-beb4-dd1d9597d257&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', - '26d71743-73ca-49e7-9274-7b1012920b00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ap22pq2MGEJKiB8ucLTPrCwWPr5BAQAAAFcBRdkOAAAA; expires=Sun, 09-Jan-2022 08:05:43 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 08:05:42 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.RecoveryServices/vaults/myvaultxxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1476535cddaa25a7ef4e8a33c6bda75f3d1e8a365b6c8e9efc5f565b62edb77efded167799b5dd067dfbdfbfb7e34cbdabc2d16f9c77b3b7bbbdbbb7bdbbb3b6f760e7ef77bc73bf7e99ffd9df1c383bd07fbfb0f7feae3dff7237ab398e5cbb668af3f7af48b3f6af365b66ccf6604e9c1def9c38383c9f9f6c1a7e7bbdbfbbbd9f9f6c3dd6cb2bd377b309dedeceece26fb0fe8ed555d2ca7c52a2bf9a5d9ecc1c1c3e9ee83ed9d077bf7b6f7cf77ee6f4fcef7ef6def640ff6b29dc94e369b64f4527bbdc2005e5f376dbe386e9ae26299cf3efa258056adf2ba2df206d8d05f974543832f9617af5b1a15de594fa7793ea3e6685d5cd2a7a7cbd9aa2a962d377956d54fb2e9dbf58adabea896f970b3d7459bbfcaa7d5655ed3d8a531a150601c779bf5a499d6c50aa46fee3e245adc9f1d9c6fdf9b7efa8068b1b74fb4983ed83e989eef103526e77bfbbb77ebbca9d6f534ffbcaed6abe6eee2faa769744d7b974731cbebe6ee17c5b4ae9aeabc1d9b7e5fe7f56531cd9bbb3c9378897f9129552addf816356ddeae4130650c1ae17296d544d15f","f2ff00efd3441e41020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'X-Content-Type-Options', - 'nosniff', - 'x-ms-request-id', - '3346758a-d26c-4257-8cd5-2f65b46a63e0', - 'x-ms-client-request-id', - 'b3024aa2-5f4a-4bcb-827f-827c3440d8c4', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-IIS/10.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11999', - 'x-ms-correlation-request-id', - '3346758a-d26c-4257-8cd5-2f65b46a63e0', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T080544Z:3346758a-d26c-4257-8cd5-2f65b46a63e0', - 'Date', - 'Fri, 10 Dec 2021 08:05:44 GMT' -]); diff --git a/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_list_test.js b/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_list_test.js deleted file mode 100644 index 3e2c9aba3ccd..000000000000 --- a/sdk/recoveryservices/arm-recoveryservices/recordings/node/recoveryservices_test/recording_vaults_list_test.js +++ /dev/null @@ -1,149 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "34b07546f4ad9c1cb6f47c313b3261e5"; - -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', - 'cc3cd611-5a11-4fd8-9a15-7b105bd50a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Aty18jKxjvROs5M6p-l6qVM; expires=Sun, 09-Jan-2022 08:05:44 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevruZvqrF4HN3vfDhFeunv3GCxldJMNzVVfZoIJ7KmQ5ZIiQ4FE1oxnQfcIooxszmuFBk7gIP2cG9tdHCsH5Z9gYjxwgy-mePW8_WwBflJZx8HWrLNJju89yAdJnSIKQLMZ8eP3Vr7o-Uinm4F7R2XNQiRWPZ7LE9Clef0np57jU3wgAA; 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 08:05:43 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', - 'cc3cd611-5a11-4fd8-9a15-7b105dd50a00', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=ArQU8Q16Qf5Akqqzb9RhgdI; expires=Sun, 09-Jan-2022 08:05:44 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJNi7KcNvPpMcZ7YW7j3SPV0hn4hPrwKJ8KaBBRwKkpkO3BoiA_mQgA294Hs1j3tS7yxRolHzPr8AM58sZ5ZyEjp34mc_A1DRrSFN6lS4O3ZnBcBjOnFKMX526NcdlIrhr5zr96POau9ymH9yD7QS8u3no8wc3iRODfXT_4Bi5TIgAA; 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 08:05:43 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=90e5d352-33fe-4ad3-a80a-9010aa93a76b&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', - '9f30f205-82d0-49c8-908f-cc1547000c00', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AtYbovmMjHZBjqWJikjFAyoWPr5BAQAAAFgBRdkOAAAA; expires=Sun, 09-Jan-2022 08:05:44 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 08:05:44 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.RecoveryServices/vaults') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffc51594db3b6a8961f3dfa28cf9a76dd7c34fa68992de8cb8f16d797d9ba6cdfbd7b479fe56d76419f7df7eeeffbd12c6bf3b658e41fefedeced6eefee6defeebcd939f8ddef1defdca77ff677c60f0ff61eecef3ffca98f7fdf8fe8cd62962fdba2bdfee8d12ffea8cd97d9b23d9b11a4077be70f0f0e26e7db079f9eef6eefef66e7db0f77b3c9f6deecc174b6b3bb3b9bec3fa0b75775b19c16abace49766b307070fa7bb0fb6771eecdddbde3fdfb9bf3d39dfbfb7bd933dd8cb76263bd96c92d14bedf50a03787dddb4f9e2b8698a8b653efbe897005ab5caebb6c81b60437f5d160d0dbe585ebc6e695478673d9de6f98c9aa37571499f9e2e67abaa58b6dce459553fc9a66fd72b6afba25ae6c3cd5e176dfe2a9f5697794d6397c684428171dc6dd693665a172b90beb9fb9068717f7670be7d6ffae903a2c5de3ed162fa60fb607abe43d4989cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9fa6d135ed5d1ec52caf9bbb5f14d3ba6aaaf3766cfa7d9dd797c5346feef24ce225fe45a654a974e35bd4b479bb06c194316884cb595613457fc9f77f","c9ff038e9a18144d020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'X-Content-Type-Options', - 'nosniff', - 'x-ms-request-id', - 'a1c8f183-5031-41e4-b56c-cdfc9f4a93fb', - 'x-ms-client-request-id', - '542f5488-3f0c-47aa-b8b2-a48b2547c5e7', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Server', - 'Microsoft-IIS/10.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11998', - 'x-ms-correlation-request-id', - 'a1c8f183-5031-41e4-b56c-cdfc9f4a93fb', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211210T080545Z:a1c8f183-5031-41e4-b56c-cdfc9f4a93fb', - 'Date', - 'Fri, 10 Dec 2021 08:05:45 GMT' -]); diff --git a/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts b/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts index e0b6133c39bc..e7d9e44df768 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts @@ -72,7 +72,7 @@ export class RecoveryServicesClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-recoveryservices/5.0.0`; + const packageDetails = `azsdk-js-arm-recoveryservices/1.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/recoveryservices/arm-recoveryservices/test/recoveryservices_examples.ts b/sdk/recoveryservices/arm-recoveryservices/test/recoveryservices_examples.ts deleted file mode 100644 index b82469911f71..000000000000 --- a/sdk/recoveryservices/arm-recoveryservices/test/recoveryservices_examples.ts +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - env, - record, - RecorderEnvironmentSetup, - Recorder, - delay, - isPlaybackMode -} from "@azure-tools/test-recorder"; -import * as assert from "assert"; -import { ClientSecretCredential } from "@azure/identity"; -import { RecoveryServicesClient } from "../src/recoveryServicesClient"; - -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: [] -}; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("Recoveryservices test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: RecoveryServicesClient; - let location: string; - let resourceGroup: string; - let vaultsName: string; - - beforeEach(async function() { - recorder = record(this, recorderEnvSetup); - 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 RecoveryServicesClient(credential, subscriptionId); - location = "eastus"; - resourceGroup = "myjstest"; - vaultsName = "myvaultxxx"; - }); - - afterEach(async function() { - await recorder.stop(); - }); - - it("vaults create test", async function() { - const res = await client.vaults.beginCreateOrUpdateAndWait(resourceGroup,vaultsName,{ - location: location, - properties: {}, - sku: { - name: "Standard" - }, - identity: { - type: "SystemAssigned" - } - },testPollingOptions); - assert.equal(res.name,vaultsName); - }); - - it("vaults get test", async function() { - const res = await client.vaults.get(resourceGroup,vaultsName); - assert.equal(res.name,vaultsName); - }); - - it("vaults list test", async function() { - const resArray = new Array(); - for await (let item of client.vaults.listByResourceGroup(resourceGroup)){ - resArray.push(item); - } - assert.equal(resArray.length,1); - }); - - it("vaultExtendedInfo create test", async function() { - const res = await client.vaultExtendedInfo.createOrUpdate(resourceGroup,vaultsName,{ - algorithm: "None" - }); - assert.equal(res.algorithm,"None"); - }); - - it("vaultExtendedInfo get test", async function() { - const res = await client.vaultExtendedInfo.get(resourceGroup,vaultsName); - assert.equal(res.type,"Microsoft.RecoveryServices/vaults/extendedInformation") - }); - - it("vaults delete test", async function() { - const res = await client.vaults.delete(resourceGroup,vaultsName); - const resArray = new Array(); - for await (let item of client.vaults.listByResourceGroup(resourceGroup)){ - resArray.push(item); - } - assert.equal(resArray.length,0); - }); -}); diff --git a/sdk/recoveryservices/arm-recoveryservices/test/sampleTest.ts b/sdk/recoveryservices/arm-recoveryservices/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/recoveryservices/arm-recoveryservices/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +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: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +});