From fc97408b4dfbee8d7d1523e07e75017a09da132f Mon Sep 17 00:00:00 2001 From: KarishmaGhiya Date: Fri, 11 Jun 2021 14:58:57 -0700 Subject: [PATCH] Updating identity v2 beta versions for identity tests and reverting to GA version v1 for samples (#15654) Co-authored-by: Jeremy Meng --- common/config/rush/pnpm-lock.yaml | 16 +- .../container-registry/package.json | 5 +- ...ding_deletes_repository_of_given_name.json | 4 +- .../recording_should_list_repositories.json | 4 +- ...ing_should_list_repositories_by_pages.json | 4 +- ...ories_by_pages_with_continuationtoken.json | 4 +- .../recording_deletes_a_given_tag.json | 4 +- .../recording_sets_manifest_properties.json | 4 +- .../recording_sets_repository_properties.json | 4 +- .../recording_sets_tag_properties.json | 4 +- ...ording_should_list_registry_manifests.json | 4 +- ...ould_list_registry_manifests_by_pages.json | 4 +- ...fests_by_pages_with_continuationtoken.json | 4 +- .../recording_should_list_tags.json | 4 +- .../recording_should_list_tags_by_pages.json | 4 +- ..._tags_by_pages_with_continuationtoken.json | 4 +- ...stry_artifact_properties_for_a_digest.json | 4 +- ...egistry_artifact_properties_for_a_tag.json | 4 +- ...cording_should_retrive_tag_properties.json | 4 +- ...list_repositories_with_anonymous_access.js | 20 +- ...etting_properties_with_anonymous_access.js | 22 +- ...ording_deletes_repository_of_given_name.js | 188 ++++++++++------ .../recording_should_list_repositories.js | 160 ++++++++----- ...rding_should_list_repositories_by_pages.js | 192 +++++++++------- ...itories_by_pages_with_continuationtoken.js | 156 ++++++++----- .../recording_deletes_a_given_tag.js | 180 +++++++++------ .../recording_sets_manifest_properties.js | 210 ++++++++++-------- .../recording_sets_repository_properties.js | 206 ++++++++++------- .../recording_sets_tag_properties.js | 204 ++++++++++------- ...ecording_should_list_registry_manifests.js | 156 ++++++++----- ...should_list_registry_manifests_by_pages.js | 190 +++++++++------- ...nifests_by_pages_with_continuationtoken.js | 156 ++++++++----- .../recording_should_list_tags.js | 158 ++++++++----- .../recording_should_list_tags_by_pages.js | 188 +++++++++------- ...st_tags_by_pages_with_continuationtoken.js | 156 ++++++++----- ...gistry_artifact_properties_for_a_digest.js | 158 ++++++++----- ..._registry_artifact_properties_for_a_tag.js | 184 +++++++++------ ...recording_should_retrive_tag_properties.js | 156 ++++++++----- .../samples/v1/javascript/package.json | 2 +- .../samples/v1/typescript/package.json | 2 +- .../container-registry/test/public/utils.ts | 2 +- sdk/eventhub/event-hubs/package.json | 2 +- .../manual-integration/AzureArc/package.json | 2 +- .../AzureFunctions/IdentityTest/package.json | 2 +- .../manual-integration/AzureVM/package.json | 2 +- .../Cloudshell/package.json | 2 +- .../Kubernetes/package.json | 2 +- .../jobs/triggered/AzureTestJob/package.json | 2 +- .../identity/test/manual/package.json | 2 +- sdk/servicebus/service-bus/package.json | 3 + .../samples/v7/javascript/package.json | 2 +- .../samples/v7/typescript/package.json | 2 +- 52 files changed, 1887 insertions(+), 1271 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 9132e74650f9..97205b99254e 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -8909,7 +8909,7 @@ packages: '@azure/arm-containerregistry': 8.0.0 '@azure/core-rest-pipeline': 1.1.0-beta.1 '@azure/core-tracing': 1.0.0-preview.11 - '@azure/identity': 1.3.0 + '@azure/identity': 2.0.0-beta.3 '@azure/ms-rest-nodeauth': 3.0.9 '@microsoft/api-extractor': 7.7.11 '@types/chai': 4.2.16 @@ -8948,7 +8948,7 @@ packages: dev: false name: '@rush-temp/container-registry' resolution: - integrity: sha512-p4mX6xzBEEIe41EWy81HV6pIu2ydk+5nJj+d6GAaBR7H1IGPdSl2uLjaYlWtJ9TxoYU/ASVIGHR6bNJIF02eLw== + integrity: sha512-QouuefNRLXCFQblW4AJe0BnbbRHNKH8/I+DUwy+LQVdEEjrNtjKYCiKdaXbcZ2jNfkmyn78HyNFl+z5M1rQHYQ== tarball: file:projects/container-registry.tgz version: 0.0.0 file:projects/core-amqp.tgz: @@ -9008,7 +9008,7 @@ packages: dev: false name: '@rush-temp/core-amqp' resolution: - integrity: sha512-9zjqL46fRM2kqzdfrnWpDlmT3T6kUjNqWHnPqISX2xTSY8+psbFNEqOhPLDdDBuxBEfTE/5GGTFsDZ7fMkDQjw== + integrity: sha512-DQDDdlUNHMmpRlG6caPZ4+SUEo6zFuUIE4Dvv1ghJFWD/lxm9SzNfcv85/RNyskUPaOTx3od2MvVaxDTXcty7w== tarball: file:projects/core-amqp.tgz version: 0.0.0 file:projects/core-asynciterator-polyfill.tgz: @@ -9764,7 +9764,7 @@ packages: file:projects/event-hubs.tgz: dependencies: '@azure/core-tracing': 1.0.0-preview.11 - '@azure/identity': 1.3.0_debug@4.3.1 + '@azure/identity': 2.0.0-beta.3_debug@4.3.1 '@microsoft/api-extractor': 7.7.11 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-inject': 4.0.2_rollup@1.32.1 @@ -9831,7 +9831,7 @@ packages: dev: false name: '@rush-temp/event-hubs' resolution: - integrity: sha512-IdGKdBp1RaSCHv6TyLTm++5mAxfSRmcOTXDUZypfWSicVFiAjxal5S1JpfVufCF8woX35aDylWoK8caTTF7v5Q== + integrity: sha512-putr/O04ZscqHN1rvaNrfm2HsxhcDt0nUbV9/TVdq8Er9Pslo5TIWoSUNUzQpGdlTNhbycWXQJj4l0gmhqB79g== tarball: file:projects/event-hubs.tgz version: 0.0.0 file:projects/event-processor-host.tgz: @@ -9939,7 +9939,7 @@ packages: dev: false name: '@rush-temp/eventgrid' resolution: - integrity: sha512-uPwpxSWuymminStHgz0LNgqfYlykhomLYp0UyhHB85Kg2tCibv0WGFjgSkZGZ96dOJvW8p/Gp9HsH3LVsep+RA== + integrity: sha512-/RgJSuz6c87e+n2FEa7zgJUl04gJuqumc0UrRj8fsxOsbGnbvdQKxlMxphxfB3lKOpOeBSF1Kuoh8YLKqZ2MUw== tarball: file:projects/eventgrid.tgz version: 0.0.0 file:projects/eventhubs-checkpointstore-blob.tgz: @@ -10630,7 +10630,7 @@ packages: dev: false name: '@rush-temp/perf-core-rest-pipeline' resolution: - integrity: sha512-KGbqhqsPgPr22oqNu65R+L8VwqyHcc2busi/fV3YZcxr8/RZnTNQDFaFycuwjgauipLSIYzBT0cRDLTgHQlNFw== + integrity: sha512-5n3tnNiNOrNxzsVwQa9XvHDyNkTpTb1eFa6yGlN/WReZq7IJxGWxKg7cYbmjFcS03IasRra9mupC47Zvru5RBQ== tarball: file:projects/perf-core-rest-pipeline.tgz version: 0.0.0 file:projects/perf-eventgrid.tgz: @@ -10734,7 +10734,7 @@ packages: dev: false name: '@rush-temp/perf-search-documents' resolution: - integrity: sha512-vto+WmpYpTy+yNMdR+g3U9OY/Lcoio6fcu314co/ljL87SzzF9+afvQd8VCU7ihjstRViRjLvArufr4KvfUCXg== + integrity: sha512-kzjwsdTW3N7Er4646OhhL4DxVUYryhkGyqsVGK1DiAUKOYA9pnuOH9258dRo9ZG744UfG8aGNDTIyHtph46SWQ== tarball: file:projects/perf-search-documents.tgz version: 0.0.0 file:projects/perf-storage-blob.tgz: diff --git a/sdk/containerregistry/container-registry/package.json b/sdk/containerregistry/container-registry/package.json index e9c303532d87..4d362c40db1f 100644 --- a/sdk/containerregistry/container-registry/package.json +++ b/sdk/containerregistry/container-registry/package.json @@ -91,7 +91,7 @@ "devDependencies": { "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/identity": "^1.1.0", + "@azure/identity": "2.0.0-beta.4", "@azure/ms-rest-nodeauth": "^3.0.8", "@azure/test-utils-recorder": "^1.0.0", "@microsoft/api-extractor": "7.7.11", @@ -137,6 +137,9 @@ ], "requiredResources": { "Azure Container Registry": "https://docs.microsoft.com/azure/container-registry/container-registry-get-started-portal" + }, + "dependencyOverrides": { + "@azure/identity": "^1.3.0" } } } diff --git a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_deletes_repository_of_given_name.json b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_deletes_repository_of_given_name.json index dfe01666d462..c85028119822 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_deletes_repository_of_given_name.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_deletes_repository_of_given_name.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -47,7 +47,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories.json b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories.json index faef7e94535c..a52b875499b9 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -47,7 +47,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages.json b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages.json index 76f799fc69f9..afbaed884788 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -49,7 +49,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.json b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.json index 11c04c669e65..5e916219d554 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -51,7 +51,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_deletes_a_given_tag.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_deletes_a_given_tag.json index 4e0cd29b8865..5c5079a96143 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_deletes_a_given_tag.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_deletes_a_given_tag.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -47,7 +47,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_manifest_properties.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_manifest_properties.json index b69a62f6f936..df3e2c1a4fb2 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_manifest_properties.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_manifest_properties.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -47,7 +47,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_repository_properties.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_repository_properties.json index 759e60d1a8a8..b46522c10e41 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_repository_properties.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_repository_properties.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -47,7 +47,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_tag_properties.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_tag_properties.json index 404b399fc52c..bd40c892e7b2 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_tag_properties.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_sets_tag_properties.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -47,7 +47,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests.json index a75d07552a9f..a7eb7abe8afd 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -47,7 +47,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.json index b580286cc410..ca4fb0b075db 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -49,7 +49,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.json index 72319960b2c1..ad653b34529c 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -51,7 +51,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags.json index 88dd71d1ec47..aa943b604830 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -47,7 +47,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages.json index 1a8cdf589312..bd6ac658ade5 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -49,7 +49,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.json index 50fbd7ad0fc5..56a99615e0c5 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -51,7 +51,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.json index 2843e7057aae..1c52bec11a0f 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -47,7 +47,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.json index 3d6b481d0cc9..7ee901c4c9fd 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -47,7 +47,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_tag_properties.json b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_tag_properties.json index 6db6c8461409..95821a7a2d46 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_tag_properties.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/repository_and_artifact_tests/recording_should_retrive_tag_properties.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, @@ -47,7 +47,7 @@ }, { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, diff --git a/sdk/containerregistry/container-registry/recordings/node/anonymous_access_tests/recording_should_list_repositories_with_anonymous_access.js b/sdk/containerregistry/container-registry/recordings/node/anonymous_access_tests/recording_should_list_repositories_with_anonymous_access.js index b0f3383ae590..7e417734d29e 100644 --- a/sdk/containerregistry/container-registry/recordings/node/anonymous_access_tests/recording_should_list_repositories_with_anonymous_access.js +++ b/sdk/containerregistry/container-registry/recordings/node/anonymous_access_tests/recording_should_list_repositories_with_anonymous_access.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "3a37cbbea59193aa25c1ea185e7b6448"; +module.exports.hash = "f524cc3eaf0f0c60159570d26aaf8719"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -10,13 +10,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Thu, 06 May 2021 00:21:32 GMT', + 'Fri, 11 Jun 2021 20:57:33 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '196', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -34,7 +34,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '70dcc8af-b0d7-41dc-8c65-d6136577dd41', + 'e2950b84-1712-4c00-84d4-77be9e42debc', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -45,15 +45,15 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Thu, 06 May 2021 00:21:32 GMT', + 'Fri, 11 Jun 2021 20:57:33 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '1d72c6e8-fb90-405b-94a8-20699cf47782', + '058a0ddf-a3a0-460f-8a06-03a49417dd9e', 'x-ms-ratelimit-remaining-calls-per-second', '166.65', 'Strict-Transport-Security', @@ -66,13 +66,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Thu, 06 May 2021 00:21:33 GMT', + 'Fri, 11 Jun 2021 20:57:33 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '105', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -88,7 +88,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '6f2bc303-166e-47a5-8633-c65029e75f61', + 'b73f1251-5994-48bf-8823-aead2c5e9f3e', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/anonymous_access_tests/recording_should_throw_error_setting_properties_with_anonymous_access.js b/sdk/containerregistry/container-registry/recordings/node/anonymous_access_tests/recording_should_throw_error_setting_properties_with_anonymous_access.js index dde3dbdf56d9..b4d019210d34 100644 --- a/sdk/containerregistry/container-registry/recordings/node/anonymous_access_tests/recording_should_throw_error_setting_properties_with_anonymous_access.js +++ b/sdk/containerregistry/container-registry/recordings/node/anonymous_access_tests/recording_should_throw_error_setting_properties_with_anonymous_access.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "3ddd257bb6e84c712cd921c95b1ee28c"; +module.exports.hash = "36127f43aefa7c87e3b14a44690b4280"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -10,13 +10,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Thu, 27 May 2021 19:53:01 GMT', + 'Fri, 11 Jun 2021 20:57:33 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '223', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -34,7 +34,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '5d94de76-e04e-456c-8200-d63f5a95f6e7', + '1734fa53-7c6c-4b4b-a394-75314e76f0d4', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -45,17 +45,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Thu, 27 May 2021 19:53:01 GMT', + 'Fri, 11 Jun 2021 20:57:33 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'af5dd94e-ab57-4efc-b52a-d4b673d814c2', + '57a8d0e2-4dc6-407c-91f7-2861b5cf845e', 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', + '166.633333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -66,13 +66,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Thu, 27 May 2021 19:53:01 GMT', + 'Fri, 11 Jun 2021 20:57:33 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '223', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -90,7 +90,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'df4d1ff8-4f9d-423a-9801-fbd6a5015c3b', + '2979fcf4-0622-4fa4-8737-16be8106300e', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_deletes_repository_of_given_name.js b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_deletes_repository_of_given_name.js index 0e9c656812fd..49b1b0cb641b 100644 --- a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_deletes_repository_of_given_name.js +++ b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_deletes_repository_of_given_name.js @@ -1,57 +1,22 @@ let nock = require('nock'); -module.exports.hash = "82965f404b1b6de09a87a0c9ca2f214f"; +module.exports.hash = "ba43551d9e76cf88d114b3ef81134b9b"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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', - 'd8b4f1c7-068a-49ca-8be3-b9fbc51a0700', - 'x-ms-ests-server', - '2.1.11722.21 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=AiWY3Kx3fvZElGiMFi-_2kh12iTZAwAAALO0K9gOAAAA; expires=Wed, 09-Jun-2021 23:11:52 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', - 'Mon, 10 May 2021 23:11:52 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .delete('/acr/v1/library%2Fbusybox') .reply(401, {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/busybox","Action":"delete"}]}]}, [ 'Server', 'openresty', 'Date', - 'Mon, 10 May 2021 23:11:52 GMT', + 'Fri, 11 Jun 2021 20:57:36 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '211', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -65,17 +30,88 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/busybox:delete",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/busybox:delete"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'a843af51-7a52-4540-b694-10e46ce7cecc', + 'c58f572d-5d54-40c9-9010-ab682131bc55', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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', + 'de0d750e-b989-47c2-a44a-48fe011f2c01', + 'x-ms-ests-server', + '2.1.11787.14 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzAwAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:36 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIGyqVvZT35AYqc6Xtv9tHmRfvsDmqWoPl8-O1yjEdoCfs2_dd48DRwl37Il_gUW9Yy5voR_EusrvpJTzwQG8iTvjy9GR01247vHapGtxyBnZWbuQo4J6UadJDZzZkHTZm4eslqtlucgBtVLKLpHT_MvNzLvEvVFB5JnAtYZrtkYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:35 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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', + '5dabefa2-de83-4759-914d-c0adb7ef2500', + 'x-ms-ests-server', + '2.1.11829.4 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzAwAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:36 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrUhI-aUYt9m3meTEBsNU0GpO9p_1LRhTDHNq-nN4Iw6w_yQ8A-NqxsM-A8-8amKIlk3f7-dtprLeqKODnST2mnppp0PjArQMxU5-1JQ9CdFBF9cE316xqstaT-ygYxeo-d5UWdj8qr9j6yCGpjggQKYDBLJaTc6-wcO3PmYncaU8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:35 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=6eb353c9-4dea-4609-a9e4-601a42e48a7f&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -92,21 +128,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '14f10a4d-8e82-4f0a-ab62-1ffb055a7400', + 'e9e6da3a-a667-4809-8a8d-62839f6a1e00', 'x-ms-ests-server', - '2.1.11722.21 - WUS2 ProdSlices', + '2.1.11829.4 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiWY3Kx3fvZElGiMFi-_2kh12iTZBAAAALO0K9gOAAAA; expires=Wed, 09-Jun-2021 23:11:53 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzBAAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:36 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', - 'Mon, 10 May 2021 23:11:52 GMT', - 'Connection', - 'close', + 'Fri, 11 Jun 2021 20:57:35 GMT', 'Content-Length', - '1361' + '1351' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -115,15 +151,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Mon, 10 May 2021 23:11:53 GMT', + 'Fri, 11 Jun 2021 20:57:36 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '9655ac95-4234-48da-813e-baf9a07e39af', + '088bff96-22a8-4133-8f3e-32ce354a23f5', + 'x-ms-ratelimit-remaining-calls-per-second', + '166.533333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -134,32 +172,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Mon, 10 May 2021 23:11:54 GMT', + 'Fri, 11 Jun 2021 20:57:36 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'fa288406-0f0c-4a41-96b9-b38d2a345745', + '520f6954-5f0f-4649-afbc-068ca8d0131b', + 'x-ms-ratelimit-remaining-calls-per-second', + '166.516667', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .delete('/acr/v1/library%2Fbusybox') - .reply(202, {"manifestsDeleted":["sha256:18f9ff16e116d0467a7091dd5145f7be3231328198eadd26d9d683bcb84ca095","sha256:1e1f3623b6bd9bd9ff23af6ee8224c217acd8eb8e739cf02d447346977375184","sha256:1e389843d4f03f45b1c21ba70fa10a4e182780eb42c2f6f9b868e6b1804f2d99","sha256:447655bf5812d64e4d2133b5bf323bee06c89ece80159e76a05c577f70f89085","sha256:90c9b8eea625a4c3c995aacb0d33e50c69a31027e057940ba99f77069f132535","sha256:b5e14f3f5a2c7eb2201fd1d8470dbc7b19ae9df0b72c38ece5dd3f2233aca440","sha256:be4684e4004560b2cd1f12148b7120b0ea69c385bcc9b12a637537a2c60f97fb","sha256:c8d32e85dcb4dfc47f6d2af372dada6bd3a72d28d61e182199411367c6bd865d","sha256:d1eb04b3e60d4b8b90ee62f9a5a76bcc70bdeb9d43ffc4ae47c873828917f89e","sha256:f1e9b10f3e11f03cc1881415598044364124c838dbc616621403bb88099ba8af"],"tagsDeleted":["latest"]}, [ + .reply(202, {"manifestsDeleted":["sha256:04ebe37e000dcd9b1386af0e2d9aad726cbd1581f82067bea5cd2532b1f06310","sha256:0dc4e9a14237cae2d8e96e9e310116091c5ed4934448d7cfd22b122778964f11","sha256:0dd359f0ea0f644cbc1aa467681654c6b4332015ae37af2916b0dfb73b83fd52","sha256:121373e88baca4c1ef533014de2759e002961de035607dd35d00886b052e37cf","sha256:842295d11871c16bbce4d30cabc9b0f1e0cc40e49975f538179529d7798f77d8","sha256:930490f97e5b921535c153e0e7110d251134cc4b72bbb8133c6a5065cc68580d","sha256:9cd47e9327430990c932b19596f8760e7d1a0be0311bb31bab3170bec5f27358","sha256:c10e75f6e5442f446b7c053ff2f360a4052f759c59be9a4c7d144f60207c6eda","sha256:ccff0c7e8498c0bd8d4705e663084c25810fd064a184671a050e1a43b86fb091","sha256:dca71257cd2e72840a21f0323234bb2e33fea6d949fa0f21c5102146f583486b"],"tagsDeleted":["latest"]}, [ 'Server', 'openresty', 'Date', - 'Mon, 10 May 2021 23:11:55 GMT', + 'Fri, 11 Jun 2021 20:57:38 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '788', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -175,11 +215,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Client-Request-Id', - '905b8221-0000-418b-9d77-7ff80e8b3075', + 'bf3f8cfc-31a2-4cee-b9e0-c6750c916d8c', 'X-Ms-Correlation-Request-Id', - '8d4f2bbb-69d9-49d1-91cb-57f9d95ff17c', + 'bb8f8205-0578-4f94-baa3-85e9070f3101', + 'X-Ms-Ratelimit-Remaining-Calls-Per-Second', + '8.000000', 'X-Ms-Request-Id', - '98d9d0d7-303f-4152-a78d-3f0cce0d1a8e', + 'f9fa215e-21c2-4f03-b1e4-0ec5d082ab32', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -190,13 +232,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Mon, 10 May 2021 23:11:55 GMT', + 'Fri, 11 Jun 2021 20:57:38 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '196', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -210,11 +252,11 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="registry:catalog:*",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="registry:catalog:*"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '8a9d49aa-a758-4b1f-9dd2-65c899b18a4a', + '8f7c9b34-4dfc-46ae-a8af-f5e1dab56336', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -225,32 +267,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Mon, 10 May 2021 23:11:56 GMT', + 'Fri, 11 Jun 2021 20:57:38 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '2d1c1bbc-b63d-4d0a-baa1-b6ae4ff17201', + 'cbba05da-1f5e-4640-842f-0e3960804f44', + 'x-ms-ratelimit-remaining-calls-per-second', + '166.5', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/_catalog') - .reply(200, {"repositories":["library/hello-world"]}, [ + .reply(200, {"repositories":["busybox","hello-world","library/hello-world"]}, [ 'Server', 'openresty', 'Date', - 'Mon, 10 May 2021 23:11:56 GMT', + 'Fri, 11 Jun 2021 20:57:38 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', - '41', + '65', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -266,7 +310,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'd333ce82-405a-477f-987d-6d4b6f7e3e79', + '897429aa-756a-4ebd-bf22-61af162fc43a', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories.js b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories.js index dfce5c898ce6..7821c79fd10d 100644 --- a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories.js +++ b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories.js @@ -1,57 +1,22 @@ let nock = require('nock'); -module.exports.hash = "960e3f38f376227834424d743c66fdfd"; +module.exports.hash = "ca59f050c25f4831997ca8a98d00f949"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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-Length', - '1361', - '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', - '74c31071-9533-4e7e-92e2-c81acabf0600', - 'x-ms-ests-server', - '2.1.11722.21 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=AiWY3Kx3fvZElGiMFi-_2kh12iTZAQAAALO0K9gOAAAA; expires=Wed, 09-Jun-2021 23:11:48 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 10 May 2021 23:11:47 GMT', - 'Connection', - 'close' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/_catalog') .reply(401, {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"registry","Name":"catalog","Action":"*"}]}]}, [ 'Server', 'openresty', 'Date', - 'Mon, 10 May 2021 23:11:50 GMT', + 'Fri, 11 Jun 2021 20:57:34 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '196', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -65,24 +30,93 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="registry:catalog:*",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="registry:catalog:*"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '8a3ed944-db29-419c-bbf7-2bafd968421d', + 'bb032cd7-f123-48c7-89ab-cb7c03dbf74a', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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', + 'ad292484-29a3-447e-8014-489cdc3d2e00', + 'x-ms-ests-server', + '2.1.11829.4 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRw; expires=Sun, 11-Jul-2021 20:57:34 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrPC2giXwmLjNSuFjHAeeJXRxMzk6VSHSJRVESEw8HUTVdyyhGhIsWV_PxXLpD8Zbt1-o6PcTJlqT7IgN9YK9cQ55fvO092h9_k6qUPgZaGB668ezEP-9A5I-4HC11zU0l0r-NCM90qXUHHSWrKDprE367zR7RbE1DErc9cGNStxcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:33 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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', + '5dabefa2-de83-4759-914d-c0ad69ef2500', + 'x-ms-ests-server', + '2.1.11829.4 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRw; expires=Sun, 11-Jul-2021 20:57:34 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJ4l10CndOapkOzRWPngocN6WwudZ3Xn5lvJswAJP2wVTyHgH8jeQlkyeJJpKXlNFapQHhrm5fivISAwCsbvYrLjqv45ttGcU4rQR3vzubLWnpc7SJ7n07c-A3JM821eVllEUlTtkabQ4hSHviWpB8VL1OMunLQJJk2PDthP1wfggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:33 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=baf77c8c-7a0e-40c3-8d3b-2c7802a84572&client_secret=azure_client_secret") .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-Length', - '1361', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -94,19 +128,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'e8715b84-d769-4e1b-9803-80b029c00600', + '86d1ccf2-51fd-4060-a2d7-afc187912700', 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', + '2.1.11829.4 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiWY3Kx3fvZElGiMFi-_2kh12iTZAgAAALO0K9gOAAAA; expires=Wed, 09-Jun-2021 23:11:51 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzAQAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:34 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Mon, 10 May 2021 23:11:50 GMT', - 'Connection', - 'close' + 'Fri, 11 Jun 2021 20:57:33 GMT', + 'Content-Length', + '1351' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -115,15 +151,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Mon, 10 May 2021 23:11:51 GMT', + 'Fri, 11 Jun 2021 20:57:34 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '34d6e082-5857-4acb-9c87-bac88f8ec144', + 'dd0ace19-9451-4228-b265-cd218325b9c0', + 'x-ms-ratelimit-remaining-calls-per-second', + '166.65', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -134,32 +172,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Mon, 10 May 2021 23:11:52 GMT', + 'Fri, 11 Jun 2021 20:57:34 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'a68895e8-fd4c-4702-997f-192392c930b4', + '610f6de6-e11a-444f-b534-86ad3251eadd', + 'x-ms-ratelimit-remaining-calls-per-second', + '166.633333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/_catalog') - .reply(200, {"repositories":["library/busybox","library/hello-world"]}, [ + .reply(200, {"repositories":["busybox","hello-world","library/busybox","library/hello-world"]}, [ 'Server', 'openresty', 'Date', - 'Mon, 10 May 2021 23:11:52 GMT', + 'Fri, 11 Jun 2021 20:57:34 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', - '59', + '83', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -175,7 +215,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '3cc8dad1-683e-4b91-a634-a915984a51f7', + '2127ae70-0767-40ff-a093-5a18edd523a0', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages.js b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages.js index acfa29d1f4a1..bf5a1afa97a5 100644 --- a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages.js +++ b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages.js @@ -1,44 +1,9 @@ let nock = require('nock'); -module.exports.hash = "dcff810d4d0706df804878094d241a65"; +module.exports.hash = "4e52e66c6380de07d75137aac625b609"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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', - 'baadd217-8552-4c03-a5b2-70a5d5d96100', - 'x-ms-ests-server', - '2.1.11722.21 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ar1EJvu997FFsOzFJSi4UVh12iTZAwAAADpJQ9gOAAAA; expires=Sun, 27-Jun-2021 20:27:41 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 28 May 2021 20:27:41 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/_catalog') .query(true) @@ -46,13 +11,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 20:27:42 GMT', + 'Fri, 11 Jun 2021 20:57:34 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '196', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -66,17 +31,88 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="registry:catalog:*",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="registry:catalog:*"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'a91d2611-7f5f-4958-aba5-e3faf2c73e71', + '36c205d4-cd0b-4829-9929-6cbb19830319', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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', + '4e0a04d6-3252-412a-ae23-83254c7f9400', + 'x-ms-ests-server', + '2.1.11787.14 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzAQAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:34 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrz41F86dCbfL4_dQ1knYdmIjIkSgHVxbkk0hy8ONHksBTlBVAJ5BqayOIpHRgMOFxc0CVjhdgJxGEX46UTP7_YlVZk--0XR7bnZrHXwBKcwJ7p4X8ifxvrOSEdf8cPnrd8AiykQKqYH6Ja3bfSikYZwl4WPEG0wCRHC4ySbXbFmwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:34 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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', + 'd176eb4a-f2fb-4e3d-869c-36c631741f00', + 'x-ms-ests-server', + '2.1.11829.4 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzAQAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:35 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrB_kOaH93B31DLdd6Ft1ULGGYG0V4V6HZ4B7wP5bU3n02krSPvmSz_henHmm2tiMDbsnQrximHDQVVKoJL7-HlZBvoKBP6RkY7F3_qY29oEedyFGBYd-Drsif_hdtdF-xkuT0bO9a7yHarVOB7qNtukOEwWzv8plAVKPVxT9w99ogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:34 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=59359c62-d357-4acc-9798-b03aaa3c10f3&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,21 +129,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '98b4c4c1-94d0-45f8-ae73-f80eb7580100', + '75d79032-9687-4997-974b-357ee24e2800', 'x-ms-ests-server', - '2.1.11722.26 - WUS2 ProdSlices', + '2.1.11829.4 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Ar1EJvu997FFsOzFJSi4UVh12iTZBAAAADpJQ9gOAAAA; expires=Sun, 27-Jun-2021 20:27:42 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzAgAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:35 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Fri, 28 May 2021 20:27:42 GMT', - 'Connection', - 'close', + 'Fri, 11 Jun 2021 20:57:34 GMT', 'Content-Length', - '1361' + '1351' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -116,17 +152,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 20:27:42 GMT', + 'Fri, 11 Jun 2021 20:57:35 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '4e83e680-5787-4c40-ac98-4cb004e304cb', + 'b6cb344c-4323-4352-aae8-357c64acc02f', 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', + '166.616667', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -137,17 +173,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 20:27:43 GMT', + 'Fri, 11 Jun 2021 20:57:35 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'b5df01ba-bbca-4f05-9918-7cc17a638827', + '5e980192-9b3a-4b84-a513-48effd93460e', 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', + '166.6', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -159,13 +195,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 20:27:43 GMT', + 'Fri, 11 Jun 2021 20:57:35 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '29', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -183,7 +219,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '3ddbe791-e348-44bb-82d6-6808b54d910c', + '95240882-26b9-45ca-a4ef-1700f19aba71', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -195,13 +231,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 20:27:43 GMT', + 'Fri, 11 Jun 2021 20:57:35 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '196', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -215,11 +251,11 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="registry:catalog:*",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="registry:catalog:*"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'fe74bf75-c339-47aa-a5f2-ba6a31afd442', + '2e41b731-1522-4f4f-b181-72ba21e70242', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -230,37 +266,21 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 20:27:43 GMT', + 'Fri, 11 Jun 2021 20:57:35 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'b6f94986-9c00-485f-941a-f4597e44c07b', + 'b4b3816e-26b6-48e8-b506-b8f87d1861f0', 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', + '166.583333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/_catalog') - .query(true) - .reply(502, "[Fiddler] The connection to 'myregistry.azurecr.io' failed.
Error: TimedOut (0x274c).
System.Net.Sockets.SocketException A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 20.44.11.4:443 ", [ - 'Date', - 'Fri, 28 May 2021 20:28:05 GMT', - 'Content-Type', - 'text/html; charset=UTF-8', - 'Connection', - 'close', - 'Cache-Control', - 'no-cache, must-revalidate', - 'Timestamp', - '13:28:05.031' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/_catalog') .query(true) @@ -268,13 +288,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 20:28:07 GMT', + 'Fri, 11 Jun 2021 20:57:35 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '33', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -292,7 +312,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '585b632e-e63f-44d7-94d3-1ac3c68c377a', + '569be911-cfa7-48be-9bcf-a0334595a9ac', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.js b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.js index 210f9cbacb0b..25aaa38c6cf3 100644 --- a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.js +++ b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.js @@ -1,44 +1,9 @@ let nock = require('nock'); -module.exports.hash = "d9cd539a36073732933764a8fab6f092"; +module.exports.hash = "44dcb4ad6e61ea51e4b864bb390e984a"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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', - '506c2da7-aabd-444b-982a-5dd04ca15c00', - 'x-ms-ests-server', - '2.1.11722.21 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ar1EJvu997FFsOzFJSi4UVh12iTZBQAAADpJQ9gOAAAA; expires=Sun, 27-Jun-2021 20:28:07 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 28 May 2021 20:28:06 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/_catalog') .query(true) @@ -46,13 +11,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 20:28:07 GMT', + 'Fri, 11 Jun 2021 20:57:35 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '196', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -66,22 +31,95 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="registry:catalog:*",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="registry:catalog:*"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'db66a1ef-6a24-4c83-94dd-a66ed859d6c8', + '82eea585-a004-49e8-a50b-e5940abcf00c', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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', + 'ff3f327f-cdff-411e-9f5d-ecca202f0700', + 'x-ms-ests-server', + '2.1.11787.15 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzAgAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:35 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLi4iMAmmWdsIYP34Uu9hYPZXDewR-tfF008ZkuWpZfmYj6erRDjpX8jiV3ZMMWk_H4-soDF0J7jJ0EOMSQdDVnBsWT5OzGwKXTUCrERYj3HQuYOVulWWvxNZPUhpO5kg_VOK79BiVTbpOIru_yncm5bgC04CFlLp-lQwIGc8d4AgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:34 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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', + 'fc3bfabd-86dd-4b3e-ac2f-fd9337de2e00', + 'x-ms-ests-server', + '2.1.11829.4 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzAgAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:35 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIuk9wUSxI_n5Dy0G3qzoT3Z6Wdq6kDfjjJvVxxq-fAKbto1o0MfMfDhyvztStNfJfFR--kquH2qNG-AsI2yZ3FhsHamf8YGxOtn7V5ihm-hf-QuaCFParGVgUFk_TxVX7OKr4LNS9EF-QVg32NWCabUhuhaKus_tAaFfnozufqsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:35 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=ca94d0c6-fd8d-44b6-b03e-07f30cbeb887&client_secret=azure_client_secret") .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-Length', + '1351', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -93,21 +131,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'f3c26aae-2343-499c-868a-46ad65f55000', + '75d79032-9687-4997-974b-357efd4e2800', 'x-ms-ests-server', - '2.1.11722.21 - SCUS ProdSlices', + '2.1.11829.4 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Ar1EJvu997FFsOzFJSi4UVh12iTZBgAAADpJQ9gOAAAA; expires=Sun, 27-Jun-2021 20:28:07 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzAwAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:35 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Fri, 28 May 2021 20:28:07 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' + 'Fri, 11 Jun 2021 20:57:35 GMT' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -116,17 +152,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 20:28:08 GMT', + 'Fri, 11 Jun 2021 20:57:35 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '599fbb3b-9497-45a5-bd03-80a47db63181', + '1ad1740d-c3b1-47f7-ac49-1eeb3413d600', 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', + '166.566667', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -137,17 +173,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 20:28:08 GMT', + 'Fri, 11 Jun 2021 20:57:36 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '9db3c64f-96de-48f1-84c2-5c3044775f0e', + '1391733e-c0a0-4be0-ba5e-cd78e4b5acef', 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', + '166.55', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -159,13 +195,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 20:28:08 GMT', + 'Fri, 11 Jun 2021 20:57:36 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '33', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -183,7 +219,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '277e4e3d-76b4-49e7-a861-5b9a97749448', + '37b01aca-4dcf-4aec-ae69-4607e44f596a', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_deletes_a_given_tag.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_deletes_a_given_tag.js index 7836020931b9..b6301a08d9c6 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_deletes_a_given_tag.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_deletes_a_given_tag.js @@ -1,57 +1,22 @@ let nock = require('nock'); -module.exports.hash = "f9bbdaa73844efd839672edab2d4b0a0"; +module.exports.hash = "3661319ad1a9b76e42df18b646eca69e"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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', - '24e378d0-4599-4be2-be46-5012c5ef0000', - 'x-ms-ests-server', - '2.1.11722.26 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZFAAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:43 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 28 May 2021 22:16:42 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .delete('/acr/v1/library%2Fhello-world/_tags/test-delete') .reply(401, {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/hello-world","Action":"delete"}]}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:43 GMT', + 'Fri, 11 Jun 2021 20:57:54 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '215', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -65,17 +30,88 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:delete",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:delete"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'c6fff081-950e-4676-afd5-31ba63cffe76', + 'f5bb3894-696f-4cf8-b16d-fd8426eebf03', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Length', + '980', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + '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', + 'a40457ac-7697-4971-b812-7ed353580c00', + 'x-ms-ests-server', + '2.1.11787.15 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzEAAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:54 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCmr3ssl1vra4cJQitX3xm1lkb_JEq5L8M5-VJWDTHMHGXpKnOYQmu2wMWOHAiE9x2TwUBT852ob_3erddliHdQB5El6Z83McVqUbXTxYwst7KECebhsjyKgHJJoDcHtbXOhrkxlPIOBltdInCBrV_lVCZ6JyLi2ACkLXsb36q5AgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:53 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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', + '9ef8c751-310d-489b-8072-ccc63cf62400', + 'x-ms-ests-server', + '2.1.11829.4 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzEAAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:54 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrcm3YjuB-94V9S_LnE6zy85AcnbocphqxGsh80yDtjIFDYcj-qAewtqFIlxqwT-FQImI5SiuFH2eZVKZqsN0qtFWU12BJr2S1Co6vytiRXqTQ4PLIHLGW0AWbETf7FvqRu7O27Cy-wI8Y5nMTquGyktd1GQbFkNraQxYgOEDpg28gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:53 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=dbd3358c-7439-46e5-9a9a-fae959a3bae9&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -92,21 +128,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '1e029382-5e9f-48ed-a0fc-228fda025d00', + '09812398-8d6a-43fb-a840-400a444c2c00', 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', + '2.1.11829.4 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZFAAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:43 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzEQAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:54 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Fri, 28 May 2021 22:16:43 GMT', - 'Connection', - 'close', + 'Fri, 11 Jun 2021 20:57:53 GMT', 'Content-Length', - '1361' + '1351' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -115,17 +151,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:43 GMT', + 'Fri, 11 Jun 2021 20:57:54 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'acaaae11-2fc5-4468-8273-f394917315d7', + '38bcc9aa-030a-4fc3-b03e-a2571f8a31f3', 'x-ms-ratelimit-remaining-calls-per-second', - '166.45', + '165.933333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -136,7 +172,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:44 GMT', + 'Fri, 11 Jun 2021 20:57:54 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', @@ -144,9 +180,9 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Connection', 'close', 'X-Ms-Correlation-Request-Id', - '74eefbf7-6c7e-49c5-a381-1faf203ce0b3', + 'bed1d45b-7761-4e04-802b-b34881b7c1f7', 'x-ms-ratelimit-remaining-calls-per-second', - '166.5', + '165.916667', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -157,11 +193,11 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:44 GMT', + 'Fri, 11 Jun 2021 20:57:55 GMT', 'Content-Length', '0', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -177,15 +213,15 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Client-Request-Id', - '69e1ef30-3ad6-4e62-be4d-2094726025e9', + '23eb5fb1-ceb3-4aff-a74a-325b0b86ab58', 'X-Ms-Correlation-Request-Id', - 'e82e9ced-5a0c-472a-bb3b-fb41544728e8', + '67406b5c-f6d3-44bb-bb93-bd5750acefe0', 'X-Ms-Int-Docker-Content-Digest', - 'sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c', + 'sha256:9f6ad537c5132bcce57f7a0a20e317228d382c3cd61edae14650eec68b2b345c', 'X-Ms-Ratelimit-Remaining-Calls-Per-Second', '8.000000', 'X-Ms-Request-Id', - '5035dd8c-aa9b-42b1-80f5-358c768208cf', + '97d5cb8e-92e2-40a1-83c1-47a4b8bb4cf9', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -196,13 +232,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:44 GMT', + 'Fri, 11 Jun 2021 20:57:55 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -216,11 +252,11 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '117fe892-c48d-4cc5-8967-8cafbd4b575c', + '146ec939-7e4b-495d-92ce-274e2213a729', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -231,17 +267,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:45 GMT', + 'Fri, 11 Jun 2021 20:57:55 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '7ca80667-efae-4453-a00c-ac2a9635d55e', + 'c8ec6c08-f698-4299-8308-df49790d54a1', 'x-ms-ratelimit-remaining-calls-per-second', - '166.433333', + '165.9', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -252,13 +288,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:45 GMT', + 'Fri, 11 Jun 2021 20:57:55 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '81', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -274,7 +310,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '566bd7c8-dc89-4638-b172-1ddb6e396b0c', + 'c6430982-0030-4e1f-ade8-32b53954757d', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_manifest_properties.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_manifest_properties.js index 07457cdde77d..f1abbae49bfe 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_manifest_properties.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_manifest_properties.js @@ -1,57 +1,22 @@ let nock = require('nock'); -module.exports.hash = "8090c31a1a00a5ec5cb2ebdf89841afa"; +module.exports.hash = "71a5fab2c0596ece5e16b878f673a474"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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', - '77f5639d-bef3-4b5b-898a-2330d0e67600', - 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZDQAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:26 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 28 May 2021 22:16:26 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_manifests/sha256%3A50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1') .reply(401, {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/hello-world","Action":"metadata_read"}]}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:26 GMT', + 'Fri, 11 Jun 2021 20:57:48 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -65,17 +30,88 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'b050f10a-aa95-40cf-a1b5-f424990004a7', + '4ee81a6d-ed39-455d-bf8c-637b124f6f82', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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', + '22015443-78eb-46cc-b0db-f41a9a7a0a00', + 'x-ms-ests-server', + '2.1.11787.15 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzCgAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:48 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrVDw7zANvrznak9wDjSrFbxyYSPNYsTKU6aegcnHvWi3hQqjX7eMx2fmKCoHlQceYhBvfePhX4nvlBzjUsJVLwhdQQTLSy9rc89n3mRdNP5exihupbbiD-SCLuDi6NXOtxno7ByI9EUj8JwlupmjC8-cNhvRRKx7mJiATMEFR4N0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:47 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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', + '8eff5ce1-7810-46e2-abe5-bdb8470c2500', + 'x-ms-ests-server', + '2.1.11829.4 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzCgAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:48 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrqSLgfGRJ1xaqKNO68eBfPIVJyeExPYhLJbkida24C46EbRHEV7R_g3ivM_ftkFMvOO301QC3RMUZdWcBSJCQ8z0sv_7D_9r5V2TuvmtjY5FWDU2xJfcWUruYAD8Znyukalja1VrmrNojcwXjqSfaaukCZ76ktaBDxHbDuEgkvaIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:47 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=95b2ea01-d376-4997-8d27-7b617ccf9837&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -92,21 +128,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '5f1a11df-4470-46c7-a58f-69bf21d86d00', + '86d1ccf2-51fd-4060-a2d7-afc168932700', 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', + '2.1.11829.4 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZDgAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:27 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzCwAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:48 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Fri, 28 May 2021 22:16:26 GMT', - 'Connection', - 'close', + 'Fri, 11 Jun 2021 20:57:47 GMT', 'Content-Length', - '1361' + '1351' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -115,17 +151,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:27 GMT', + 'Fri, 11 Jun 2021 20:57:48 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '3946adf4-d079-4d63-b0e1-59dfd67ed177', + '9feaf142-0d89-449f-a4b5-cac5f5ae1b1e', 'x-ms-ratelimit-remaining-calls-per-second', - '166.616667', + '166.25', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -136,34 +172,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:27 GMT', + 'Fri, 11 Jun 2021 20:57:48 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '60fbee9d-0fcf-4961-b071-33bbde950f94', + 'f88d563f-511a-4d62-b11b-768fe89d2908', 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', + '166.233333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_manifests/sha256%3A50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1') - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1","imageSize":525,"createdTime":"2021-05-28T17:15:15.4118286Z","lastUpdateTime":"2021-05-28T17:15:15.4118286Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineDetails":"{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/28/2021 10:14:59 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}","quarantineState":"Passed"}}}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1","imageSize":525,"createdTime":"2021-06-01T17:44:41.0103898Z","lastUpdateTime":"2021-06-01T17:44:41.0103898Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineDetails":"{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"6/11/2021 8:52:30 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}","quarantineState":"Passed"}}}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:28 GMT', + 'Fri, 11 Jun 2021 20:57:48 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', - '821', + '820', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -179,7 +215,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'b7a8c5c2-642c-40c4-8b9d-fd76556a3179', + 'eb2aa7a9-08f8-423f-94af-4c7d83457b94', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -190,13 +226,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:28 GMT', + 'Fri, 11 Jun 2021 20:57:48 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '223', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -210,11 +246,11 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_write",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_write"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'c7cc2fd1-99b8-4163-afa6-4b2ad8cee411', + '968980a1-fdba-4119-a2d4-f69297b61b4d', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -225,34 +261,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:28 GMT', + 'Fri, 11 Jun 2021 20:57:48 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '93fc1d95-99e8-4f31-ae60-3198f91a0179', + '2e1d4a7a-33bc-4dd2-9ad4-8e41a745e6ef', 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', + '166.216667', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .patch('/acr/v1/library%2Fhello-world/_manifests/sha256%3A50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1', {"deleteEnabled":false,"writeEnabled":false,"listEnabled":false,"readEnabled":false}) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1","imageSize":525,"createdTime":"2021-05-28T17:15:15.4118286Z","lastUpdateTime":"2021-05-28T17:15:15.4118286Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":false,"writeEnabled":false,"readEnabled":false,"listEnabled":false,"quarantineDetails":"{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/28/2021 10:14:59 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}","quarantineState":"Passed"}}}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1","imageSize":525,"createdTime":"2021-06-01T17:44:41.0103898Z","lastUpdateTime":"2021-06-01T17:44:41.0103898Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":false,"writeEnabled":false,"readEnabled":false,"listEnabled":false,"quarantineDetails":"{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"6/11/2021 8:52:30 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}","quarantineState":"Passed"}}}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:29 GMT', + 'Fri, 11 Jun 2021 20:57:49 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', - '825', + '824', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -268,7 +304,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'fa06b654-600f-4ce0-82bc-8f73b20509f1', + '46375734-9ccb-4985-9d46-a28c1386fe0d', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -279,13 +315,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:29 GMT', + 'Fri, 11 Jun 2021 20:57:49 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '223', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -299,11 +335,11 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_write",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_write"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'bafa967e-0739-49e5-81b3-70e0c551256e', + '6aec711f-975f-449e-8c13-6b0218a49cf8', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -314,34 +350,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:29 GMT', + 'Fri, 11 Jun 2021 20:57:49 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '7bf46d0c-3150-4c1b-8f3f-622bccb73df2', + '69a6212c-70e7-402c-84ab-1affdcf145cd', 'x-ms-ratelimit-remaining-calls-per-second', - '166.616667', + '166.2', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .patch('/acr/v1/library%2Fhello-world/_manifests/sha256%3A50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1', {"deleteEnabled":true,"writeEnabled":true,"listEnabled":true,"readEnabled":true}) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1","imageSize":525,"createdTime":"2021-05-28T17:15:15.4118286Z","lastUpdateTime":"2021-05-28T17:15:15.4118286Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineDetails":"{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/28/2021 10:14:59 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}","quarantineState":"Passed"}}}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1","imageSize":525,"createdTime":"2021-06-01T17:44:41.0103898Z","lastUpdateTime":"2021-06-01T17:44:41.0103898Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineDetails":"{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"6/11/2021 8:52:30 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}","quarantineState":"Passed"}}}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:30 GMT', + 'Fri, 11 Jun 2021 20:57:49 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', - '821', + '820', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -357,7 +393,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '49a035c2-e257-4632-aa8e-8cd0611046f7', + 'f1d96997-3990-4a70-a95f-ca2a37679842', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_repository_properties.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_repository_properties.js index bdc0b325cad0..4e2cc4f6156a 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_repository_properties.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_repository_properties.js @@ -1,57 +1,22 @@ let nock = require('nock'); -module.exports.hash = "d170176f2efbc45a807a1c289ea3b2c9"; +module.exports.hash = "0734a23c241c1009734b246cd58c583c"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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', - 'a4eff776-b44f-486c-8748-c5b2e2710300', - 'x-ms-ests-server', - '2.1.11722.26 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZDwAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:30 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 28 May 2021 22:16:29 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world') .reply(401, {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/hello-world","Action":"metadata_read"}]}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:30 GMT', + 'Fri, 11 Jun 2021 20:57:49 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -65,22 +30,95 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '40ac3e87-32b2-4e89-9cf8-e0bd2a4090e8', + 'd3395968-83e6-4ad2-b500-d1a34157ee4c', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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', + 'f5bbb50a-3a1a-4b41-b5c0-9e17f6c7a700', + 'x-ms-ests-server', + '2.1.11787.14 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzCwAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:49 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrORufEmesd1L4tCE-q1laHSaq0thCIZ1qXouJczTwLqmQb41jMrKQ6UNGJYGjKMTzRSB6wk-xXcGnZ8PZ8YPNS7TOzrfc0-cTsS5ussYyD9kodqr32YlGqeCY7ST0qKuZ6lBm9NENEgbKbSy-B9RX1UGhS528yJRLWihZwAQRPi8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:49 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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', + '4f277822-3e6d-4d06-a5b2-f9b5d9892800', + 'x-ms-ests-server', + '2.1.11829.4 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzCwAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:49 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrw0eHrY9_2xJMUQfPdAAFNYoZ5w5tSfGgyJX8Tmb7ILpe2XRd02e1mFoRQHK_lS4pJkSG_SE6cFTvkPUChHsUU5Rd68OUHOKInXHNQiI_QYdS9a-4JaBk6RDetQ1lPc9zBStHxadv5mKBrX6oO4ZItwbaKa18Zo0IQ4_Ul1bknnsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:49 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=f9ab8844-b3ca-423e-b9c7-20a8528c74dd&client_secret=azure_client_secret") .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-Length', + '1351', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -92,21 +130,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'a744cad6-cc6e-44f3-b159-a15e8cfd0000', + 'fc3bfabd-86dd-4b3e-ac2f-fd937fe02e00', 'x-ms-ests-server', - '2.1.11722.26 - SCUS ProdSlices', + '2.1.11829.4 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZEAAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:30 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzDAAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:49 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Fri, 28 May 2021 22:16:29 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' + 'Fri, 11 Jun 2021 20:57:49 GMT' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -115,17 +151,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:31 GMT', + 'Fri, 11 Jun 2021 20:57:50 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '78b902bd-a201-438b-acfc-0b744c2f1370', + '97c77c0b-b5b1-445a-a2e1-d2491a9876d7', 'x-ms-ratelimit-remaining-calls-per-second', - '166.616667', + '166.183333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -136,34 +172,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:31 GMT', + 'Fri, 11 Jun 2021 20:57:50 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '87aaa3f1-b342-4f30-9ff5-b0854c997563', + 'e2e9e7e3-c14c-41d7-99ec-6b9c1e2fcc35', 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', + '166.166667', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world') - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","createdTime":"2021-05-28T17:15:14.4015317Z","lastUpdateTime":"2021-05-28T22:14:57.9879472Z","manifestCount":10,"tagCount":2,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"teleportEnabled":false}}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","createdTime":"2021-06-01T17:44:40.7113043Z","lastUpdateTime":"2021-06-11T20:52:28.8611446Z","manifestCount":22,"tagCount":3,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"teleportEnabled":false}}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:31 GMT', + 'Fri, 11 Jun 2021 20:57:50 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '323', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -179,7 +215,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '7cbbff59-dfbf-4ce1-ab67-cbe3c2892cbe', + '861d58db-760e-43a7-9f47-e0363cfd61b1', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -190,13 +226,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:32 GMT', + 'Fri, 11 Jun 2021 20:57:50 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '223', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -210,11 +246,11 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_write",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_write"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '8d7a2962-55b2-4f23-aabe-c054557c5af7', + 'dad8546b-6163-41e1-9338-ce6641568dc9', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -225,34 +261,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:32 GMT', + 'Fri, 11 Jun 2021 20:57:50 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'be988df1-83be-426c-a21d-4894564a89dc', + '8ddefa43-04a3-4171-a537-201bc7ef7240', 'x-ms-ratelimit-remaining-calls-per-second', - '166.6', + '166.15', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .patch('/acr/v1/library%2Fhello-world', {"deleteEnabled":false,"writeEnabled":false,"listEnabled":false,"readEnabled":false}) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","createdTime":"2021-05-28T17:15:14.4015317Z","lastUpdateTime":"2021-05-28T22:14:57.9879472Z","manifestCount":10,"tagCount":2,"changeableAttributes":{"deleteEnabled":false,"writeEnabled":false,"readEnabled":false,"listEnabled":false,"teleportEnabled":false}}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","createdTime":"2021-06-01T17:44:40.7113043Z","lastUpdateTime":"2021-06-11T20:52:28.8611446Z","manifestCount":22,"tagCount":3,"changeableAttributes":{"deleteEnabled":false,"writeEnabled":false,"readEnabled":false,"listEnabled":false,"teleportEnabled":false}}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:32 GMT', + 'Fri, 11 Jun 2021 20:57:50 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '327', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -268,7 +304,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '7f418a9c-22ed-4807-8f9b-cbbb06607e4f', + 'd0f2a114-c379-4348-b027-097b7b83d9a1', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -279,13 +315,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:33 GMT', + 'Fri, 11 Jun 2021 20:57:50 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '223', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -299,11 +335,11 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_write",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_write"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'ebab9d61-c3fa-4674-b27b-ff0cbcd9a454', + '31816c8f-b373-492c-915c-d4db4d0c5a51', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -314,34 +350,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:33 GMT', + 'Fri, 11 Jun 2021 20:57:50 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '42858fc3-39b3-48c4-a53d-0ff53ff00c4a', + 'a060240c-1e8f-4f8e-87d4-08df6bba7f38', 'x-ms-ratelimit-remaining-calls-per-second', - '166.616667', + '166.133333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .patch('/acr/v1/library%2Fhello-world', {"deleteEnabled":true,"writeEnabled":true,"listEnabled":true,"readEnabled":true,"teleportEnabled":false}) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","createdTime":"2021-05-28T17:15:14.4015317Z","lastUpdateTime":"2021-05-28T22:14:57.9879472Z","manifestCount":10,"tagCount":2,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"teleportEnabled":false}}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","createdTime":"2021-06-01T17:44:40.7113043Z","lastUpdateTime":"2021-06-11T20:52:28.8611446Z","manifestCount":22,"tagCount":3,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"teleportEnabled":false}}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:33 GMT', + 'Fri, 11 Jun 2021 20:57:50 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '323', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -357,7 +393,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '2cf72d6c-e580-4bc4-9ab1-0e8b2239be1e', + '58a7e006-947c-46e0-9426-ba04db53baff', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_tag_properties.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_tag_properties.js index a529a4729bbb..6cc6dec0d61e 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_tag_properties.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_tag_properties.js @@ -1,57 +1,22 @@ let nock = require('nock'); -module.exports.hash = "594bfb9234d809371c4b94c94703c056"; +module.exports.hash = "37df9dffca94d0eccd6220d9dc6866a6"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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', - 'de612380-b52e-447b-b2c5-509a6f7f0000', - 'x-ms-ests-server', - '2.1.11722.26 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZFAAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:39 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 28 May 2021 22:16:39 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_tags/test1') .reply(401, {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/hello-world","Action":"metadata_read"}]}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:40 GMT', + 'Fri, 11 Jun 2021 20:57:53 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -65,17 +30,88 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'a2d52f65-f3d1-438c-9b29-af4798c320da', + '7adfcc87-6fa1-48e1-a482-3f069cdd964b', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Length', + '980', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + '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', + 'a23c5b7b-1616-42e3-8b94-037e7d4a8c00', + 'x-ms-ests-server', + '2.1.11787.14 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzDwAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:53 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCdZN--_UJ-7hllphc9UvssXRuQNqnxcs6hIv5V4bwAvenON-kyOynTiScslU-A7mxzJK5GGWU5_gRMFDhPZIcmoT09vTLib3_VpTNRcgStSSoH0F3Ku4q59mn72eWdcfeykC5em2DHDCG_n69LrNtWmD4YRSI-wddFR-EdZOdNcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:52 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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', + 'e9e6da3a-a667-4809-8a8d-62835c6d1e00', + 'x-ms-ests-server', + '2.1.11829.4 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzDwAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:53 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrhhz2OI-rN9ClXEKcmLZKoRF0l1ppd-CHjhSI7mQega22tyS2AQwJJI9C7xngshVN6FgeZIz1ZRv1GzNQj0KWW5FOcIH7mAeiSIBjHxaGLc3HhkpyAed5KhDl1D3gSeMLF5KXxwmOE4TSN3BYnPqFQhWY7b-Rz6mcVnW5UItLufogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:52 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=660d953d-5288-44be-b4cd-11b8e3578be3&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -92,21 +128,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'bf62336e-477b-43bf-b90c-5aff91616300', + 'd176eb4a-f2fb-4e3d-869c-36c641771f00', 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', + '2.1.11829.4 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZFAAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:40 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzEAAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:53 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Fri, 28 May 2021 22:16:39 GMT', - 'Connection', - 'close', + 'Fri, 11 Jun 2021 20:57:52 GMT', 'Content-Length', - '1361' + '1351' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -115,17 +151,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:40 GMT', + 'Fri, 11 Jun 2021 20:57:53 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '0e4394d6-a1e8-4b8b-b146-4ed48a1f695a', + '67269cdb-fd22-4415-9117-db3eab211b39', 'x-ms-ratelimit-remaining-calls-per-second', - '166.516667', + '166', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -136,34 +172,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:40 GMT', + 'Fri, 11 Jun 2021 20:57:53 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'b94b1daf-3c85-4397-8b15-acdaf9335fe2', + '2989790c-b9b8-4ac9-b547-5f4b62d9445b', 'x-ms-ratelimit-remaining-calls-per-second', - '166.4', + '165.983333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_tags/test1') - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tag":{"name":"test1","digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","createdTime":"2021-05-28T17:15:15.2790632Z","lastUpdateTime":"2021-05-28T17:15:15.2790632Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tag":{"name":"test1","digest":"sha256:9f6ad537c5132bcce57f7a0a20e317228d382c3cd61edae14650eec68b2b345c","createdTime":"2021-06-11T19:11:38.7001063Z","lastUpdateTime":"2021-06-11T20:52:28.5096814Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:41 GMT', + 'Fri, 11 Jun 2021 20:57:53 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '388', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -179,7 +215,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '9ea89c7a-f389-45c4-855a-e3462a346555', + '5e291c87-91c9-4694-9517-bb42012181e0', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -190,13 +226,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:41 GMT', + 'Fri, 11 Jun 2021 20:57:53 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '223', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -210,11 +246,11 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_write",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_write"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'c957cb16-76db-4ba2-9589-0678bdfd3928', + '1ba89ac1-b106-41df-a19b-918e002003ba', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -225,34 +261,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:41 GMT', + 'Fri, 11 Jun 2021 20:57:53 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '7b714a3c-8fdb-4380-8b9a-d9461300a53c', + '924e5ede-511e-4dfc-9fc0-7f10ca0a13ca', 'x-ms-ratelimit-remaining-calls-per-second', - '166.616667', + '165.966667', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .patch('/acr/v1/library%2Fhello-world/_tags/test1', {"deleteEnabled":false,"writeEnabled":false,"listEnabled":false,"readEnabled":false}) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tag":{"name":"test1","digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","createdTime":"2021-05-28T17:15:15.2790632Z","lastUpdateTime":"2021-05-28T17:15:15.2790632Z","signed":false,"changeableAttributes":{"deleteEnabled":false,"writeEnabled":false,"readEnabled":false,"listEnabled":false}}}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tag":{"name":"test1","digest":"sha256:9f6ad537c5132bcce57f7a0a20e317228d382c3cd61edae14650eec68b2b345c","createdTime":"2021-06-11T19:11:38.7001063Z","lastUpdateTime":"2021-06-11T20:52:28.5096814Z","signed":false,"changeableAttributes":{"deleteEnabled":false,"writeEnabled":false,"readEnabled":false,"listEnabled":false}}}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:42 GMT', + 'Fri, 11 Jun 2021 20:57:53 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '392', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -268,7 +304,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '59a03e46-c086-4e78-bbb2-21da33523928', + '88dc97a9-a111-4b96-94d2-d528297032b2', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -279,13 +315,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:42 GMT', + 'Fri, 11 Jun 2021 20:57:53 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '223', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -299,11 +335,11 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_write",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_write"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '04eb81e8-a16a-48d8-be49-2c3608aefbf4', + 'efe01eeb-9658-430c-a6a2-2b6091bb3e11', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -314,34 +350,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:42 GMT', + 'Fri, 11 Jun 2021 20:57:53 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'f1c06add-a07e-4f20-aeea-ac5e54260db0', + '47415842-4afd-4b0b-a77e-c70e78543110', 'x-ms-ratelimit-remaining-calls-per-second', - '166.616667', + '165.95', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .patch('/acr/v1/library%2Fhello-world/_tags/test1', {"deleteEnabled":true,"writeEnabled":true,"listEnabled":true,"readEnabled":true}) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tag":{"name":"test1","digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","createdTime":"2021-05-28T17:15:15.2790632Z","lastUpdateTime":"2021-05-28T17:15:15.2790632Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tag":{"name":"test1","digest":"sha256:9f6ad537c5132bcce57f7a0a20e317228d382c3cd61edae14650eec68b2b345c","createdTime":"2021-06-11T19:11:38.7001063Z","lastUpdateTime":"2021-06-11T20:52:28.5096814Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:42 GMT', + 'Fri, 11 Jun 2021 20:57:54 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '388', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -357,7 +393,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '1f3acb6d-3950-4489-ad72-0d24018492f6', + '198a6166-f398-4e9e-8ad3-9c7abbb02a36', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests.js index a5b3ac44bfd5..f1d2a64686ba 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests.js @@ -1,57 +1,22 @@ let nock = require('nock'); -module.exports.hash = "147a8cd867784c38237ae829b991cfa9"; +module.exports.hash = "20704860a85aed25d0f147a937a3b7a8"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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', - '11e4c691-0c2c-40d7-a054-e460e9680400', - 'x-ms-ests-server', - '2.1.11722.26 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZAQAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:13 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 28 May 2021 22:16:13 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_manifests') .reply(401, {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/hello-world","Action":"metadata_read"}]}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:14 GMT', + 'Fri, 11 Jun 2021 20:57:38 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -65,17 +30,88 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '82809f5d-2c93-414c-9a1b-2649bc7325eb', + '685e1405-8e74-4c32-b9c5-b9e0c960fdbe', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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', + 'a72da958-7448-4fd4-9413-cec1167f0c00', + 'x-ms-ests-server', + '2.1.11787.15 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzBAAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:38 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr87bkpNSQnkiXnxpsty_wTA2QWo7d5PfB4QlXt_safJucz-TZkCVO0VCMXUS0VnH5WzahVCBg3hwa0yqDbKe1ezpzKTRAy1EBbetNlX3uXiqCHj4dAjz83lfpyBYlB3MmbdzeIX7xMtgent8M1hyaqBUkRDQ5YCDhv2wlirFU_QggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:37 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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', + '6f333939-cabf-4c50-acb0-3232a0e22a00', + 'x-ms-ests-server', + '2.1.11829.4 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzBAAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:38 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrd8_3MJ8gnFDia2YxASXbjlYMUopAcvfmDWQ0OOADjsrWZ_kdcSykzC-5DsoC_BO7166whuwn8snDcAQVpbedf5oKAdYJyT4QIDIyK0j9C9_Dz4O4CuIawbfT-54bH3OQZo5GW_-pXqx_WQO3cP3Hkl64b9SMttFSHm6CzO4CzUsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:37 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=810353d1-1414-4c12-b7f5-6443dbed03a3&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -92,21 +128,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '7b19cf90-698a-4a43-a10a-948dcf030100', + '86d1ccf2-51fd-4060-a2d7-afc125922700', 'x-ms-ests-server', - '2.1.11722.26 - SCUS ProdSlices', + '2.1.11829.4 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZAgAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:14 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzBQAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:38 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Fri, 28 May 2021 22:16:13 GMT', - 'Connection', - 'close', + 'Fri, 11 Jun 2021 20:57:38 GMT', 'Content-Length', - '1361' + '1351' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -115,17 +151,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:14 GMT', + 'Fri, 11 Jun 2021 20:57:38 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'bfb6c3d8-8257-40b7-a8ec-b1fd23b094eb', + '6aa28128-b485-49a8-99cb-0d6f7c5dce56', 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', + '166.483333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -136,34 +172,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:15 GMT', + 'Fri, 11 Jun 2021 20:57:38 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '347b0255-ed2f-4384-8496-89a6afb36dc2', + '5421c780-1a1f-4828-af4b-91c8f294887e', 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', + '166.466667', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_manifests') - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifests":[{"digest":"sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792","imageSize":525,"createdTime":"2021-05-28T17:15:14.9483587Z","lastUpdateTime":"2021-05-28T17:15:14.9483587Z","architecture":"amd64","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1","imageSize":525,"createdTime":"2021-05-28T17:15:15.4118286Z","lastUpdateTime":"2021-05-28T17:15:15.4118286Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","imageSize":5325,"createdTime":"2021-05-28T17:15:14.4628999Z","lastUpdateTime":"2021-05-28T17:15:14.4628999Z","mediaType":"application/vnd.docker.distribution.manifest.list.v2+json","tags":["test-delete","test1"],"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:7fed95756fe4ebeb6eb1d82c2176e0800a02807cc66fe48beb179e57c54ddcf1","imageSize":1125,"createdTime":"2021-05-28T17:15:14.9059882Z","lastUpdateTime":"2021-05-28T17:15:14.9059882Z","architecture":"amd64","os":"windows","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90","imageSize":525,"createdTime":"2021-05-28T17:15:14.9821148Z","lastUpdateTime":"2021-05-28T17:15:14.9821148Z","architecture":"mips64le","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343","imageSize":525,"createdTime":"2021-05-28T17:15:14.5645127Z","lastUpdateTime":"2021-05-28T17:15:14.5645127Z","architecture":"arm64","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d","imageSize":525,"createdTime":"2021-05-28T17:15:14.7450353Z","lastUpdateTime":"2021-05-28T17:15:14.7450353Z","architecture":"ppc64le","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98","imageSize":525,"createdTime":"2021-05-28T17:15:15.4979891Z","lastUpdateTime":"2021-05-28T17:15:15.4979891Z","architecture":"386","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf","imageSize":525,"createdTime":"2021-05-28T17:15:14.6725351Z","lastUpdateTime":"2021-05-28T17:15:14.6725351Z","architecture":"s390x","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9","imageSize":525,"createdTime":"2021-05-28T17:15:15.5616283Z","lastUpdateTime":"2021-05-28T17:15:15.5616283Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}}]}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifests":[{"digest":"sha256:04ebe37e000dcd9b1386af0e2d9aad726cbd1581f82067bea5cd2532b1f06310","imageSize":528,"createdTime":"2021-06-11T19:19:17.6685388Z","lastUpdateTime":"2021-06-11T19:19:17.6685388Z","architecture":"ppc64le","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:0dc4e9a14237cae2d8e96e9e310116091c5ed4934448d7cfd22b122778964f11","imageSize":527,"createdTime":"2021-06-11T19:19:17.5875184Z","lastUpdateTime":"2021-06-11T19:19:17.5875184Z","architecture":"mips64le","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:0dd359f0ea0f644cbc1aa467681654c6b4332015ae37af2916b0dfb73b83fd52","imageSize":527,"createdTime":"2021-06-11T19:19:17.6307166Z","lastUpdateTime":"2021-06-11T19:19:17.6307166Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:121373e88baca4c1ef533014de2759e002961de035607dd35d00886b052e37cf","imageSize":527,"createdTime":"2021-06-11T19:19:17.3343432Z","lastUpdateTime":"2021-06-11T19:19:17.3343432Z","architecture":"arm64","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792","imageSize":525,"createdTime":"2021-06-11T19:11:38.3530937Z","lastUpdateTime":"2021-06-11T19:11:38.3530937Z","architecture":"amd64","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1","imageSize":525,"createdTime":"2021-06-01T17:44:41.0103898Z","lastUpdateTime":"2021-06-01T17:44:41.0103898Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","imageSize":5325,"createdTime":"2021-06-01T17:44:41.177556Z","lastUpdateTime":"2021-06-01T17:44:41.177556Z","mediaType":"application/vnd.docker.distribution.manifest.list.v2+json","tags":["latest"],"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:7fed95756fe4ebeb6eb1d82c2176e0800a02807cc66fe48beb179e57c54ddcf1","imageSize":1125,"createdTime":"2021-06-01T17:44:41.7420809Z","lastUpdateTime":"2021-06-01T17:44:41.7420809Z","architecture":"amd64","os":"windows","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:842295d11871c16bbce4d30cabc9b0f1e0cc40e49975f538179529d7798f77d8","imageSize":527,"createdTime":"2021-06-11T19:19:17.2116157Z","lastUpdateTime":"2021-06-11T19:19:17.2116157Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90","imageSize":525,"createdTime":"2021-06-01T17:44:41.9901717Z","lastUpdateTime":"2021-06-01T17:44:41.9901717Z","architecture":"mips64le","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:90e120baffe5afa60dd5a24abcd051db49bd6aee391174da5e825ee6ee5a12a0","imageSize":1125,"createdTime":"2021-06-11T19:11:39.292044Z","lastUpdateTime":"2021-06-11T19:11:39.292044Z","architecture":"amd64","os":"windows","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:930490f97e5b921535c153e0e7110d251134cc4b72bbb8133c6a5065cc68580d","imageSize":4745,"createdTime":"2021-06-11T19:19:16.7766065Z","lastUpdateTime":"2021-06-11T19:19:16.7766065Z","mediaType":"application/vnd.docker.distribution.manifest.list.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343","imageSize":525,"createdTime":"2021-06-01T17:44:41.698893Z","lastUpdateTime":"2021-06-01T17:44:41.698893Z","architecture":"arm64","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:9cd47e9327430990c932b19596f8760e7d1a0be0311bb31bab3170bec5f27358","imageSize":527,"createdTime":"2021-06-11T19:19:16.8871039Z","lastUpdateTime":"2021-06-11T19:19:16.8871039Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:9f6ad537c5132bcce57f7a0a20e317228d382c3cd61edae14650eec68b2b345c","imageSize":5325,"createdTime":"2021-06-11T19:11:38.2304296Z","lastUpdateTime":"2021-06-11T19:11:38.2304296Z","mediaType":"application/vnd.docker.distribution.manifest.list.v2+json","tags":["test-delete","test1"],"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d","imageSize":525,"createdTime":"2021-06-01T17:44:41.6023044Z","lastUpdateTime":"2021-06-01T17:44:41.6023044Z","architecture":"ppc64le","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:c10e75f6e5442f446b7c053ff2f360a4052f759c59be9a4c7d144f60207c6eda","imageSize":528,"createdTime":"2021-06-11T19:19:18.1427653Z","lastUpdateTime":"2021-06-11T19:19:18.1427653Z","architecture":"s390x","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98","imageSize":525,"createdTime":"2021-06-01T17:44:41.5396886Z","lastUpdateTime":"2021-06-01T17:44:41.5396886Z","architecture":"386","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:ccff0c7e8498c0bd8d4705e663084c25810fd064a184671a050e1a43b86fb091","imageSize":527,"createdTime":"2021-06-11T19:19:17.7388458Z","lastUpdateTime":"2021-06-11T19:19:17.7388458Z","architecture":"386","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:dca71257cd2e72840a21f0323234bb2e33fea6d949fa0f21c5102146f583486b","imageSize":527,"createdTime":"2021-06-11T19:19:16.6208398Z","lastUpdateTime":"2021-06-11T19:19:16.6208398Z","architecture":"amd64","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf","imageSize":525,"createdTime":"2021-06-01T17:44:41.8244996Z","lastUpdateTime":"2021-06-01T17:44:41.8244996Z","architecture":"s390x","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}},{"digest":"sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9","imageSize":525,"createdTime":"2021-06-01T17:44:40.7616804Z","lastUpdateTime":"2021-06-01T17:44:40.7616804Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:16 GMT', + 'Fri, 11 Jun 2021 20:57:40 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -179,7 +215,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'cb35e444-6e13-4aec-9472-732174596e4a', + '0046ebfb-411e-4ddb-a256-d59c19b36a9b', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.js index 875f7135c2ff..26b95c5fe6e8 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.js @@ -1,44 +1,9 @@ let nock = require('nock'); -module.exports.hash = "b23998967742a3178b89fd7e848e3f73"; +module.exports.hash = "a973c7374bb7918071a247010abd032d"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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', - '621ce2df-3c47-49f3-93e4-a2abb5cf6500', - 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZAwAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:16 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 28 May 2021 22:16:16 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_manifests') .query(true) @@ -46,13 +11,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:16 GMT', + 'Fri, 11 Jun 2021 20:57:40 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -66,24 +31,93 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'c398bd9a-9816-4031-9259-c0d4ec29864d', + '2448b4d4-34d8-4aa4-944c-83ef58a6d217', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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', + 'd77658f4-aa31-47f8-87cf-6c11d3c04500', + 'x-ms-ests-server', + '2.1.11829.4 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzBQAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:40 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr9-o088aunlLhqq3JbXBdfoqkM9NIX2cvnxpdObXevUJX3zE-LmBduEVh9okIGbVuQcb_JdNGbqM9fK09raGMZ-8BJAHfmuxgph5C1W-xKZvomqGnvcrs2ggPNFpfBPlPVT7pJyAwZrK9bCacfMqYOwZWl-YcFAViMKfG83kTLf8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:39 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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', + '9ef8c751-310d-489b-8072-ccc6fff42400', + 'x-ms-ests-server', + '2.1.11829.4 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzBQAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:40 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrkht4Fludz0vH896sGgknDpuzwncOJrDe5_Q_mCiN-WM-8fE-2jAZVOjsCaPnAY0rD3S40qBlOj3lZnzCFNxRPder0oYE_gX08aWYGk1TfcIYbYR2NNQj1jxA-3_eURICvMz0HXFYlCHmpgwaghCFysVYZ_DNxJULe8MClPg9-EsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:39 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=04fefff4-0ee5-4351-8329-3ee390b1ea62&client_secret=azure_client_secret") .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-Length', - '1361', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -95,19 +129,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '425c4443-000f-4a97-90d1-0af41e866f00', + '2bf40093-fa20-4d30-b3a3-33ba71591e00', 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', + '2.1.11829.4 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZBAAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:16 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzBgAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:40 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Fri, 28 May 2021 22:16:16 GMT', - 'Connection', - 'close' + 'Fri, 11 Jun 2021 20:57:40 GMT', + 'Content-Length', + '1351' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -116,17 +152,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:17 GMT', + 'Fri, 11 Jun 2021 20:57:44 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'ccd28b2a-207f-4067-a5b6-da4d7d06fcda', + '1925f4d1-ae15-49ee-95a8-ba0d9c19ee28', 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', + '166.45', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -137,17 +173,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:17 GMT', + 'Fri, 11 Jun 2021 20:57:45 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'dee534d9-ccf3-4802-98a7-01d7c4bf2ba1', + '537a37ec-5fb7-4a1b-8dd8-03f03a9ac275', 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', + '166.433333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -155,17 +191,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_manifests') .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifests":[{"digest":"sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792","imageSize":525,"createdTime":"2021-05-28T17:15:14.9483587Z","lastUpdateTime":"2021-05-28T17:15:14.9483587Z","architecture":"amd64","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}}]}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifests":[{"digest":"sha256:04ebe37e000dcd9b1386af0e2d9aad726cbd1581f82067bea5cd2532b1f06310","imageSize":528,"createdTime":"2021-06-11T19:19:17.6685388Z","lastUpdateTime":"2021-06-11T19:19:17.6685388Z","architecture":"ppc64le","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:17 GMT', + 'Fri, 11 Jun 2021 20:57:45 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', - '512', + '514', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -177,13 +213,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Docker-Distribution-Api-Version', 'registry/2.0', 'Link', - '; rel="next"', + '; rel="next"', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'e43a3f74-59d4-4ee2-a8cc-34a1a7240d9a', + 'a87a6f68-edb7-4d4e-bcb0-96f544ee4c25', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -195,13 +231,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:18 GMT', + 'Fri, 11 Jun 2021 20:57:45 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -215,11 +251,11 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'e0413ad0-0fb7-4f2a-b3c8-04cabf9c9ee6', + '98ddee40-c424-4cdb-8874-e0254ae3e004', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -230,17 +266,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:18 GMT', + 'Fri, 11 Jun 2021 20:57:45 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '1ba1e20a-44bf-46f0-a70a-c928fbe61ad8', + 'dd855c08-ba27-4dd9-a5c3-86be9546b382', 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', + '166.416667', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -248,17 +284,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_manifests') .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifests":[{"digest":"sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1","imageSize":525,"createdTime":"2021-05-28T17:15:15.4118286Z","lastUpdateTime":"2021-05-28T17:15:15.4118286Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}}]}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifests":[{"digest":"sha256:0dc4e9a14237cae2d8e96e9e310116091c5ed4934448d7cfd22b122778964f11","imageSize":527,"createdTime":"2021-06-11T19:19:17.5875184Z","lastUpdateTime":"2021-06-11T19:19:17.5875184Z","architecture":"mips64le","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:18 GMT', + 'Fri, 11 Jun 2021 20:57:45 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', - '510', + '515', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -270,13 +306,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Docker-Distribution-Api-Version', 'registry/2.0', 'Link', - '; rel="next"', + '; rel="next"', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '25820cb9-ac49-4550-a39e-2f3ded0e639d', + 'fc20dbc1-3d40-4494-a773-d6b08e531d00', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.js index 67153d035795..4d260c7b2402 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.js @@ -1,44 +1,9 @@ let nock = require('nock'); -module.exports.hash = "eb10b621759d8997ae90ca6946ad4da7"; +module.exports.hash = "aa22a3e39f1251356824caa4a409b64d"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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-Length', - '1361', - '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', - '09e4f758-ca61-40f9-9acb-7083edd16a00', - 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZBQAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16: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', - 'Fri, 28 May 2021 22:16:18 GMT', - 'Connection', - 'close' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_manifests') .query(true) @@ -46,13 +11,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:19 GMT', + 'Fri, 11 Jun 2021 20:57:45 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -66,17 +31,88 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '9f6b0a5d-70e3-483b-a2da-3b0ef152889e', + '769155c9-d48e-4d36-844a-8029dc4e72d1', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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', + '154fd345-3e71-4e08-846f-8f7aede90b00', + 'x-ms-ests-server', + '2.1.11787.15 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzBgAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:45 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevroOSjnqNm7-w_NovJ_LueuJLdSoCeK2_qp-YGTAey4zRYYcjK4r9-H3cRYGA49RMxD9f_4xlWyEBhnIvzg3HjJfrmsMumRSuMFkdlBe5XAEs-RNaIJw91OrZg023nQmyyVINDgRAzC2olSLjPs837PTp-nU-odu3anJ1zLXJxlBggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:44 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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', + 'fc3bfabd-86dd-4b3e-ac2f-fd93d2df2e00', + 'x-ms-ests-server', + '2.1.11829.4 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzBgAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:45 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrhqn_hv_n_-HdrWgyJhz_aEuWlpG1YRElgyGS-dz7hy60Dxuj6QHao4d9VU00oaUyNoE3TNAEhE7TGmSXTF5hhDZ8wBzZtSVzY9WQrTLfCwLovOPkvLuVMt31utFOVvw5W2FtkpLhdO9UY1PQLEd_3-p-GT1pBqoJe-NjLzYzKHkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:45 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=63e5df48-7ae2-47d1-b9b1-73589e417401&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,21 +129,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '7b19cf90-698a-4a43-a10a-948d62040100', + '8eff5ce1-7810-46e2-abe5-bdb8de0b2500', 'x-ms-ests-server', - '2.1.11722.26 - SCUS ProdSlices', + '2.1.11829.4 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZBgAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:19 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzBwAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:45 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Fri, 28 May 2021 22:16:18 GMT', - 'Connection', - 'close', + 'Fri, 11 Jun 2021 20:57:45 GMT', 'Content-Length', - '1361' + '1351' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -116,17 +152,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:20 GMT', + 'Fri, 11 Jun 2021 20:57:45 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'b3d75838-5c42-43ed-928b-225c1b8fe3dc', + '54b1932c-525d-464f-a6d1-f6045b8befb7', 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', + '166.4', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -137,17 +173,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:20 GMT', + 'Fri, 11 Jun 2021 20:57:46 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'ef56d581-8b10-43c8-a1f9-328a5661349e', + '7ae42358-f926-4bf3-b583-f605e3ed478f', 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', + '166.383333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -155,17 +191,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_manifests') .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifests":[{"digest":"sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1","imageSize":525,"createdTime":"2021-05-28T17:15:15.4118286Z","lastUpdateTime":"2021-05-28T17:15:15.4118286Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}}]}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifests":[{"digest":"sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1","imageSize":525,"createdTime":"2021-06-01T17:44:41.0103898Z","lastUpdateTime":"2021-06-01T17:44:41.0103898Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineState":"Passed"}}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:20 GMT', + 'Fri, 11 Jun 2021 20:57:46 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '510', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -183,7 +219,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '7834196c-87ef-4b02-b1b4-32aab47e5876', + 'a391a31c-426a-48d5-8cab-dfb878a977cb', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags.js index 21dcbff5e41c..2d01cd891c52 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags.js @@ -1,57 +1,22 @@ let nock = require('nock'); -module.exports.hash = "785adf0c604a66bdf97f6c0173a0030f"; +module.exports.hash = "5426876f4ab3a5f4cbf34f023bfe73a4"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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', - 'bac72e3b-09ce-432e-bed8-344fc5816a00', - 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZBwAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:20 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 28 May 2021 22:16:20 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_tags') .reply(401, {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/hello-world","Action":"metadata_read"}]}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:21 GMT', + 'Fri, 11 Jun 2021 20:57:46 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -65,17 +30,88 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'c07be7f6-d80b-4bbe-8ccd-1581443014c6', + 'a88b123c-8007-481a-a449-ee26d55f5683', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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', + 'e0306421-cbb7-469b-a16e-3cf0e6ae8300', + 'x-ms-ests-server', + '2.1.11787.14 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzBwAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:46 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXEey7jxsi-QQww97W8wxs4P1br-ofTzIQ0YD1VjB-NY4o2ghwOatBASaKGV_JbI8UVOeOpTAj4BAfs9zsXG5RR6d5tRY0kUPTz2bxmle8k34MIvBfaEB-W7nLJDro8XQEUiQBgSIkdtUgJndIqzCkYwpJHHoKH1Ed5c2NS7ASr8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:45 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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-Length', + '1753', + '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', + 'e9e6da3a-a667-4809-8a8d-6283596c1e00', + 'x-ms-ests-server', + '2.1.11829.4 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzBwAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:46 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_jVHxpfL1eipMJL5zHoen_MgAPIPpHwSD9YZtzcWFKkVrxSRTE1dSoL5u0GmVkJCanquav9lzFewQnbkQkiL9TIiskAlH94D_00xyj8ZCGn1pzpgBdqw4qDtMsd9-PCfEUl9z_BA1RR0_WxVibgW0-irsTdYsoqYZiTUQy5FlQggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:45 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=bff586a4-5577-49ab-9940-ffdebd7efcf0&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -92,21 +128,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '8fbd010b-ac0a-470f-8a3d-f02aa2826b00', + '09812398-8d6a-43fb-a840-400a864b2c00', 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', + '2.1.11829.4 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZCAAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzCAAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:46 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Fri, 28 May 2021 22:16:20 GMT', - 'Connection', - 'close', + 'Fri, 11 Jun 2021 20:57:46 GMT', 'Content-Length', - '1361' + '1351' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -115,17 +151,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:21 GMT', + 'Fri, 11 Jun 2021 20:57:46 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'b81bd4b9-b68c-472a-91e4-6d839290accb', + '449cefd5-23db-4373-88c2-8a8e01f8df05', 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', + '166.366667', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -136,34 +172,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:22 GMT', + 'Fri, 11 Jun 2021 20:57:46 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'cff1e0bd-29ea-41f3-9ffd-a21d4b127694', + '036c40ed-23d4-45d2-a8fb-457f0333318e', 'x-ms-ratelimit-remaining-calls-per-second', - '166.616667', + '166.35', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_tags') - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tags":[{"name":"test-delete","digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","createdTime":"2021-05-28T22:14:58.5369957Z","lastUpdateTime":"2021-05-28T22:14:58.5369957Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"name":"test1","digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","createdTime":"2021-05-28T17:15:15.2790632Z","lastUpdateTime":"2021-05-28T17:15:15.2790632Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}]}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tags":[{"name":"latest","digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","createdTime":"2021-06-01T17:44:40.8107647Z","lastUpdateTime":"2021-06-01T17:44:40.8107647Z","signed":false,"quarantineState":"Passed","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"name":"test-delete","digest":"sha256:9f6ad537c5132bcce57f7a0a20e317228d382c3cd61edae14650eec68b2b345c","createdTime":"2021-06-11T20:52:09.4222122Z","lastUpdateTime":"2021-06-11T20:52:29.2675929Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"name":"test1","digest":"sha256:9f6ad537c5132bcce57f7a0a20e317228d382c3cd61edae14650eec68b2b345c","createdTime":"2021-06-11T19:11:38.7001063Z","lastUpdateTime":"2021-06-11T20:52:28.5096814Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:22 GMT', + 'Fri, 11 Jun 2021 20:57:46 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', - '709', + '1049', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -179,7 +215,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '2632d816-91bd-411b-bda3-1137d55e290d', + 'ce480507-3554-43d4-b76a-1c0c3359d654', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages.js index 4ac14585c506..462735d881f3 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages.js @@ -1,44 +1,9 @@ let nock = require('nock'); -module.exports.hash = "93e3ca0edbddaa36615555734b851aa3"; +module.exports.hash = "18b81bb928f6edcd687781b6d52a05ff"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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', - 'b28d4b76-8e3f-495b-9a01-305767136400', - 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZCQAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:22 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 28 May 2021 22:16:22 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_tags') .query(true) @@ -46,13 +11,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:22 GMT', + 'Fri, 11 Jun 2021 20:57:47 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -66,17 +31,88 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '03b9f3a8-9bb4-4e20-97ed-96d802e86e89', + '62b827e0-fd76-4b58-b7d1-129d5620a96e', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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', + 'b748b5c1-d107-471d-ab59-40c39e7a7d00', + 'x-ms-ests-server', + '2.1.11787.14 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzCAAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:47 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-CSltnb6a22M5Omej71mhRdjIoUUKG70CrbeGkZt3Cn2iPWLzQ6bzPCVX5UoD1bJa86Mg4sWEX19ZM9Py8P4B-6mIny0ZzFHiuCXryKP-4IUh7Z4haH4uB8Fq0Jb_45YO4IbZT0loyvTCqwhMQwkeVDA5Vrec-WulpBNCBElUwcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:46 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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-Length', + '1753', + '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', + 'd176eb4a-f2fb-4e3d-869c-36c637761f00', + 'x-ms-ests-server', + '2.1.11829.4 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzCAAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:47 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQWoowfz-0SB5IuvblhKoUR4MQCrJHCgillgqIrZM1LZCAMZAlC1YEurVMJYN9uucRC0vVax9GMgGhz85g8uqAYj1riPTdZ7hGzWkTe-9EfIqnQtv0ghwjxwyQzvblcwvREKXl3xDwRf6K-_4s7laAshYoJXJ1VW8PZboroepwZQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:46 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=9468eee8-d3c2-44dc-8669-f65f39ec2b35&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,21 +129,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'fe7d9dab-f40c-4e28-a7c8-a2118ff00300', + '8eff5ce1-7810-46e2-abe5-bdb8180c2500', 'x-ms-ests-server', - '2.1.11722.26 - WUS2 ProdSlices', + '2.1.11829.4 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZCgAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzCQAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:47 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Fri, 28 May 2021 22:16:22 GMT', - 'Connection', - 'close', + 'Fri, 11 Jun 2021 20:57:46 GMT', 'Content-Length', - '1361' + '1351' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -116,17 +152,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:23 GMT', + 'Fri, 11 Jun 2021 20:57:47 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'ba1ccb36-8b0e-474e-9e37-b18c47d98ade', + '4aa2d81b-014d-449d-803f-e87ad8f0c3bc', 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', + '166.333333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -137,17 +173,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:23 GMT', + 'Fri, 11 Jun 2021 20:57:47 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'b0b285bc-e01f-4bed-9ce0-9d12b09ab608', + 'a377000e-ed47-4a08-b0cf-53bc79ddbdbd', 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', + '166.316667', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -155,17 +191,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_tags') .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tags":[{"name":"test-delete","digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","createdTime":"2021-05-28T22:14:58.5369957Z","lastUpdateTime":"2021-05-28T22:14:58.5369957Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}]}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tags":[{"name":"latest","digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","createdTime":"2021-06-01T17:44:40.8107647Z","lastUpdateTime":"2021-06-01T17:44:40.8107647Z","signed":false,"quarantineState":"Passed","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:24 GMT', + 'Fri, 11 Jun 2021 20:57:47 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', - '397', + '419', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -177,13 +213,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Docker-Distribution-Api-Version', 'registry/2.0', 'Link', - '; rel="next"', + '; rel="next"', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'e100a325-292c-40fa-a45c-6abcfab6a8b7', + '1d5100c3-334d-4e98-b971-a6adfa447a77', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -195,13 +231,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:24 GMT', + 'Fri, 11 Jun 2021 20:57:47 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -215,11 +251,11 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'b243313f-96fc-403b-9adb-9fcc8579b52c', + '47fc79ee-468a-46da-83e6-0e5dc257b131', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -230,17 +266,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:24 GMT', + 'Fri, 11 Jun 2021 20:57:47 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '0186649b-2744-4199-b708-e22d45b655c2', + '443f72f8-1b6e-47b4-a667-7ac0fa2b83a7', 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', + '166.3', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -248,17 +284,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_tags') .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tags":[{"name":"test1","digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","createdTime":"2021-05-28T17:15:15.2790632Z","lastUpdateTime":"2021-05-28T17:15:15.2790632Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}]}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tags":[{"name":"test-delete","digest":"sha256:9f6ad537c5132bcce57f7a0a20e317228d382c3cd61edae14650eec68b2b345c","createdTime":"2021-06-11T20:52:09.4222122Z","lastUpdateTime":"2021-06-11T20:52:29.2675929Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:24 GMT', + 'Fri, 11 Jun 2021 20:57:47 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', - '391', + '397', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -269,12 +305,14 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Ms-Correlation-Request-Id', 'Docker-Distribution-Api-Version', 'registry/2.0', + 'Link', + '; rel="next"', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '49183fd6-ff1a-44a3-8511-85e380a8390a', + '754041d8-6829-442e-bafb-3627d85fee8b', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.js index 7aeeadb5b97f..cb08c964ddc6 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.js @@ -1,44 +1,9 @@ let nock = require('nock'); -module.exports.hash = "87f18837e2a3025aee8012c08679c922"; +module.exports.hash = "cc1022cc24a299e1af11ed27772447ec"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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', - '8a235782-f4f3-4aeb-9e34-70ed19d80400', - 'x-ms-ests-server', - '2.1.11722.26 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZCwAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:25 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 28 May 2021 22:16:24 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_tags') .query(true) @@ -46,13 +11,13 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:25 GMT', + 'Fri, 11 Jun 2021 20:57:47 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -66,17 +31,88 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '49d829ba-a7e9-45aa-8121-8ff6151f1586', + '532168b7-fd23-417e-8e90-7f97fb3fcd7b', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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', + 'c7c7f531-27d2-4134-be04-3f01a3864200', + 'x-ms-ests-server', + '2.1.11829.4 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzCQAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:47 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrlLMaR92Q9b6FyRQTMA-42qSEYGVQj-OmJ7yGGzbndkZWblesnn_3c0YelE3r6YTWn112Xqluw-FxPHNR1SQzvo8ArLWlgsNeohHxBz_St9xWjfbImgfYrAEA0qjAf-h53UngPW8vHLkxD89hGhQaajHeDP_68wjZPyN8i5L_THYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:47 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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', + '86d1ccf2-51fd-4060-a2d7-afc14d932700', + 'x-ms-ests-server', + '2.1.11829.4 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzCQAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:47 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJOxocyq3BCTqWLz-mc3YVD8Ocr5hMnceWuTTrTXtSZlI4OtfY3hJVxfB5C1YkAHqj8Vj0v3N7TaovNF615x4MY7wAgg6vkD8Wb_SslqPsHvjqb55ZKQZMMqw39H1GLxdapIFt8eHjZAiltoC4nVBmZcnCiu_tcyI7KcuOHqRcpIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:47 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=e7738370-cd91-4275-a8c6-de834c80256f&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,21 +129,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '34245981-becc-44c3-9598-2d86c6540100', + 'd176eb4a-f2fb-4e3d-869c-36c661761f00', 'x-ms-ests-server', - '2.1.11722.26 - SCUS ProdSlices', + '2.1.11829.4 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZDAAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:25 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzCgAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:47 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Fri, 28 May 2021 22:16:25 GMT', - 'Connection', - 'close', + 'Fri, 11 Jun 2021 20:57:47 GMT', 'Content-Length', - '1361' + '1351' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -116,17 +152,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:25 GMT', + 'Fri, 11 Jun 2021 20:57:48 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '4f6f679d-8e39-45b1-aa7a-7294be214ab0', + '1d5ca986-b281-4e67-86f1-611608de5674', 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', + '166.283333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -137,17 +173,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:26 GMT', + 'Fri, 11 Jun 2021 20:57:48 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '9986c092-7be1-46e5-ae7d-fc98c5fefced', + 'fd05aa69-4106-4d24-9232-e417bad0986c', 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', + '166.266667', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -155,17 +191,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_tags') .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tags":[{"name":"test1","digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","createdTime":"2021-05-28T17:15:15.2790632Z","lastUpdateTime":"2021-05-28T17:15:15.2790632Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}]}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tags":[{"name":"test1","digest":"sha256:9f6ad537c5132bcce57f7a0a20e317228d382c3cd61edae14650eec68b2b345c","createdTime":"2021-06-11T19:11:38.7001063Z","lastUpdateTime":"2021-06-11T20:52:28.5096814Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:26 GMT', + 'Fri, 11 Jun 2021 20:57:48 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '391', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -181,7 +217,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '24b3c3ca-6413-450b-b875-a2d94b7d9661', + 'dba79b12-af49-49c3-98ab-1e86b402d299', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.js index f87e908c67a6..e8e95249c6fb 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.js @@ -1,57 +1,22 @@ let nock = require('nock'); -module.exports.hash = "60e74ab8e3223d009ad58cf900091d80"; +module.exports.hash = "238312057b0c31e8da7ba845fdaa2473"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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', - '4182c83c-94a0-4547-94b5-1071399a0000', - 'x-ms-ests-server', - '2.1.11722.26 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZFAAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:38 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 28 May 2021 22:16:37 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_manifests/sha256%3A50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1') .reply(401, {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/hello-world","Action":"metadata_read"}]}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:38 GMT', + 'Fri, 11 Jun 2021 20:57:52 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -65,17 +30,88 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '9cd9cbe6-a892-4da0-bd07-64356d6a8819', + 'd0058d0e-b119-4c3c-a992-241bebea9e93', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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', + 'a26e73f4-9a04-4536-8228-53fe88101901', + 'x-ms-ests-server', + '2.1.11787.14 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzDgAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:52 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrWzoYRVtQWA7bsJHsDWAeXFkdMPuwe2YjgooRm9rHVhSqbEdqNb0_pDdSWP_OtJRJKFk_9_1v8o00wnxCCYtNHK-BZsuU_Fr-EVPB2OQxU45UblWrzYD6yYylbk5WuyLgwR1cfJLdSVBfNKmTjsp_aqeGaULdW0z9sWzcE3OTGQAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:51 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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', + 'e103eda3-a593-46e5-87ac-6a61224b2700', + 'x-ms-ests-server', + '2.1.11829.4 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzDgAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:52 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr9JlD3UpxRrLf8QA_I_0bHAEG7MfbMFdgrfELN7qI9lUeB4HOPsUDaJJRIK842zvcS0OmWKHc2ge9EcyC4i-4Y8VsO7vZQCTG6AIYCdCth__fhiupwzzAHL3QVW3jUAW3Yle50rp-SHzlbHm2XobnSzuW3cbHXQbfSRpKkiGsJdAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:51 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=aec6aabd-cd83-49ac-a3a0-eec9f757cc0a&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -92,21 +128,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'e726e29a-b6c3-4e9d-b3a0-ee1323a10300', + '4f277822-3e6d-4d06-a5b2-f9b55e8a2800', 'x-ms-ests-server', - '2.1.11722.26 - WUS2 ProdSlices', + '2.1.11829.4 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZFAAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:38 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzDwAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:52 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Fri, 28 May 2021 22:16:37 GMT', - 'Connection', - 'close', + 'Fri, 11 Jun 2021 20:57:51 GMT', 'Content-Length', - '1361' + '1351' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -115,17 +151,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:38 GMT', + 'Fri, 11 Jun 2021 20:57:52 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '331c04dd-47e9-435d-b4a3-f0b61f45a9a1', + '14227461-c5c3-49ee-be0f-bd293c4f4c90', 'x-ms-ratelimit-remaining-calls-per-second', - '166.583333', + '166.033333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -136,34 +172,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:39 GMT', + 'Fri, 11 Jun 2021 20:57:52 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '9a3d3132-5667-4673-b74b-9d922e43ba8e', + '527c9405-a865-49fc-adcf-1f759bbfc7f8', 'x-ms-ratelimit-remaining-calls-per-second', - '166.6', + '166.016667', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_manifests/sha256%3A50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1') - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1","imageSize":525,"createdTime":"2021-05-28T17:15:15.4118286Z","lastUpdateTime":"2021-05-28T17:15:15.4118286Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineDetails":"{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"5/28/2021 10:14:59 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}","quarantineState":"Passed"}}}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1","imageSize":525,"createdTime":"2021-06-01T17:44:41.0103898Z","lastUpdateTime":"2021-06-01T17:44:41.0103898Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true,"quarantineDetails":"{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"6/11/2021 8:52:30 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}","quarantineState":"Passed"}}}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:39 GMT', + 'Fri, 11 Jun 2021 20:57:52 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', - '821', + '820', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -179,7 +215,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '6e820653-46d7-4095-a2f5-0bf6a52a8832', + '3f9fed31-134e-45c0-bfb6-0b6fad592529', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.js index 91a6adc556cf..90fe93ed7430 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.js @@ -1,57 +1,22 @@ let nock = require('nock'); -module.exports.hash = "964f80c9b84511975de7425ed386b91d"; +module.exports.hash = "f799251912cb2763f9c206835303099f"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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', - 'c194844c-0661-4a44-83ad-b8ba6c476d00', - 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZEwAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:35 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 28 May 2021 22:16:35 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_tags/test1') .reply(401, {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/hello-world","Action":"metadata_read"}]}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:35 GMT', + 'Fri, 11 Jun 2021 20:57:51 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -65,17 +30,88 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '739011b8-b390-402d-bf8b-ce1bebaadeed', + 'a10a7876-4538-47fb-a585-8637afbb93b7', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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', + '598d4333-9276-4cab-b0d0-4fc7abcaf600', + 'x-ms-ests-server', + '2.1.11787.14 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzDQAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:51 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4Sdv-0zZdh4JSItejyzuFufK06Sc31cox4-WvXaJf5hv97FNqZhswtpdeHXEg3x2QQRufSS7x9n2knQvxRQaS3eMgHXN1h6yyh_Maj6hQpBGPtZK9vhD8_ENuH2YiaXivZtv7mbTgB7kSLvGNF-GZ1P9eDenywpyR7YMlg00BHkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:51 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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-Length', + '1753', + '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', + 'e103eda3-a593-46e5-87ac-6a61004b2700', + 'x-ms-ests-server', + '2.1.11829.4 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzDQAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:51 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrSR8q-40ZisAOTPFfGqdep22TYDxUPzMLFPTtE4UshWwLcC_J0AHD9st1VgeU9nqy3PYvpS3RN7NnX4Rqckdzgykon-cCxaRLA_AExSS1ZSn-cITnEN7_y_eOWrpAU0fZ14tU3P17YpXlxUOZktigla3D0oQB--mPuBh2NGMUpIggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:51 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=b63b0f54-4ea4-426d-9065-15e32c0908c2&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -92,21 +128,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'bac72e3b-09ce-432e-bed8-344f01846a00', + '75d79032-9687-4997-974b-357e7d512800', 'x-ms-ests-server', - '2.1.11722.21 - EUS ProdSlices', + '2.1.11829.4 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZFAAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:36 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzDgAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:51 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Fri, 28 May 2021 22:16:35 GMT', - 'Connection', - 'close', + 'Fri, 11 Jun 2021 20:57:51 GMT', 'Content-Length', - '1361' + '1351' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -115,17 +151,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:36 GMT', + 'Fri, 11 Jun 2021 20:57:52 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '36df98a9-7e7e-4c78-8e50-3d6d075cf4a3', + '1876b125-4801-4397-ac1b-4bbf72e40fd1', 'x-ms-ratelimit-remaining-calls-per-second', - '166.583333', + '166.083333', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -136,34 +172,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:36 GMT', + 'Fri, 11 Jun 2021 20:57:52 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - 'e2f59495-266e-4ed9-a70b-64fd1d15cb78', + 'a91ab7a3-ce7d-4c33-a8b2-e2fc83c16cc2', 'x-ms-ratelimit-remaining-calls-per-second', - '166.6', + '166.066667', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_tags/test1') - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tag":{"name":"test1","digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","createdTime":"2021-05-28T17:15:15.2790632Z","lastUpdateTime":"2021-05-28T17:15:15.2790632Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tag":{"name":"test1","digest":"sha256:9f6ad537c5132bcce57f7a0a20e317228d382c3cd61edae14650eec68b2b345c","createdTime":"2021-06-11T19:11:38.7001063Z","lastUpdateTime":"2021-06-11T20:52:28.5096814Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:36 GMT', + 'Fri, 11 Jun 2021 20:57:52 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '388', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -179,24 +215,24 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '492da428-16bf-454b-ba3d-b3a220c451f9', + 'a1fd011c-5187-4d24-9bb5-c91aab9761b4', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_manifests/sha256%3A5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c') + .get('/acr/v1/library%2Fhello-world/_manifests/sha256%3A9f6ad537c5132bcce57f7a0a20e317228d382c3cd61edae14650eec68b2b345c') .reply(401, {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/hello-world","Action":"metadata_read"}]}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:37 GMT', + 'Fri, 11 Jun 2021 20:57:52 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -210,11 +246,11 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '9e748231-c1ad-4e46-8c4d-7c36ceea4626', + 'c0823732-a265-4586-9e26-26807ae66704', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -225,34 +261,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:37 GMT', + 'Fri, 11 Jun 2021 20:57:52 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '76a20e50-e7e0-4fc7-a21a-edf7f75877e8', + '64c68946-0a40-489a-9431-ecb829370ebf', 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', + '166.05', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_manifests/sha256%3A5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c') - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","imageSize":5325,"createdTime":"2021-05-28T17:15:14.4628999Z","lastUpdateTime":"2021-05-28T17:15:14.4628999Z","mediaType":"application/vnd.docker.distribution.manifest.list.v2+json","tags":["test-delete","test1"],"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true},"references":[{"digest":"sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792","architecture":"amd64","os":"linux"},{"digest":"sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9","architecture":"arm","os":"linux"},{"digest":"sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1","architecture":"arm","os":"linux"},{"digest":"sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343","architecture":"arm64","os":"linux"},{"digest":"sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98","architecture":"386","os":"linux"},{"digest":"sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90","architecture":"mips64le","os":"linux"},{"digest":"sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d","architecture":"ppc64le","os":"linux"},{"digest":"sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf","architecture":"s390x","os":"linux"},{"digest":"sha256:7fed95756fe4ebeb6eb1d82c2176e0800a02807cc66fe48beb179e57c54ddcf1","architecture":"amd64","os":"windows"}]}}, [ + .get('/acr/v1/library%2Fhello-world/_manifests/sha256%3A9f6ad537c5132bcce57f7a0a20e317228d382c3cd61edae14650eec68b2b345c') + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:9f6ad537c5132bcce57f7a0a20e317228d382c3cd61edae14650eec68b2b345c","imageSize":5325,"createdTime":"2021-06-11T19:11:38.2304296Z","lastUpdateTime":"2021-06-11T19:11:38.2304296Z","mediaType":"application/vnd.docker.distribution.manifest.list.v2+json","tags":["test-delete","test1"],"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true},"references":[{"digest":"sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792","architecture":"amd64","os":"linux"},{"digest":"sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9","architecture":"arm","os":"linux"},{"digest":"sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1","architecture":"arm","os":"linux"},{"digest":"sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343","architecture":"arm64","os":"linux"},{"digest":"sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98","architecture":"386","os":"linux"},{"digest":"sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90","architecture":"mips64le","os":"linux"},{"digest":"sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d","architecture":"ppc64le","os":"linux"},{"digest":"sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf","architecture":"s390x","os":"linux"},{"digest":"sha256:90e120baffe5afa60dd5a24abcd051db49bd6aee391174da5e825ee6ee5a12a0","architecture":"amd64","os":"windows"}]}}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:37 GMT', + 'Fri, 11 Jun 2021 20:57:52 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '1588', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -268,7 +304,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - '6dc4d75f-5d32-4a3a-bf51-a744349422e4', + 'f2833dbf-b8ca-49f5-9fb5-9eafae053b87', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_tag_properties.js b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_tag_properties.js index 10c34bbd444f..4a41f108c770 100644 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_tag_properties.js +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_tag_properties.js @@ -1,57 +1,22 @@ let nock = require('nock'); -module.exports.hash = "1380d803afa0ba41479dc915e7c88db0"; +module.exports.hash = "28a852a5d36d4dde8b78d65787fed475"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") - .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', - 'e0fc30fc-3fd0-4399-a18b-be70f5e90000', - 'x-ms-ests-server', - '2.1.11722.26 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZEQAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:34 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Fri, 28 May 2021 22:16:33 GMT', - 'Connection', - 'close', - 'Content-Length', - '1361' -]); - nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_tags/test1') .reply(401, {"errors":[{"code":"UNAUTHORIZED","message":"authentication required, visit https://aka.ms/acr/authorization for more information.","detail":[{"Type":"repository","Name":"library/hello-world","Action":"metadata_read"}]}]}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:34 GMT', + 'Fri, 11 Jun 2021 20:57:50 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '222', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -65,17 +30,88 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains', 'Www-Authenticate', - 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read",error="invalid_token"', + 'Bearer realm="https://myregistry.azurecr.io/oauth2/token",service="myregistry.azurecr.io",scope="repository:library/hello-world:metadata_read"', 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'a61b3c0f-0d35-4146-b16f-8377cfb7e53b', + '18180579-703e-4b93-bade-eabfce58a044', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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', + '69f3ee7a-c5c6-4097-b86a-f6d10c613e00', + 'x-ms-ests-server', + '2.1.11829.4 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzDAAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:50 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrP6OYDWIaVescI3M4l5VTFcjAnhHg7l434fF9V_2vQOkWU8-8-zSrbZmH4LGAZzR-qg2BBDQ6qnW7laPAmeEBGY3JDmAOUILPYW5thLR9TPEjgg3v3EO6qqFRGre6YMU3e4hO4bW-Q1AG9Jtr5j5p7n5EzVIIn964QFjvj95R9L4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:50 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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', + '9ef8c751-310d-489b-8072-ccc6e1f52400', + 'x-ms-ests-server', + '2.1.11829.4 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzDAAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:50 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrpb2fxT1q-sPHub4qvd5vJ1C8a7ebU8cZV1nC-1k8-kRA7afSCMwk9Xt7vkfgQB3HAZkbDsbWMED5nUxbHPbqJfjfCM1Q4yuj_CJ-1hDW9YhLTYxFYMp7xTSJL3U37XaA-TsW7v8L88rtU2b6q4sZjYCuKzGo9U3e-ml0DVlXBhYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Fri, 11 Jun 2021 20:57:50 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&client-request-id=cd15b936-4569-4b53-8f97-ce8961a2af02&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -92,21 +128,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '98dd3556-61d2-4b01-a7a4-2a79fccf0400', + '6f333939-cabf-4c50-acb0-32320ce52a00', 'x-ms-ests-server', - '2.1.11722.26 - WUS2 ProdSlices', + '2.1.11829.4 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiSsWWVRlshFlSAUqhHbMGh12iTZEgAAAKxiQ9gOAAAA; expires=Sun, 27-Jun-2021 22:16:34 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AluB2YsQJ9RGqRWXociWMRxGOXJzDQAAAD3FVdgOAAAA; expires=Sun, 11-Jul-2021 20:57:51 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Fri, 28 May 2021 22:16:34 GMT', - 'Connection', - 'close', + 'Fri, 11 Jun 2021 20:57:50 GMT', 'Content-Length', - '1361' + '1351' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) @@ -115,17 +151,17 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:34 GMT', + 'Fri, 11 Jun 2021 20:57:51 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '4cb4a8cd-9315-4377-bcd2-5bdaa908f0bb', + 'ee16a7f5-cde0-47d9-84a7-0c3e955fc837', 'x-ms-ratelimit-remaining-calls-per-second', - '166.6', + '166.116667', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); @@ -136,34 +172,34 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:35 GMT', + 'Fri, 11 Jun 2021 20:57:51 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Transfer-Encoding', 'chunked', 'Connection', - 'close', + 'keep-alive', 'X-Ms-Correlation-Request-Id', - '07879f80-6bb5-410d-8a70-976cde1e4249', + 'a4991e10-aced-446c-bbd8-bd2cacdc53d6', 'x-ms-ratelimit-remaining-calls-per-second', - '166.533333', + '166.1', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) .get('/acr/v1/library%2Fhello-world/_tags/test1') - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tag":{"name":"test1","digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","createdTime":"2021-05-28T17:15:15.2790632Z","lastUpdateTime":"2021-05-28T17:15:15.2790632Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}}, [ + .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tag":{"name":"test1","digest":"sha256:9f6ad537c5132bcce57f7a0a20e317228d382c3cd61edae14650eec68b2b345c","createdTime":"2021-06-11T19:11:38.7001063Z","lastUpdateTime":"2021-06-11T20:52:28.5096814Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}}, [ 'Server', 'openresty', 'Date', - 'Fri, 28 May 2021 22:16:35 GMT', + 'Fri, 11 Jun 2021 20:57:51 GMT', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '388', 'Connection', - 'close', + 'keep-alive', 'Access-Control-Expose-Headers', 'Docker-Content-Digest', 'Access-Control-Expose-Headers', @@ -179,7 +215,7 @@ nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'X-Ms-Correlation-Request-Id', - 'e10d291a-5e33-4b7b-b787-422c2346cd87', + '2f71f667-6d8d-4930-b4f1-53f26bf6f120', 'Strict-Transport-Security', 'max-age=31536000; includeSubDomains' ]); diff --git a/sdk/containerregistry/container-registry/samples/v1/javascript/package.json b/sdk/containerregistry/container-registry/samples/v1/javascript/package.json index d43510f9f56b..9bdd65f51ca7 100644 --- a/sdk/containerregistry/container-registry/samples/v1/javascript/package.json +++ b/sdk/containerregistry/container-registry/samples/v1/javascript/package.json @@ -25,6 +25,6 @@ "dependencies": { "@azure/container-registry": "next", "dotenv": "latest", - "@azure/identity": "^1.1.0" + "@azure/identity": "^1.3.0" } } diff --git a/sdk/containerregistry/container-registry/samples/v1/typescript/package.json b/sdk/containerregistry/container-registry/samples/v1/typescript/package.json index 8e6dcf47f848..45acb92c751d 100644 --- a/sdk/containerregistry/container-registry/samples/v1/typescript/package.json +++ b/sdk/containerregistry/container-registry/samples/v1/typescript/package.json @@ -29,7 +29,7 @@ "dependencies": { "@azure/container-registry": "next", "dotenv": "latest", - "@azure/identity": "^1.1.0" + "@azure/identity": "^1.3.0" }, "devDependencies": { "typescript": "~4.2.0", diff --git a/sdk/containerregistry/container-registry/test/public/utils.ts b/sdk/containerregistry/container-registry/test/public/utils.ts index 87aca77f4265..5091df35145d 100644 --- a/sdk/containerregistry/container-registry/test/public/utils.ts +++ b/sdk/containerregistry/container-registry/test/public/utils.ts @@ -11,7 +11,7 @@ import { ContainerRegistryClient } from "../../src"; const replaceableVariables: Record = { CONTAINER_REGISTRY_ENDPOINT: "https://myregistry.azurecr.io", CONTAINER_REGISTRY_ANONYMOUS_ENDPOINT: "https://myregistry.azurecr.io", - AZURE_TENANT_ID: "azure_tenant_id", + AZURE_TENANT_ID: "12345678-1234-1234-1234-123456789012", AZURE_CLIENT_ID: "azure_client_id", AZURE_CLIENT_SECRET: "azure_client_secret", SUBSCRIPTION_ID: "subscription_id", diff --git a/sdk/eventhub/event-hubs/package.json b/sdk/eventhub/event-hubs/package.json index 1a563066cba6..1beca2b6736a 100644 --- a/sdk/eventhub/event-hubs/package.json +++ b/sdk/eventhub/event-hubs/package.json @@ -106,7 +106,7 @@ "devDependencies": { "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/identity": "^1.1.0", + "@azure/identity": "2.0.0-beta.4", "@azure/test-utils-perfstress": "^1.0.0", "@microsoft/api-extractor": "7.7.11", "@rollup/plugin-commonjs": "11.0.2", diff --git a/sdk/identity/identity/test/manual-integration/AzureArc/package.json b/sdk/identity/identity/test/manual-integration/AzureArc/package.json index a840f561951d..18df2d6ca76c 100644 --- a/sdk/identity/identity/test/manual-integration/AzureArc/package.json +++ b/sdk/identity/identity/test/manual-integration/AzureArc/package.json @@ -9,7 +9,7 @@ "author": "", "license": "ISC", "dependencies": { - "@azure/identity": "^1.3.0", + "@azure/identity": "2.0.0-beta.4", "@azure/keyvault-secrets": "^4.1.0", "typescript": "^4.2.4" } diff --git a/sdk/identity/identity/test/manual-integration/AzureFunctions/IdentityTest/package.json b/sdk/identity/identity/test/manual-integration/AzureFunctions/IdentityTest/package.json index 7e6601dfc1a0..14bca91cef68 100644 --- a/sdk/identity/identity/test/manual-integration/AzureFunctions/IdentityTest/package.json +++ b/sdk/identity/identity/test/manual-integration/AzureFunctions/IdentityTest/package.json @@ -14,7 +14,7 @@ "description": "", "devDependencies": { "@azure/functions": "1.2.3", - "@azure/identity": "^1.3.0", + "@azure/identity": "2.0.0-beta.4", "@azure/keyvault-secrets": "^4.1.0", "npm-run-all": "^4.1.5", "typescript": "^3.3.3" diff --git a/sdk/identity/identity/test/manual-integration/AzureVM/package.json b/sdk/identity/identity/test/manual-integration/AzureVM/package.json index b2872261cbb7..d2a87a856b17 100644 --- a/sdk/identity/identity/test/manual-integration/AzureVM/package.json +++ b/sdk/identity/identity/test/manual-integration/AzureVM/package.json @@ -9,7 +9,7 @@ "author": "", "license": "ISC", "dependencies": { - "@azure/identity": "1.1.0-preview.2", + "@azure/identity": "2.0.0-beta.4", "@azure/keyvault-secrets": "^4.0.2" } } diff --git a/sdk/identity/identity/test/manual-integration/Cloudshell/package.json b/sdk/identity/identity/test/manual-integration/Cloudshell/package.json index 62e1f5db85c0..71b459483572 100644 --- a/sdk/identity/identity/test/manual-integration/Cloudshell/package.json +++ b/sdk/identity/identity/test/manual-integration/Cloudshell/package.json @@ -9,7 +9,7 @@ "author": "", "license": "ISC", "dependencies": { - "@azure/identity": "1.1.0-preview.2", + "@azure/identity": "2.0.0-beta.4", "@azure/keyvault-secrets": "^4.0.2" } } diff --git a/sdk/identity/identity/test/manual-integration/Kubernetes/package.json b/sdk/identity/identity/test/manual-integration/Kubernetes/package.json index 8c9d15a2480d..a5c48ca975a6 100644 --- a/sdk/identity/identity/test/manual-integration/Kubernetes/package.json +++ b/sdk/identity/identity/test/manual-integration/Kubernetes/package.json @@ -11,7 +11,7 @@ "dependencies": { "yargs": "15.1.0", "@types/yargs": "15.0.3", - "@azure/identity": "1.1.0-preview.2", + "@azure/identity": "2.0.0-beta.4", "@azure/keyvault-secrets": "^4.0.2" } } diff --git a/sdk/identity/identity/test/manual-integration/webjobs/App_Data/jobs/triggered/AzureTestJob/package.json b/sdk/identity/identity/test/manual-integration/webjobs/App_Data/jobs/triggered/AzureTestJob/package.json index 3254dbf28b83..ce138f490bc3 100644 --- a/sdk/identity/identity/test/manual-integration/webjobs/App_Data/jobs/triggered/AzureTestJob/package.json +++ b/sdk/identity/identity/test/manual-integration/webjobs/App_Data/jobs/triggered/AzureTestJob/package.json @@ -9,7 +9,7 @@ "author": "", "license": "ISC", "dependencies": { - "@azure/identity": "^1.0.2", + "@azure/identity": "2.0.0-beta.4", "@azure/keyvault-secrets": "^4.0.2", "tslib": "^1.10.0" } diff --git a/sdk/identity/identity/test/manual/package.json b/sdk/identity/identity/test/manual/package.json index 1abac34c2fbb..291f69dfb3ae 100644 --- a/sdk/identity/identity/test/manual/package.json +++ b/sdk/identity/identity/test/manual/package.json @@ -11,7 +11,7 @@ "author": "Microsoft Corporation", "license": "MIT", "dependencies": { - "@azure/identity": "2.0.0-beta.3", + "@azure/identity": "2.0.0-beta.4", "@azure/service-bus": "^7.0.3", "react": "^16.8.6", "react-dom": "^16.8.6", diff --git a/sdk/servicebus/service-bus/package.json b/sdk/servicebus/service-bus/package.json index 016e8d1beedc..3b30d1215237 100644 --- a/sdk/servicebus/service-bus/package.json +++ b/sdk/servicebus/service-bus/package.json @@ -93,6 +93,9 @@ "requiredResources": { "Azure Service Bus": "https://docs.microsoft.com/azure/service-bus-messaging" }, + "dependencyOverrides": { + "@azure/identity": "^1.1.0" + }, "skip": [ "receiveMessagesLoop.js", "receiveMessagesStreaming.js", diff --git a/sdk/servicebus/service-bus/samples/v7/javascript/package.json b/sdk/servicebus/service-bus/samples/v7/javascript/package.json index 118b3f60dd17..d0910e483ab3 100644 --- a/sdk/servicebus/service-bus/samples/v7/javascript/package.json +++ b/sdk/servicebus/service-bus/samples/v7/javascript/package.json @@ -29,7 +29,7 @@ "dotenv": "latest", "ws": "^7.1.1", "https-proxy-agent": "^5.0.0", - "@azure/identity": "2.0.0-beta.3", + "@azure/identity": "^1.1.0", "@azure/abort-controller": "^1.0.0" } } diff --git a/sdk/servicebus/service-bus/samples/v7/typescript/package.json b/sdk/servicebus/service-bus/samples/v7/typescript/package.json index 66fb6cb75925..63502849957b 100644 --- a/sdk/servicebus/service-bus/samples/v7/typescript/package.json +++ b/sdk/servicebus/service-bus/samples/v7/typescript/package.json @@ -33,7 +33,7 @@ "dotenv": "latest", "ws": "^7.1.1", "https-proxy-agent": "^5.0.0", - "@azure/identity": "2.0.0-beta.3", + "@azure/identity": "^1.1.0", "@azure/abort-controller": "^1.0.0" }, "devDependencies": {