diff --git a/sdk/attestation/arm-attestation/CHANGELOG.md b/sdk/attestation/arm-attestation/CHANGELOG.md deleted file mode 100644 index 65f261fb0a90..000000000000 --- a/sdk/attestation/arm-attestation/CHANGELOG.md +++ /dev/null @@ -1,21 +0,0 @@ -# Release History - -## 2.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 2.0.0 (2021-12-30) - -The package of @azure/arm-attestation is using our next generation design principles since version 2.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/attestation/arm-attestation/LICENSE b/sdk/attestation/arm-attestation/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/attestation/arm-attestation/LICENSE +++ b/sdk/attestation/arm-attestation/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/attestation/arm-attestation/README.md b/sdk/attestation/arm-attestation/README.md index 1c48c56e9592..d0a51ea3a78d 100644 --- a/sdk/attestation/arm-attestation/README.md +++ b/sdk/attestation/arm-attestation/README.md @@ -6,7 +6,7 @@ Various APIs for managing resources in attestation service. This primarily encom [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/attestation/arm-attestation) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-attestation) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-attestation) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-attestation?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/attestation/arm-attestation/_meta.json b/sdk/attestation/arm-attestation/_meta.json index 1c9145ea2976..b5789281ec59 100644 --- a/sdk/attestation/arm-attestation/_meta.json +++ b/sdk/attestation/arm-attestation/_meta.json @@ -1,7 +1,7 @@ { - "commit": "54ee1a9eb50c13e0790627749f986c886ad4f4db", + "commit": "6acc7e2e59b3777da22e417149d0c71d05054bff", "readme": "specification/attestation/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/attestation/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/attestation/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/attestation/arm-attestation/package.json b/sdk/attestation/arm-attestation/package.json index f028812aa3a9..c9e18f849d59 100644 --- a/sdk/attestation/arm-attestation/package.json +++ b/sdk/attestation/arm-attestation/package.json @@ -3,10 +3,8 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AttestationManagementClient.", - "version": "2.0.1", - "engines": { - "node": ">=12.0.0" - }, + "version": "1.0.0-beta.1", + "engines": { "node": ">=12.0.0" }, "dependencies": { "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.0.0", @@ -14,13 +12,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", @@ -47,9 +39,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/attestation/arm-attestation/recordings/node/attestation_test/recording_attestationproviders_create_test.js b/sdk/attestation/arm-attestation/recordings/node/attestation_test/recording_attestationproviders_create_test.js deleted file mode 100644 index c9008cee2875..000000000000 --- a/sdk/attestation/arm-attestation/recordings/node/attestation_test/recording_attestationproviders_create_test.js +++ /dev/null @@ -1,147 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "9ce42a0ead77b05ef4fbb8767344b21f"; - -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', - '22bae914-ff50-4d80-9999-fb66d30f3100', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AtR34GHImEtNpGeNzcHI8ps; expires=Sat, 29-Jan-2022 03:19:09 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrf2AwpacadoKvdkk3h__G1OowUB3noBTyr575daor6sG9x3NPVTK_vMRSZ4F4VPqn4E3Hv5a4eLGAuzvR7AIEKTDHBwwWbIhmfJLP6r0Zff5NrZsfnlGDbYsXfam6AbNmQcZCJGm5tMp224xNrpSPTM3ikj1GUGklQb4jloDdFdYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 30 Dec 2021 03:19:09 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', - 'f9d8b77c-5495-4058-a16d-afdd5c4c4f00', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AmKamCK0ApNElq9nSHL7SxE; expires=Sat, 29-Jan-2022 03:19:09 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrENahb0E9MXNroLowxj0aMhZCoJjtisj9V8yPEK0BNeLDXSoatWyEPcpZyIMyMxZvwo-UkscmaR2ZDKIH3sWK-sEwbdir-8l7lbTTakFYgplX_iFj0V39sh92ZSrb_-iyjGZDC_2TJE8BfRzNyrSjzAy81jjE8MAGwvHF1mDXr2ggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 30 Dec 2021 03:19:09 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=861286a2-3a9c-4471-8891-3f2cec65db3d&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', - 'c8a5e3e9-f35c-4dbc-a255-5341a6854f00', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=An59P9eGnf5Ogan486P5dIHLj78gAQAAAC4cX9kOAAAA; expires=Sat, 29-Jan-2022 03:19:10 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 30 Dec 2021 03:19:10 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Attestation/attestationProviders/myservicexxx', {"location":"eastus","properties":{}}) - .query(true) - .reply(201, {"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Attestation/attestationProviders/myservicexxx","name":"myservicexxx","type":"Microsoft.Attestation/attestationProviders","location":"eastus","properties":{"trustModel":"AAD","status":"Ready","attestUri":"https://myservicexxx.eus.attest.azure.net"}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '351', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Location', - 'https://myservicexxx.eus.attest.azure.net/', - 'x-ms-ratelimit-remaining-subscription-writes', - '1199', - 'x-ms-request-id', - '00-63c7b0ce4101ea4ea05daccbdeae3f85-8ac5553a9aac1242-01', - 'x-ms-maa-service-version', - '1.10.01780.0001', - 'Server', - 'Kestrel', - 'x-ms-correlation-request-id', - 'ccb67430-6c60-422c-a5ca-51e6f0e7f675', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211230T031918Z:ccb67430-6c60-422c-a5ca-51e6f0e7f675', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 30 Dec 2021 03:19:18 GMT' -]); diff --git a/sdk/attestation/arm-attestation/recordings/node/attestation_test/recording_attestationproviders_delete_test.js b/sdk/attestation/arm-attestation/recordings/node/attestation_test/recording_attestationproviders_delete_test.js deleted file mode 100644 index 2280721007c8..000000000000 --- a/sdk/attestation/arm-attestation/recordings/node/attestation_test/recording_attestationproviders_delete_test.js +++ /dev/null @@ -1,177 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "7ed884d7172fb255a1bc6015b496565b"; - -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', - 'cc627666-e0af-4a19-bdb7-d110aeae4200', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AtHEhSZNXIRIjbqFE_EFjIM; expires=Sat, 29-Jan-2022 03:19:24 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_9b10xe2fGr0C5GLm9e1spsqkWS-0iTTXh6pGoiDKUO9Pst5TBqeFY3hYWCj0Mb3LdvIOrJFWKtmNsDl8CMRlx-0t6wmDYLlncjYbgLvalIjIDACHZJoGLPwKAW8OTWBnUSS93J6UDfGhE9lB4uMlcT9dObLgdx6KplClV5ILLAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 30 Dec 2021 03:19:24 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '22bae914-ff50-4d80-9999-fb661b103100', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Agaxp5np3StAlIbqK_SVBt8; expires=Sat, 29-Jan-2022 03:19:24 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrX4KzJHO3LglT0HH93vO54GESPJqMjhAWiLlWLJ60wBkUj7KTzdl3f2Q3wEcr_Kj-dBF5dVs5in1yhhV4CTpLNB-xBPHBF065P5PUhSAIPUnq_vAJjZ3CEwhX5BMa__lhEYgLcsikMuUvQK8r8P--W-Y0oNb3IbL9ee_vSFStXREgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 30 Dec 2021 03:19:24 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.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=4ce40030-93e9-4cc9-bc01-fa72baae571b&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', - 'f9d8b77c-5495-4058-a16d-afddac4c4f00', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AqYWwVegETRDm6Egl6fjnXbLj78gAQAAADwcX9kOAAAA; expires=Sat, 29-Jan-2022 03:19:24 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 30 Dec 2021 03:19:24 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Attestation/attestationProviders/myservicexxx') - .query(true) - .reply(200, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Expires', - '-1', - 'x-ms-request-id', - '00-a6af2bbc153e18489669b95183497e2e-3735a1a227d5d840-01', - 'x-ms-maa-service-version', - '1.10.01780.0001', - 'Server', - 'Kestrel', - 'x-ms-ratelimit-remaining-subscription-deletes', - '14999', - 'x-ms-correlation-request-id', - '397b49d1-8e61-4675-b4c9-b84e5cb3c9fe', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211230T031932Z:397b49d1-8e61-4675-b4c9-b84e5cb3c9fe', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 30 Dec 2021 03:19:32 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Attestation/attestationProviders') - .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', - 'e5b3e22d-48d7-424c-938e-4cce568251a2', - 'x-ms-correlation-request-id', - 'e5b3e22d-48d7-424c-938e-4cce568251a2', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211230T031932Z:e5b3e22d-48d7-424c-938e-4cce568251a2', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 30 Dec 2021 03:19:32 GMT', - 'Content-Length', - '133' -]); diff --git a/sdk/attestation/arm-attestation/recordings/node/attestation_test/recording_attestationproviders_get_test.js b/sdk/attestation/arm-attestation/recordings/node/attestation_test/recording_attestationproviders_get_test.js deleted file mode 100644 index c7d04104cba1..000000000000 --- a/sdk/attestation/arm-attestation/recordings/node/attestation_test/recording_attestationproviders_get_test.js +++ /dev/null @@ -1,149 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "8d0623430faa706bfcf3d97f04ab4594"; - -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', - 'f9d8b77c-5495-4058-a16d-afdd814c4f00', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=Arq6eKxUeNJNpWfYLnbPg2Y; expires=Sat, 29-Jan-2022 03:19:18 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrTiGJIFNIC2neIlhJyYHHv5MGLBZjGMoAfTA01s6rUkyzHsx-e9mfE2x0IRSoz9SA7MA1a6R7_5g_RQNsqOgd2EbUiuVyzIfrkR3l4PkPXrjRGFQnQd5EsboSpUHV2tiP2dOt54-nyisasEuD3afux99j-DlRdwjnBaTb3GQ-D2UgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 30 Dec 2021 03:19: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', - 'cc627666-e0af-4a19-bdb7-d1108aae4200', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AhBi7lWmL_xOl59GMHg9hps; expires=Sat, 29-Jan-2022 03:19:19 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr46-N6DR6Nq76tA5h6uucmllcBbJlQCmIPpXXwvHJxo8KMvbIRLz8jkWhTXxnSi5vzp1BB4ty_c3eqGyLqNQ_2ZoiM18MYP4vmXiFNOqUr3mLMFyRz0fvjHw4UEEDZGRYNqFkcZVysLfnPkmGs7cMhDyO-vmfsRoS8wJ5bR3PwEQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 30 Dec 2021 03:19: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=b193a4ee-3b62-4cf5-bbab-da4942265901&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', - 'c8a5e3e9-f35c-4dbc-a255-5341e1854f00', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AudsgMvVuHFKor-gRytqnG_Lj78gAQAAADYcX9kOAAAA; expires=Sat, 29-Jan-2022 03:19: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', - 'Thu, 30 Dec 2021 03:19:19 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Attestation/attestationProviders/myservicexxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e8f5b7c9501faddccfdfed2365d5c37797d594cf377efde7d34fa68992d7242abf3697bbdc2a7b7074bef94d5943fa3f7f2ac69d7f88c305ce5755be4cd478f7ef1476dbd6eda2faa595e529be3e3a7d40070a8e5a38f5ee5d9ec9a3e10e05fd5057d366fdb55f3e86e80f2385f37636934ce7eb0aef3f1326f3ffa25bf","e4ff01c03d39285f010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-ratelimit-remaining-subscription-reads', - '11999', - 'x-ms-request-id', - '00-cad15b21a3301841a124d363ac5a2f17-dbce01cb5e362443-01', - 'x-ms-maa-service-version', - '1.10.01780.0001', - 'Server', - 'Kestrel', - 'x-ms-correlation-request-id', - '1b7a50a2-03c1-4232-a7af-b09a7e07f6bd', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211230T031919Z:1b7a50a2-03c1-4232-a7af-b09a7e07f6bd', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 30 Dec 2021 03:19:19 GMT' -]); diff --git a/sdk/attestation/arm-attestation/recordings/node/attestation_test/recording_attestationproviders_list_test.js b/sdk/attestation/arm-attestation/recordings/node/attestation_test/recording_attestationproviders_list_test.js deleted file mode 100644 index 7935523f09ca..000000000000 --- a/sdk/attestation/arm-attestation/recordings/node/attestation_test/recording_attestationproviders_list_test.js +++ /dev/null @@ -1,149 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "997d2ddde2d9fba547675efc3ccedb49"; - -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', - 'f9d8b77c-5495-4058-a16d-afdd894c4f00', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AjSPVu2ix8FHoqp2qcohtXQ; expires=Sat, 29-Jan-2022 03:19:19 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrM1nPz0jsdma0FOgYiyaimn22skShuouOcCrlcw0qYLHUFaGbLwcvd5OkJskLHSmuK1Q3XLMZHjNHkjBAbCEigqcjRP32Qm3oSnE6ziaUVnlrc--QfgcnUAy8EOThevBCEOBy0h8Q6AGuUeKIxdF1YiHw9O6IEn4VebN_blIu_bAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 30 Dec 2021 03:19:19 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'eecc4b7d-edeb-42ed-9476-136542594300', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AjLG9oVQlYtKmIhNO9HlDxU; expires=Sat, 29-Jan-2022 03:19:20 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrKOx3mnqHOu4g2eHlxfQuop5BA-EhZwr7IjwseYhe49pucoKwi9Um8rUNhpUV8Vt5xIy_RKJWJnJ8EXYHfIv0yhhs7_-T1vRvCPn1WOw3jEALA5LoflHLcP7VkCWUeKlWOoDYxsdN3mJLr5imvjgAdleUCfsFfE6zRY1jLouEod4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 30 Dec 2021 03:19:19 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.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=df820000-9886-4608-ab2a-240a55091c0a&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', - 'cc627666-e0af-4a19-bdb7-d11095ae4200', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ahku6TkXY7FHvfnOnqbyC2zLj78gAQAAADccX9kOAAAA; expires=Sat, 29-Jan-2022 03:19: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', - 'Thu, 30 Dec 2021 03:19:20 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Attestation/attestationProviders') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffc5131fbe8d147779bf5a499d6c5aa2daa6573f7e1def9c3fbb383f3ed7bd34f1f6cefefeeed6f3fdc9d3ed83e989eef3c98ce26e77bfbbb77ebbca9d6f534ffbcaed6abe6eee2faa79b366fdabbabbaba2c6679dddcfda298d655539db7e3e3165f65807e3773bfbfb44d17d74d5e5f16d3fcddbb771f8d3e5a660bc2eea3cea7edf50a9fde1e2cbd535653fe8cdecbb3a65de333c27095d76d91371f3dfac51fb5f5ba69bfa86679496d8e8f9f5203c0a1968f3e7a9567b36bfa40807f5517f4d9bc6d57cda3bb01cae37cdd8ca5d138fbc1bacec7cbbcfde897fc92efff","92ff074913c0a86b010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-ratelimit-remaining-subscription-reads', - '11998', - 'x-ms-request-id', - '00-733acc6d69bc6546a94fcc8c4c57140e-cf84e900f13ed74c-01', - 'x-ms-maa-service-version', - '1.10.01780.0001', - 'Server', - 'Kestrel', - 'x-ms-correlation-request-id', - '07d0e5d1-54f4-4b6a-bc36-e052c6331416', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211230T031920Z:07d0e5d1-54f4-4b6a-bc36-e052c6331416', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 30 Dec 2021 03:19:20 GMT' -]); diff --git a/sdk/attestation/arm-attestation/recordings/node/attestation_test/recording_attestationproviders_update_test.js b/sdk/attestation/arm-attestation/recordings/node/attestation_test/recording_attestationproviders_update_test.js deleted file mode 100644 index 1dd650d75a7c..000000000000 --- a/sdk/attestation/arm-attestation/recordings/node/attestation_test/recording_attestationproviders_update_test.js +++ /dev/null @@ -1,149 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "af7f256d9ab552cba33986c57f7f53ea"; - -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', - 'cc627666-e0af-4a19-bdb7-d11099ae4200', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Au0hl0x6C-xOll5vgsB9Rlk; expires=Sat, 29-Jan-2022 03:19:20 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLvqEid8XmwmMlrex8vhoJYY0ccHUhaUcTo5S1vAlgZmQW24MykVtYlrLdQ2jJZ3Gh9ZVpTsKk6NfdeXNejZhFaxXY62WEFKqKFuEJXjwmVKXLJx3gg3yczSCUxBpNE086hSlb-mCyYqb6_v5mN0F8uWxpxnevpwAUfwc91Mc9_ogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 30 Dec 2021 03:19: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', - '22bae914-ff50-4d80-9999-fb6605103100', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Aj_sL1_t78pPuxoF1q__XN4; expires=Sat, 29-Jan-2022 03:19:21 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrMVJs1FDMQGJaJc8sgQB0YiSNQhyfnnUeKc5G3Whs5B4jDogpAWn_xDQtat_BLg1c5HggkVBj2XlKCyiImDUVb62g-VSQbZhhTFLQ2yFpDsbShZ2xx7ajn6xYs_-uWPGeHS6JXnU8fzon___X5OOu1fjkFJs9PAjO-TdWnepRiN4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 30 Dec 2021 03:19: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=3bea3839-d563-41ed-8f2e-e0bc8b4fe672&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', - 'cc627666-e0af-4a19-bdb7-d1109cae4200', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AnKkc5p9DmBPp9z3Ika463vLj78gAQAAADgcX9kOAAAA; expires=Sat, 29-Jan-2022 03:19:21 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 30 Dec 2021 03:19:21 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .patch('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Attestation/attestationProviders/myservicexxx', {"tags":{"tag1":"value1","tag2":"value2"}}) - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e8f5b7c9501faddccfdfed2365d5c37797d594cf377efde7d34fa68992d7242abf3697bbdc2a7b7074bef94d5943fa3f7f2ac69d7f8accd2e9a8f1efd62fcdca5cf2fb3729defcae77be6efbd8f7ec9e8231aca2aafdb2297e6f5ba69bfa86679498d8e8f9fd21be890403efae8559ecdaee903c1e2abbaa0cfe66dbb6a1edd0dc636ced7cd581a8db31faceb7cbcccdb8f7ec9","2ff97f004cb4757388010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-ratelimit-remaining-subscription-writes', - '1198', - 'x-ms-request-id', - '00-115b09fbc7e208438e5660815f24fed9-c85ad0217d0b1e43-01', - 'x-ms-maa-service-version', - '1.10.01780.0001', - 'Server', - 'Kestrel', - 'x-ms-correlation-request-id', - 'aee3de3c-64c4-4de7-9169-bcf1faaa09d2', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211230T031924Z:aee3de3c-64c4-4de7-9169-bcf1faaa09d2', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 30 Dec 2021 03:19:24 GMT' -]); diff --git a/sdk/attestation/arm-attestation/src/attestationManagementClient.ts b/sdk/attestation/arm-attestation/src/attestationManagementClient.ts index 373d73b0fb5d..aa9ce1e2a62e 100644 --- a/sdk/attestation/arm-attestation/src/attestationManagementClient.ts +++ b/sdk/attestation/arm-attestation/src/attestationManagementClient.ts @@ -52,7 +52,7 @@ export class AttestationManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-attestation/2.0.0`; + const packageDetails = `azsdk-js-arm-attestation/1.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/attestation/arm-attestation/test/attestation_examples.ts b/sdk/attestation/arm-attestation/test/attestation_examples.ts deleted file mode 100644 index 7b619a68b5d4..000000000000 --- a/sdk/attestation/arm-attestation/test/attestation_examples.ts +++ /dev/null @@ -1,104 +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 { AttestationManagementClient } from "../src/attestationManagementClient"; - -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("Attestation test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: AttestationManagementClient; - let location: string; - let resourceGroup: string; - let providerName: 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 AttestationManagementClient(credential, subscriptionId); - location = "eastus"; - resourceGroup = "myjstest"; - providerName = "myservicexxx"; - }); - - afterEach(async function() { - await recorder.stop(); - }); - - it("attestationProviders create test", async function() { - const res = await client.attestationProviders.create(resourceGroup,providerName,{ - properties: { - - }, - location: location - }) - assert.equal(res.name,providerName); - }); - - it("attestationProviders get test", async function() { - const res = await client.attestationProviders.get(resourceGroup,providerName) - assert.equal(res.name,providerName); - }); - - it("attestationProviders list test", async function() { - const res = await client.attestationProviders.listByResourceGroup(resourceGroup) - assert.notEqual(res.value?.length,0); - }); - - it("attestationProviders update test", async function() { - const res = await client.attestationProviders.update(resourceGroup,providerName,{ - tags: { - tag1: "value1", - tag2: "value2" - } - }) - assert.equal(res.type,"Microsoft.Attestation/attestationProviders") - }); - - it("attestationProviders delete test", async function() { - const resDelete = await client.attestationProviders.delete(resourceGroup,providerName) - const res = await client.attestationProviders.listByResourceGroup(resourceGroup) - assert.equal(res.value?.length,0); - }); -}); diff --git a/sdk/attestation/arm-attestation/test/sampleTest.ts b/sdk/attestation/arm-attestation/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/attestation/arm-attestation/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!"); + }); +});