diff --git a/sdk/search/arm-search/CHANGELOG.md b/sdk/search/arm-search/CHANGELOG.md deleted file mode 100644 index 8e5b47934df7..000000000000 --- a/sdk/search/arm-search/CHANGELOG.md +++ /dev/null @@ -1,21 +0,0 @@ -# Release History - -## 3.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 3.0.0 (2021-12-21) - -The package of @azure/arm-search is using our next generation design principles since version 3.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/search/arm-search/LICENSE b/sdk/search/arm-search/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/search/arm-search/LICENSE +++ b/sdk/search/arm-search/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Microsoft +Copyright (c) 2022 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/search/arm-search/README.md b/sdk/search/arm-search/README.md index daf79dc4d1ae..6bd253aa2150 100644 --- a/sdk/search/arm-search/README.md +++ b/sdk/search/arm-search/README.md @@ -6,7 +6,7 @@ Client that can be used to manage Azure Cognitive Search services and API keys. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/search/arm-search) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-search) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-search) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-search?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/search/arm-search/_meta.json b/sdk/search/arm-search/_meta.json index 4ad5b4ae250f..8499f6593298 100644 --- a/sdk/search/arm-search/_meta.json +++ b/sdk/search/arm-search/_meta.json @@ -1,7 +1,7 @@ { - "commit": "0cd7b3e83d5e7e21222dcc4bdde4565562da0cdf", + "commit": "6ba37b7279bbd0d69042743246780cc3af9257b9", "readme": "specification/search/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/search/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.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/search/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.20211217.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1" } \ No newline at end of file diff --git a/sdk/search/arm-search/package.json b/sdk/search/arm-search/package.json index 75936e613bd1..38e90464d5e5 100644 --- a/sdk/search/arm-search/package.json +++ b/sdk/search/arm-search/package.json @@ -3,10 +3,8 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for SearchManagementClient.", - "version": "3.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/search/arm-search/recordings/node/search_test/recording_querykeys_create_test.js b/sdk/search/arm-search/recordings/node/search_test/recording_querykeys_create_test.js deleted file mode 100644 index 7171ee5dac30..000000000000 --- a/sdk/search/arm-search/recordings/node/search_test/recording_querykeys_create_test.js +++ /dev/null @@ -1,149 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "0902a8985af6c00e5484cc29b54ef73d"; - -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', - 'c7025f87-5230-4b1b-a3d3-5a8e48e41000', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AnFJo4KxyV5KjRJd0lLk7tA; expires=Thu, 20-Jan-2022 08:35:16 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevreCtx7R-SdJhcipdJmofnGPb0jzHs06fh5BrXQzkak7TuhvbXz5vp7nOTC1S_f5wwp1FTBUB4Ja9YWeNB8-xG1aTW89EfdmP-yZlP-tN5DL1yW2hXd3sllpOMwf88jQ1ARI52xAHfFOyPCihl5p417G7laWrGfEjJPr4lb6ZLthQgAA; 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', - 'Tue, 21 Dec 2021 08:35:16 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', - 'e5f8b3bb-d617-4d20-a5d6-39aade550500', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Aucji1bUgQpKsEOgg-4_5hw; expires=Thu, 20-Jan-2022 08:35:16 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2EjbQx3wB1gnSnD3AQN3eALoPp-usw2HnZsAkMFSM0EPYdIij_p79vbmWzbnVn0gOBDIQoK_C6ioU2bQQDyo3qyJNsorDER2ugaGgB528_t99V_Mu6wKR_p8Bmed8ob2VNBzhKnRdrA8nbOUwIzazRkLdfhsUmn8YJdXKEHCBVggAA; 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', - 'Tue, 21 Dec 2021 08:35: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.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=1d943c10-13d7-42eb-94fd-0b16ebaaa306&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', - '792de6b9-024e-4c20-b2f9-0fab9bd90a00', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AjzWVCRXCSBNmzbjpObu9LPLj78gAQAAAMSIU9kOAAAA; expires=Thu, 20-Jan-2022 08:35: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', - 'Tue, 21 Dec 2021 08:35:16 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .post('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Search/searchServices/myjssearchservicexx/createQueryKey/testjskey') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147cb6c917ff4e8a3366fda9f6edee6d71f8d3ec2bf8f3eba777ab077fae9313d27cf3ebdfff4e1c3a7bb3b4fef3f393d3e3879f0f0c9c1ee47","bfe4ff019f8c09593d000000"], [ - '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,Accept-Encoding', - 'x-ms-request-id', - 'b8968f15-a142-4d18-ba35-9d3a9dab4faf', - 'request-id', - 'b8968f15-a142-4d18-ba35-9d3a9dab4faf', - 'elapsed-time', - '198', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-ratelimit-remaining-subscription-writes', - '1199', - 'x-ms-correlation-request-id', - '38e84aec-b04c-40f8-9cd7-de169dc1ddd5', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211221T083517Z:38e84aec-b04c-40f8-9cd7-de169dc1ddd5', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Tue, 21 Dec 2021 08:35:16 GMT' -]); diff --git a/sdk/search/arm-search/recordings/node/search_test/recording_querykeys_delete_test.js b/sdk/search/arm-search/recordings/node/search_test/recording_querykeys_delete_test.js deleted file mode 100644 index 974d6c38635f..000000000000 --- a/sdk/search/arm-search/recordings/node/search_test/recording_querykeys_delete_test.js +++ /dev/null @@ -1,185 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "d8c1c488682a2eebf8fa7687871680ed"; - -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', - '882ce76a-8151-44e0-b77f-469ec8fa0f00', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AutWUbFrDNRNi0juCor3rfA; expires=Thu, 20-Jan-2022 08:35:19 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr64PQbaKRSGswCI3lxmJeb3ok8nW8Cuw5ocUEgAvHdSnSc6wwMFCT6uSSmJcP-n0eYcN91NRztuqhU-yMnpuH66hM70UunLZF6RdKTFYMZq90HHlIHDAveFuQOVcU_ACOXvBFizt3pO6YBUDyoP3Z1oV2V4xEcb06xIdIiq-IEJMgAA; 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', - 'Tue, 21 Dec 2021 08:35:18 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', - '9dd0c33e-2a73-4b99-a0e0-506f9b250b00', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=ApIGe1N-OKFNojR4gvAkZCY; expires=Thu, 20-Jan-2022 08:35:19 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2fEp2F5xVvMRRI25q-OjhrKtf_oBuXNJY0Eqa14huUzyL7BOvz1sdN8Y6jb_8xUzIfpMR-b3BhBVoxKHiVycuHwVFoWp6qPCCqTZ6sZbc05X999FqbwRaXnQVFK8H_NF1bdmj5-9B2_YbYME6ZpqcTn2MGLspFhaQs0LG7aRTPogAA; 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', - 'Tue, 21 Dec 2021 08:35:18 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.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=4b6e79c4-1f25-4ccb-b5e7-dddc39410bfa&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', - '882ce76a-8151-44e0-b77f-469ecdfa0f00', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AmhqDVcLvENMtLjJlw5Vs-XLj78gAQAAAMeIU9kOAAAA; expires=Thu, 20-Jan-2022 08:35:19 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', - 'Tue, 21 Dec 2021 08:35:18 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Search/searchServices/myjssearchservicexx/deleteQueryKey/testjskey') - .query(true) - .reply(404, {"error":{"code":"Unknown","message":"This API key does not exist for service 'myjssearchservicexx'. RequestId: ca5e1c5e-9427-4af2-a0f3-99bdb953a57b","target":null,"details":null}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '180', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Language', - 'en', - 'Expires', - '-1', - 'x-ms-request-id', - 'ca5e1c5e-9427-4af2-a0f3-99bdb953a57b', - 'request-id', - 'ca5e1c5e-9427-4af2-a0f3-99bdb953a57b', - 'elapsed-time', - '116', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-ratelimit-remaining-subscription-deletes', - '14999', - 'x-ms-correlation-request-id', - 'a4de790d-e5dc-4eb5-985b-4830290d0bde', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211221T083519Z:a4de790d-e5dc-4eb5-985b-4830290d0bde', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Tue, 21 Dec 2021 08:35:19 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .post('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Search/searchServices/myjssearchservicexx/listQueryKeys') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1325bd02fcb75598e3e7a9b5f7ff4e8a3a79f3e7dfa60e7e0f8c9dec9b39d9d873b0f0e4e3f7d78fae0c1fec9e9e9a79f9e9c7cf44b46e6b58fdabc697fbac17be6ed7ba7077ba79f1ed373f2ecd3fb4f1f3e7cbabbf3f4fe93d3e38393070f9f1cec7ef44bbe3ffa6899bf6b9f17cbb7d2f12f","f97f00fe702cd990000000"], [ - '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,Accept-Encoding', - 'x-ms-request-id', - '4cecf515-b69a-4f7d-b84a-e95ab98acc90', - 'request-id', - '4cecf515-b69a-4f7d-b84a-e95ab98acc90', - 'elapsed-time', - '114', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-ratelimit-remaining-subscription-writes', - '1197', - 'x-ms-correlation-request-id', - '32d451b3-e0b5-4dcc-9efe-2f90170d8b79', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211221T083520Z:32d451b3-e0b5-4dcc-9efe-2f90170d8b79', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Tue, 21 Dec 2021 08:35:19 GMT' -]); diff --git a/sdk/search/arm-search/recordings/node/search_test/recording_querykeys_list_test.js b/sdk/search/arm-search/recordings/node/search_test/recording_querykeys_list_test.js deleted file mode 100644 index 72985ebe38d7..000000000000 --- a/sdk/search/arm-search/recordings/node/search_test/recording_querykeys_list_test.js +++ /dev/null @@ -1,149 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "253cb4f279bde5f04cb6f6e7543edb51"; - -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', - 'c7025f87-5230-4b1b-a3d3-5a8e56e41000', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AlrT-qYO0BJCqUglcUzG3SE; expires=Thu, 20-Jan-2022 08:35:17 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOqW4w_mmTFVMjIjrpAPKPFNx79GIHZN47gPhuBFhJ8kj0IHaJ3FYU-hlRLzSpDyQwQPmopyyiBM3a8GZ1B6QkDAqmJLVlKlu6d5OuCr1wBgQDWilZHy4jvSzei6udcyJvX_HQmbU3fayQGpT5KZCzNAhh-EO5Ha71iCR1t9LJ_4gAA; 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', - 'Tue, 21 Dec 2021 08:35: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', - 'e5f8b3bb-d617-4d20-a5d6-39aae9550500', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AvcL3PrEtyZFhP8To2EMY8A; expires=Thu, 20-Jan-2022 08:35:18 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrer7q9LdYgkZOIQ91clbXDJBUg5iKS5iJl4tKSX4LSbAxuMSC83wUY6acMpEkbs30K-Eox2Lc-uZBLwSRijzjIUstX1u5XnFLDYccKh3MXUwRDilh_bP0OCOh-AwlifJzoTiTXnp_Be5gDx7GHvyyCienrFbOq_b4BhwVwzHZ7ycgAA; 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', - 'Tue, 21 Dec 2021 08:35: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.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=d97098f1-a63a-48da-8000-f3f11ef0d0f9&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', - '792de6b9-024e-4c20-b2f9-0faba7d90a00', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AnzEBUHnIiRIqgXQRcZep8_Lj78gAQAAAMWIU9kOAAAA; expires=Thu, 20-Jan-2022 08:35: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', - 'Tue, 21 Dec 2021 08:35:17 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .post('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Search/searchServices/myjssearchservicexx/listQueryKeys') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1325bd02fcb75598e3e7a9b5f7ff4e8a3a79f3e7dfa60e7e0f8c9dec9b39d9d873b0f0e4e3f7d78fae0c1fec9e9e9a79f9e9c7cf44b46e6b58fdabc697fbac17be6ed7ba7077ba79f1ed373f2ecd3fb4f1f3e7cbabbf3f4fe93d3e38393070f9f1cec7ef44bbe3ffa6899bf6b9f17cbb7d2f12f","f97f00fe702cd990000000"], [ - '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,Accept-Encoding', - 'x-ms-request-id', - '9332a445-c154-46c7-a1df-83597c53f36a', - 'request-id', - '9332a445-c154-46c7-a1df-83597c53f36a', - 'elapsed-time', - '142', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-ratelimit-remaining-subscription-writes', - '1198', - 'x-ms-correlation-request-id', - 'fa5553ad-4397-4cad-ba7f-7919369a8aa6', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211221T083518Z:fa5553ad-4397-4cad-ba7f-7919369a8aa6', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Tue, 21 Dec 2021 08:35:18 GMT' -]); diff --git a/sdk/search/arm-search/recordings/node/search_test/recording_services_create_test.js b/sdk/search/arm-search/recordings/node/search_test/recording_services_create_test.js deleted file mode 100644 index b9c6af456512..000000000000 --- a/sdk/search/arm-search/recordings/node/search_test/recording_services_create_test.js +++ /dev/null @@ -1,147 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "b3017d75108c0f0ee9f900fba34addd1"; - -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', - '792de6b9-024e-4c20-b2f9-0fab39d90a00', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AnF373lyiVZGmTPAkBdTy4s; expires=Thu, 20-Jan-2022 08:35:02 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJnICsaJQe8CeYsOVq11yHf77NWz_0grJcvOhtnxqsfWpVXnqXFLO4H_Z6QM7Vz9zhqTBD7HaZQ-Mvbrsvsa7zGLoVwbhJdtzUgz3eUzfkTV7yLC3gs4lmbjzfxndA-bSmcdwVf_bfC9r5dnbrtMzLoxLSYv9m4vXCh3-9rDF2eogAA; 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', - 'Tue, 21 Dec 2021 08:35:01 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', - 'e5f8b3bb-d617-4d20-a5d6-39aa7f550500', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AsoGz01_b-5PoIS95PRu0TY; expires=Thu, 20-Jan-2022 08:35:02 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr6tEJ19ri9WMICskFOswCrErgMtNaTqeCRl2MHrG0aRSXUjU6XZiuFfcvKHwRAjEDEkwni0qmTQRGPLg58zOJvePyQElsgM2OQI2kf3Nzj7jT73Bqvt2aSzHwdWjVqDXejqtf4ym134762BeyUl-6viUZnulQgt1tw-4R1xUAhrggAA; 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', - 'Tue, 21 Dec 2021 08:35: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.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=9ebe80c5-6007-4cfe-8ecf-d8be580e951b&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', - '9dd0c33e-2a73-4b99-a0e0-506f2a250b00', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ath_JBNpeuVAhwFQ0ViIOVHLj78gAQAAALaIU9kOAAAA; expires=Thu, 20-Jan-2022 08:35:02 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', - 'Tue, 21 Dec 2021 08:35:02 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Search/searchServices/myjssearchservicexx', {"location":"eastus","sku":{"name":"standard"},"properties":{"replicaCount":1,"partitionCount":1,"hostingMode":"default"}}) - .query(true) - .reply(201, {"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Search/searchServices/myjssearchservicexx","name":"myjssearchservicexx","type":"Microsoft.Search/searchServices","location":"East US","properties":{"replicaCount":1,"partitionCount":1,"status":"running","statusDetails":"","provisioningState":"succeeded","hostingMode":"default","publicNetworkAccess":"Enabled","networkRuleSet":{"ipRules":[],"bypass":"None"},"privateEndpointConnections":[],"sharedPrivateLinkResources":[]},"sku":{"name":"standard"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '552', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'ETag', - `W/"datetime'2021-12-21T08%3A35%3A12.0802951Z'"`, - 'x-ms-request-id', - '881eb399-5f62-470b-9688-c30eb5ace531', - 'request-id', - '881eb399-5f62-470b-9688-c30eb5ace531', - 'elapsed-time', - '1947', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-ratelimit-remaining-subscription-writes', - '1199', - 'x-ms-correlation-request-id', - 'dd813805-e194-447a-822f-e938b9f00ce1', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211221T083513Z:dd813805-e194-447a-822f-e938b9f00ce1', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Tue, 21 Dec 2021 08:35:12 GMT' -]); diff --git a/sdk/search/arm-search/recordings/node/search_test/recording_services_delete_test.js b/sdk/search/arm-search/recordings/node/search_test/recording_services_delete_test.js deleted file mode 100644 index e73699bb6744..000000000000 --- a/sdk/search/arm-search/recordings/node/search_test/recording_services_delete_test.js +++ /dev/null @@ -1,177 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "058e97a52ffbf0d84ec36fab6e5997fe"; - -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', - 'f480e226-70a1-4283-a533-9f5ea7f00c00', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AoeIgI_6MqxPraHs8RK0vZI; expires=Thu, 20-Jan-2022 08:35:20 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr8SVLKN1vrcqVimxO-1gX7tmo3m8vNJC7e_f7ELJr7IWWVMs0P2uyjk0wT_O2hy3HvRwZnvtY7pcto0a9aQhVJMp6gnuEogSEiRV8VN0cX1uKaLYHjfvu176KxGhQ3rsPg7mQ0020qOEpvooPuB1SZBrRxA6asrLip2Q74Ts6WWYgAA; 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', - 'Tue, 21 Dec 2021 08:35:20 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', - '9dd0c33e-2a73-4b99-a0e0-506fa6250b00', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AuhDB6YIeaRFpdPTtSz2B5w; expires=Thu, 20-Jan-2022 08:35:20 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrDhiNdYLzrrd2iifI1GIwMin8sjx3uFdzn9Kca1u6SuEsQtT20IAX6EAhKgLOZv6qh2aDTqUkRnZjWuEKZrjITurOW4ThC59HxvmjEFkv5TvjKCWP_nJV2wAjNXxck4PLnUFEnPwVLd7g91Vu18n2JkXHUjO9kUKz5loaeGI0oVkgAA; 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', - 'Tue, 21 Dec 2021 08:35:20 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.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=7e9d614a-cbe3-4268-ab17-a319cadc44f3&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', - '9dd0c33e-2a73-4b99-a0e0-506fa8250b00', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=ArFaw8QupTpEopVkvRrnTRDLj78gAQAAAMeIU9kOAAAA; expires=Thu, 20-Jan-2022 08:35: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', - 'Tue, 21 Dec 2021 08:35:20 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Search/searchServices/myjssearchservicexx') - .query(true) - .reply(200, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Expires', - '-1', - 'x-ms-request-id', - '9e03c8c3-7b03-495c-8b8a-cef61512db2c', - 'request-id', - '9e03c8c3-7b03-495c-8b8a-cef61512db2c', - 'elapsed-time', - '967', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-ratelimit-remaining-subscription-deletes', - '14998', - 'x-ms-correlation-request-id', - 'f7fa296a-203f-4268-8c02-b2ddf084752b', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211221T083526Z:f7fa296a-203f-4268-8c02-b2ddf084752b', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Tue, 21 Dec 2021 08:35:25 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Search/searchServices') - .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', - '11997', - 'x-ms-request-id', - '77309677-0bb5-45e4-810c-3a1ec2376bef', - 'x-ms-correlation-request-id', - '77309677-0bb5-45e4-810c-3a1ec2376bef', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211221T083526Z:77309677-0bb5-45e4-810c-3a1ec2376bef', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Tue, 21 Dec 2021 08:35:25 GMT', - 'Content-Length', - '133' -]); diff --git a/sdk/search/arm-search/recordings/node/search_test/recording_services_get_test.js b/sdk/search/arm-search/recordings/node/search_test/recording_services_get_test.js deleted file mode 100644 index 9cb9a7db873d..000000000000 --- a/sdk/search/arm-search/recordings/node/search_test/recording_services_get_test.js +++ /dev/null @@ -1,151 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "e814c202711fbf5816839f23314bc9bf"; - -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', - 'c11f8f9a-6879-4d56-8cc3-1fb244120d00', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=ApgTigJ6mpxLnQNWQ-l678Q; expires=Thu, 20-Jan-2022 08:35:13 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrnosL7YYTo7Ix4K-rLYN88o3ukFM9DUtFjhieHI6295baf2mGf3WTh5TYerNI3zTxMP1_5t0VPefcOx3Zs7TqlpeHZkr3pM97diLD9sAYhJWcolJOdT7_ZCtvyTwNE-sG9Yu0dk-9XV0h_0dX8-BcPAAatDHgVK_0POXA1ZXuZFAgAA; 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', - 'Tue, 21 Dec 2021 08:35:13 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', - 'f480e226-70a1-4283-a533-9f5e7df00c00', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Ak83AXmifn9KtppM3yXpGv8; expires=Thu, 20-Jan-2022 08:35:13 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrAzV59MtcBVOq4Y4UXPWQvb-0RZ9OsLtESxFi9Tw2oaOmK1wB5DRMYGQBPwVcBAbpQuHomirTRlvSqDiUJeuvRjkgB2TVKn23CedKs9cGy0ScQgjBCWnONAQXKEZgkhtV7A-TS5WXFieetpik0CMuko3ZUSCWsa0Dd3Eq782bba8gAA; 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', - 'Tue, 21 Dec 2021 08:35:13 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.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=f59569aa-17a8-49c1-ab5a-d95ed1380562&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', - 'c11f8f9a-6879-4d56-8cc3-1fb246120d00', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AmI8vI4wfYNNlfI0v0ANMe7Lj78gAQAAAMKIU9kOAAAA; expires=Thu, 20-Jan-2022 08:35:14 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', - 'Tue, 21 Dec 2021 08:35:13 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Search/searchServices/myjssearchservicexx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e5fe7593d9ddf6df8c7ebbcbe2ca6b9bc221f35f2d1bb771f8d3e5a668b9c508a7fd95eaff0e50d90a961594d330c861a9f664d9b7ef59a3e24d45679dd16d4e2d12ffea8ce576531cd4eaaf5b2fde8d12e7d9dd17778c97dd4b459bba6d61fd5ebe5b2585e1010f9e869de6645896fe823827b5934f422b5784d5f03c5663d9de6f92c9fd1f7f3aa69e9ab2faa19be99e5e7d9ba6ce9f3d57a4218bcc8dbabaa7e7b4ced1b003c5d669392df5bca37afd665fe3a278468b656f8835a7deffba38f26d7ab8cdf78512df38f7e09c1ab8b4beafd74395b55c5b23da996cb7c8a015123bcd0ccb33a9fbd9456cf8be5db573a87fc3d0168deaed18b4e018d7439cbead947bfe4","97fc3f2787116028020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'ETag', - `W/"datetime'2021-12-21T08%3A35%3A12.0802951Z'"`, - 'Vary', - 'Accept-Encoding,Accept-Encoding', - 'x-ms-request-id', - 'ebbfc4ea-d17a-4a83-a48c-3453c29f4b26', - 'request-id', - 'ebbfc4ea-d17a-4a83-a48c-3453c29f4b26', - 'elapsed-time', - '165', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-ratelimit-remaining-subscription-reads', - '11999', - 'x-ms-correlation-request-id', - '5af7766b-5b0e-49fb-b6f0-60e0dc5a3b1f', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211221T083514Z:5af7766b-5b0e-49fb-b6f0-60e0dc5a3b1f', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Tue, 21 Dec 2021 08:35:14 GMT' -]); diff --git a/sdk/search/arm-search/recordings/node/search_test/recording_services_list_test.js b/sdk/search/arm-search/recordings/node/search_test/recording_services_list_test.js deleted file mode 100644 index c9189c3a25f0..000000000000 --- a/sdk/search/arm-search/recordings/node/search_test/recording_services_list_test.js +++ /dev/null @@ -1,149 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "e5c7e28b729fddab131c256371a7e658"; - -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', - 'c11f8f9a-6879-4d56-8cc3-1fb24f120d00', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AmUNeS38POFClaEF95yiONs; expires=Thu, 20-Jan-2022 08:35:14 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrPgCzwJYYOpXJlSVjyq3k0nw2Kb1vnpoy6nISOlRi8rDZHA6AmAqGVsbKjTPzGSekSYN0g-GwSqcQ3FEDbLKFpoNw4wfR5iFd0k2Rb-ilw9e9ODyPJ5106qh8OZVUJqWwS1zeCWwS05lXnnPEiqh7PZUlDV_A4S-5dKCNVldTA2ogAA; 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', - 'Tue, 21 Dec 2021 08:35:14 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', - '792de6b9-024e-4c20-b2f9-0fab94d90a00', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=Aiy9JPQMSkZLvNG8chHP3pE; expires=Thu, 20-Jan-2022 08:35:15 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBdcr3CX5I7CiNtTWXaon0KuvHi1z_lVd7QZvqJVerr395dMR722v2_-UheFF6rBLZIzaWf8Ogj85Q8lUbhWY0_TANJitnwjVU4F0XroGr4X5wsI241aP4xdeICnAFDG7Ud6EUB6bmtcpv4a0_aOKAiU8kz4skjRXNbpxTz6q2QsgAA; 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', - 'Tue, 21 Dec 2021 08:35:14 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.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=4b05b867-7c3d-406b-8ac8-a4d5bd540b43&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', - '792de6b9-024e-4c20-b2f9-0fab95d90a00', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=ArlLPKhWmsZMgQtNHza3cTLLj78gAQAAAMKIU9kOAAAA; expires=Thu, 20-Jan-2022 08:35:15 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', - 'Tue, 21 Dec 2021 08:35:14 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Search/searchServices') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffc5131fbe8d147779bf5a499d6c5aa2daa6573f7e1def9c3fbb383f3ed7bd34f1f6cefefeeed6f3fdc9d3ed83e989eef3c98ce26e77bfbbb77ebbca9d6f534ffbcaed6abe6eee2faa79b366fdabbabbaba2c6679dddcfda298d655539db7e3d779564fe7771bfef13aaf2f8b692eafc8478d7cf4eedd47a38f96d98230fb28fe657bbdc2973740a6866535cd30186a7c9a356dfad56bfa90505be5755b508b47bff8a33a5f95c5343ba9d6cbf6a347bbf47546dfe125f751d366ed9a5a7f54af97cb62794140e4a3a7799b1525bea18f08ee65d1d08bd4e2357d0d149bf5749ae7b37c46dfcfaba6a5afbea866f866969f67ebb2a5cf57eb0961f0226fafaafaed31b56f00f074994d4a7e6f29dfbc5a97f9eb9c10a2d95ae10f6af5bdef8f3e9a5caf327ee345b5cc3ffa2504af2e2ea9f7d3e56c5515cbf6a45a2ef32906448df04233cfea7cf6525a3d2f966f5fe91ceaf7f99bec82c07df7eeeffbd18c5ab4c522ff786f676f777b776f7b6ff7cdcec1ef7eeff8de7dfa67776fbc73b0b3f7f0feee4f7dfcfb7e84ae9bb76be0a79347345aceb27af6d12ff925047699bf6bd1db478f96ebb2fc","25ff0f4fd2ff4c7e020000"], [ - '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,Accept-Encoding', - 'x-ms-request-id', - '5475f7bf-8680-4a3f-a4ee-f58a9ba44ffe', - 'request-id', - '5475f7bf-8680-4a3f-a4ee-f58a9ba44ffe', - 'elapsed-time', - '318', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-ratelimit-remaining-subscription-reads', - '11998', - 'x-ms-correlation-request-id', - '1f11eb65-a233-401b-a427-f010b56d97a8', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211221T083516Z:1f11eb65-a233-401b-a427-f010b56d97a8', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Tue, 21 Dec 2021 08:35:15 GMT' -]); diff --git a/sdk/search/arm-search/src/searchManagementClient.ts b/sdk/search/arm-search/src/searchManagementClient.ts index 59e4d9de3e20..a0fbd0d24751 100644 --- a/sdk/search/arm-search/src/searchManagementClient.ts +++ b/sdk/search/arm-search/src/searchManagementClient.ts @@ -61,7 +61,7 @@ export class SearchManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-search/3.0.0`; + const packageDetails = `azsdk-js-arm-search/1.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/search/arm-search/test/sampleTest.ts b/sdk/search/arm-search/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/search/arm-search/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!"); + }); +}); diff --git a/sdk/search/arm-search/test/search_examples.ts b/sdk/search/arm-search/test/search_examples.ts deleted file mode 100644 index 45002a6fc89b..000000000000 --- a/sdk/search/arm-search/test/search_examples.ts +++ /dev/null @@ -1,127 +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 { SearchManagementClient } from "../src/searchManagementClient"; - -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("Search test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: SearchManagementClient; - let location: string; - let resourceGroup: string; - let searchServiceName: string; - let keyname: 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 SearchManagementClient(credential, subscriptionId); - location = "eastus"; - resourceGroup = "myjstest"; - searchServiceName = "myjssearchservicexx" - keyname = "testjskey"; - }); - - afterEach(async function() { - await recorder.stop(); - }); - - it("services create test", async function() { - const res = await client.services.beginCreateOrUpdateAndWait(resourceGroup,searchServiceName,{ - location: location, - replicaCount: 1, - partitionCount: 1, - hostingMode: "default", - sku: { - name: "standard" - } - }); - assert.equal(res.name,searchServiceName); - }); - - it("services get test", async function() { - const res = await client.services.get(resourceGroup,searchServiceName); - assert.equal(res.name,searchServiceName); - }); - - it("services list test", async function() { - const resArray = new Array(); - for await (let item of client.services.listByResourceGroup(resourceGroup)){ - resArray.push(item); - } - assert.equal(resArray.length,1); - }); - - it("queryKeys create test", async function() { - const res = await client.queryKeys.create(resourceGroup,searchServiceName,keyname); - assert.notEqual(res.key,""); - }); - - it("queryKeys list test", async function() { - const resArray = new Array(); - for await (let item of client.queryKeys.listBySearchService(resourceGroup,searchServiceName)){ - resArray.push(item); - } - assert.equal(resArray.length,2); - }); - - it("queryKeys delete test", async function() { - const res = await client.queryKeys.delete(resourceGroup,searchServiceName,keyname); - const resArray = new Array(); - for await (let item of client.queryKeys.listBySearchService(resourceGroup,searchServiceName)){ - resArray.push(item); - } - assert.equal(resArray.length,2); - }); - - it("services delete test", async function() { - const res = await client.services.delete(resourceGroup,searchServiceName); - const resArray = new Array(); - for await (let item of client.services.listByResourceGroup(resourceGroup)){ - resArray.push(item); - } - assert.equal(resArray.length,0); - }); -});