diff --git a/sdk/containerregistry/container-registry/karma.conf.js b/sdk/containerregistry/container-registry/karma.conf.js index fcea27161627..7cdccca67c36 100644 --- a/sdk/containerregistry/container-registry/karma.conf.js +++ b/sdk/containerregistry/container-registry/karma.conf.js @@ -3,13 +3,9 @@ // https://github.com/karma-runner/karma-chrome-launcher process.env.CHROME_BIN = require("puppeteer").executablePath(); +process.env.RECORDINGS_RELATIVE_PATH = + require("@azure-tools/test-recorder").relativeRecordingsPath(); require("dotenv").config(); -const { - jsonRecordingFilterFunction, - isPlaybackMode, - isSoftRecordMode, - isRecordMode, -} = require("@azure-tools/test-recorder"); module.exports = function (config) { config.set({ @@ -31,15 +27,13 @@ module.exports = function (config) { "karma-coverage", "karma-sourcemap-loader", "karma-junit-reporter", - "karma-json-to-file-reporter", - "karma-json-preprocessor", ], // list of files / patterns to load in the browser files: [ "dist-test/index.browser.js", { pattern: "dist-test/index.browser.js.map", type: "html", included: false, served: true }, - ].concat(isPlaybackMode() || isSoftRecordMode() ? ["recordings/browsers/**/*.json"] : []), + ], // list of files / patterns to exclude exclude: [], @@ -48,7 +42,6 @@ module.exports = function (config) { // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor preprocessors: { "**/*.js": ["sourcemap", "env"], - "recordings/browsers/**/*.json": ["json"], // IMPORTANT: COMMENT following line if you want to debug in your browsers!! // Preprocess source file to calculate code coverage, however this will make source file unreadable //"dist-test/index.browser.js": ["coverage"] @@ -61,12 +54,13 @@ module.exports = function (config) { "CONTAINERREGISTRY_CLIENT_ID", "CONTAINERREGISTRY_CLIENT_SECRET", "CONTAINERREGISTRY_TENANT_ID", + "RECORDINGS_RELATIVE_PATH", ], // test results reporter to use // possible values: 'dots', 'progress' // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit", "json-to-file"], + reporters: ["mocha", "coverage", "junit"], coverageReporter: { // specify a common output directory @@ -84,11 +78,6 @@ module.exports = function (config) { properties: {}, // key value pair of properties to add to the section of the report }, - jsonToFileReporter: { - filter: jsonRecordingFilterFunction, - outputPath: ".", - }, - // web server port port: 9876, @@ -123,9 +112,6 @@ module.exports = function (config) { browserNoActivityTimeout: 600000, browserDisconnectTimeout: 10000, browserDisconnectTolerance: 3, - browserConsoleLogOptions: { - terminal: !isRecordMode(), - }, client: { mocha: { diff --git a/sdk/containerregistry/container-registry/package.json b/sdk/containerregistry/container-registry/package.json index 07355f184a57..6c60b8d05ce6 100644 --- a/sdk/containerregistry/container-registry/package.json +++ b/sdk/containerregistry/container-registry/package.json @@ -36,8 +36,8 @@ "extract-api": "tsc -p . && api-extractor run --local", "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", - "integration-test:browser": "karma start --single-run", - "integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}/*.spec.js\"", + "integration-test:browser": "dev-tool run test:browser", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 --full-trace \"dist-esm/test/**/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --ext .ts", @@ -45,8 +45,8 @@ "test:browser": "npm run build:test && npm run unit-test:browser && npm run integration-test:browser", "test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node", "test": "npm run build:test && npm run unit-test && npm run integration-test", - "unit-test:browser": "karma start --single-run", - "unit-test:node": "mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}/*.spec.ts\"", + "unit-test:browser": "dev-tool run test:browser", + "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --full-trace \"test/**/*.spec.ts\"", "unit-test": "npm run unit-test:node && npm run unit-test:browser" }, "files": [ @@ -87,7 +87,8 @@ "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/identity": "^2.0.1", "@azure/test-utils": "^1.0.0", - "@azure-tools/test-recorder": "^1.0.0", + "@azure-tools/test-credential": "^1.0.0", + "@azure-tools/test-recorder": "^2.0.0", "@microsoft/api-extractor": "^7.18.11", "@types/chai": "^4.1.6", "@types/chai-as-promised": "^7.1.0", @@ -106,8 +107,6 @@ "karma-env-preprocessor": "^0.1.1", "karma-firefox-launcher": "^1.1.0", "karma-ie-launcher": "^1.0.0", - "karma-json-preprocessor": "^0.3.3", - "karma-json-to-file-reporter": "^1.0.1", "karma-junit-reporter": "^2.0.1", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", diff --git a/sdk/containerregistry/container-registry/recordings/browsers/anonymous_access_tests/recording_should_list_repositories_with_anonymous_access.json b/sdk/containerregistry/container-registry/recordings/browsers/anonymous_access_tests/recording_should_list_repositories_with_anonymous_access.json index 72ecf1dd777c..b815e2da0a3d 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/anonymous_access_tests/recording_should_list_repositories_with_anonymous_access.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/anonymous_access_tests/recording_should_list_repositories_with_anonymous_access.json @@ -1,74 +1,148 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/_catalog", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"registry\",\"Name\":\"catalog\",\"Action\":\"*\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "196", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:20 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "www-authenticate": "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": "d43d1c3e-a22f-439a-bcb0-d9f545982082" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=registry%3Acatalog%3A*&refresh_token=&grant_type=password", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:20 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "cbad8563-c6ff-4af0-912c-70ee3ab86d49", - "x-ms-ratelimit-remaining-calls-per-second": "166.65" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/_catalog", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"repositories\":[\"hello-world\",\"library/alpine\",\"library/busybox\",\"library/hello-world\",\"library/node\",\"node\"]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "112", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:20 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "b9637021-9a44-4e32-97a0-a7d46ba347da" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "944c0fe162180c72a6cfcd9f5c8d72c9" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "f13ec09e-c30d-4e53-bd29-7862ded313f2", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "196", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:53 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b56e7870-eae7-40c9-b805-8d66172fb5c6" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "91", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "41f701d7-cb16-4716-873c-bbe5a13ed9e5", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=registry%3Acatalog%3A*\u0026refresh_token=\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0ab7b97e-c1bd-4c97-b37e-bbc57a981c78" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "f13ec09e-c30d-4e53-bd29-7862ded313f2", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "59", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:53 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "2cee6681-05ff-4261-be20-edb46b7d8e6b" + }, + "ResponseBody": { + "repositories": [ + "library/busybox", + "library/hello-world" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/container-registry/recordings/browsers/anonymous_access_tests/recording_should_throw_error_setting_properties_with_anonymous_access.json b/sdk/containerregistry/container-registry/recordings/browsers/anonymous_access_tests/recording_should_throw_error_setting_properties_with_anonymous_access.json index 94d71367ecc1..b1477c7f467b 100644 --- a/sdk/containerregistry/container-registry/recordings/browsers/anonymous_access_tests/recording_should_throw_error_setting_properties_with_anonymous_access.json +++ b/sdk/containerregistry/container-registry/recordings/browsers/anonymous_access_tests/recording_should_throw_error_setting_properties_with_anonymous_access.json @@ -1,75 +1,166 @@ { - "recordings": [ - { - "method": "PATCH", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "{\"deleteEnabled\":false}", - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"repository\",\"Name\":\"library/hello-world\",\"Action\":\"metadata_write\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "223", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:23 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "ae664832-c34e-45c1-8ce4-70fe01f2ca72" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&refresh_token=&grant_type=password", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:23 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "4fcfb3cc-04d7-4d9e-8890-3597b1ac84c2", - "x-ms-ratelimit-remaining-calls-per-second": "166.633333" - } - }, - { - "method": "PATCH", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "{\"deleteEnabled\":false}", - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"repository\",\"Name\":\"library/hello-world\",\"Action\":\"metadata_write\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "223", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:23 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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=\"insufficient_scope\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "4fc1dd94-5b56-4f99-8538-c84d73a2c7e8" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "fb7e8a0dad4e54cf9a74e89f2a79739d" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "23", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "47905128-7049-47eb-82a8-1611877d0454", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": { + "deleteEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:54 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "aec4c67f-5376-4d5f-98e0-3dafb75f31f3" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "120", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "9acdb7aa-bd9b-4e9e-af7f-cd14c38d6f08", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026refresh_token=\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:54 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "15eb7b5d-201f-4712-8f23-8c20885a7728" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "23", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "47905128-7049-47eb-82a8-1611877d0454", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": { + "deleteEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:54 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022,error=\u0022insufficient_scope\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "584d19c9-fb11-41d3-9226-3a045f40b3a0" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + } + ], + "Variables": {} +} 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 8fed91f222e9..dc1d69f2ff83 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 @@ -1,186 +1,340 @@ { - "recordings": [ - { - "method": "DELETE", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fbusybox", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"repository\",\"Name\":\"library/busybox\",\"Action\":\"delete\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "211", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:27 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "www-authenticate": "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": "05f3b850-8863-4afc-9e81-3e80de704e47" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:27 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - EUS ProdSlices", - "x-ms-request-id": "970270a0-39e5-4a40-a68d-349af926da00" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:28 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "c879b25e-7407-492d-9eee-3583856e5241", - "x-ms-ratelimit-remaining-calls-per-second": "166.533333" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Adelete&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:28 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "9c5291aa-7f51-467d-bb0f-a2dc1c298217", - "x-ms-ratelimit-remaining-calls-per-second": "166.516667" - } - }, - { - "method": "DELETE", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fbusybox", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 202, - "response": "{\"manifestsDeleted\":[\"sha256:06b206c1f1a38094697c7e8bf868f9d326e56a256bc516dbb8ff0ee9c1178999\",\"sha256:15e927f78df2cc772b70713543d6b651e3cd8370abf86b2ea4644a9fba21107f\",\"sha256:399e1e4a0d587717dc9e3a85150cec8498cb6dc73dcb7eddb94959fedb331104\",\"sha256:4ecc3dc2e06a24df931cb719c3784611d15721c3cb64ab069141071b73f6598b\",\"sha256:53c212bcc0501f011c232df0fb6c837651d0b2f3257b6478a50c0e006b0dabc5\",\"sha256:6066ca124f8c2686b7ae71aa1d6583b28c6dc3df3bdc386f2c89b92162c597d9\",\"sha256:77df281071dd7e01972ec2c4a33c1a6c00d13b24238375fd6622fce97f622fa2\",\"sha256:86824a27910bd2a8c6a8478fe99206e6cf4bcada7cb8435c0060cbe885559e53\",\"sha256:b70f0f45692830c2990b42f770aa29488c20ac41f1c3dcaa242920b73cb1399b\",\"sha256:c71cb4f7e8ececaffb34037c2637dc86820e4185100e18b4d02d613a9bd772af\",\"sha256:ce53e9b0310447d0e851ff0d2c9b90f358dbffe719a723147e84b93a4799396c\"],\"tagsDeleted\":[\"latest\"]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "862", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:29 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "c24859c1-5307-4fa3-93d5-93f1c4b88e1b", - "x-ms-correlation-request-id": "2b56b65e-ef2a-4ae6-8bce-f5148c581165", - "x-ms-ratelimit-remaining-calls-per-second": "8.000000", - "x-ms-request-id": "a8901f4a-8447-4a7e-bc2e-9a8785b44f97" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/_catalog", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"registry\",\"Name\":\"catalog\",\"Action\":\"*\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "196", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:29 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "www-authenticate": "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": "25a315f8-79df-45c1-afe6-3c753f6a8b2a" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=registry%3Acatalog%3A*&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:29 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "6f6470d3-e5dc-4cf4-9933-545edd9b2ebc", - "x-ms-ratelimit-remaining-calls-per-second": "166.5" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/_catalog", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"repositories\":[\"busybox\",\"hello-world\",\"library/hello-world\"]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "65", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:29 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "5ea08842-7768-450f-a9d8-892b4e873fe3" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "60be3f3388fbcdf9836939a931bac74b" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fbusybox?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "2b336890-ce13-47c5-971f-9667a6491829", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "211", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:11 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/busybox:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ae2d878c-f802-4a6c-996d-9e923c585399" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "daffb00a-6560-40b6-949b-d75b0258e4f2", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:12 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "9151a9bb-6eb7-4d36-aeab-e67cb0296e29" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "161", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "731ffc1b-1ead-4094-9074-0c7e717268bb", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Adelete\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:12 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "497161e8-cc00-4c4c-a88e-7ea949eef8fa" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fbusybox?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "2b336890-ce13-47c5-971f-9667a6491829", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "862", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:13 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Client-Request-Id": "2b336890-ce13-47c5-971f-9667a6491829", + "X-Ms-Correlation-Request-Id": "4192aab7-5d32-496f-95f2-035d4a33b2c3", + "X-Ms-Request-Id": "8b89f255-e930-4126-ad13-4572e14cbfd4" + }, + "ResponseBody": { + "manifestsDeleted": [ + "sha256:02cdeb6ebe57001c73da6adf199eb94a94b6d8c5ef7a92432928d1b3861ff53c", + "sha256:2a64d8b2861154867e526a189eddfc7afaf12c13c9b67a56b7adcd56895818ae", + "sha256:2d06e13d26ccd313d3029e44f48d69ad4c98d0bf934692befb288dc6404a3ad9", + "sha256:3f6c90002d9d31b871ee132953db48422b3dea4815d662d9e54ca389d2366800", + "sha256:4bcaeca137ff437584eb96c41b425b4010167a0156f0a9f7bbc26f9a36d536df", + "sha256:5ca5e3117f6f9bdb803ea67af89203b7e62a28c7456c098809f712a7294ceaaa", + "sha256:5ff091cdd7eadbe140ac122d166a8f20f346a72d7eea9ababbd0546e0ca73049", + "sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb", + "sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578", + "sha256:bb2a26ee650f0f3f49a2676bc50bcc4f44d9f1f6c7c12b7b4acc17beda338af4", + "sha256:ce06da2e3e24e4ac99f6da067bcab57e3dcc2ea4582da16e5d97003c32a6fa8c" + ], + "tagsDeleted": [ + "latest" + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "45337353-b5bf-4f89-b661-6bb5ad6cdc3a", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "196", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:13 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "6c9ec8fa-baae-4f32-ad63-c3957ac48a02" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "144", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "436a1168-d68c-4591-b0dd-25553399f4f7", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=registry%3Acatalog%3A*\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:13 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ba29aaf0-2406-4add-a845-27f2c8b8af96" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "45337353-b5bf-4f89-b661-6bb5ad6cdc3a", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "41", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:13 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ffe820c4-7e42-4ac8-bd1f-ee637aee9230" + }, + "ResponseBody": { + "repositories": [ + "library/hello-world" + ] + } + } + ], + "Variables": {} +} 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 6f2c0a22b25e..c54886b73cf1 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 @@ -1,118 +1,184 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/_catalog", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"registry\",\"Name\":\"catalog\",\"Action\":\"*\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "196", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:23 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "www-authenticate": "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": "1661bcad-e4fb-4cd4-ac71-b89bf114d094" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:23 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - NCUS ProdSlices", - "x-ms-request-id": "2d569c2f-a280-459c-b60c-0972f7aca200" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:24 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "f1e50c68-1998-40eb-aadc-360a8adc6ebb", - "x-ms-ratelimit-remaining-calls-per-second": "166.65" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=registry%3Acatalog%3A*&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:26 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "d3af64c0-2745-4ae0-a216-453e77ff6f3d", - "x-ms-ratelimit-remaining-calls-per-second": "166.633333" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/_catalog", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"repositories\":[\"busybox\",\"hello-world\",\"library/busybox\",\"library/hello-world\"]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "83", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:26 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "9f2140d1-39c1-4210-8216-8bae2860a0b1" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "60fe6c7c8096cec0abb867fa593e1d41" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "6bec2ed6-28a7-485d-b152-9c3a98a0b8b1", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "196", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:09 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "58243a17-c736-48d8-b106-b8642327a6b1" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "ede2b279-6623-487d-aaa9-f916ddccef05", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7d93ccc7-6b4a-4a55-8bb7-d9a1223bbcc9" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "144", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "83fb738a-3108-45f9-8e20-0a86da198c0f", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=registry%3Acatalog%3A*\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "9be9a58b-bd90-4875-8d89-dfc1d35add0f" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "6bec2ed6-28a7-485d-b152-9c3a98a0b8b1", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "59", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:09 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "fdc5f76f-0297-4d60-a09d-48c91dbc8799" + }, + "ResponseBody": { + "repositories": [ + "library/busybox", + "library/hello-world" + ] + } + } + ], + "Variables": {} +} 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 5a7f2037d8c0..b85d9f5a41e5 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 @@ -1,193 +1,326 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/_catalog", - "query": { - "n": "1", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"registry\",\"Name\":\"catalog\",\"Action\":\"*\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "196", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:26 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "www-authenticate": "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": "bd44b64a-053e-4bc8-a9ae-609765184c5c" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:26 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - NCUS ProdSlices", - "x-ms-request-id": "9ef99053-7386-456f-a5a7-00fd62759c00" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:26 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "086a92e1-e68d-4a73-9b04-238d4f4fef49", - "x-ms-ratelimit-remaining-calls-per-second": "166.616667" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=registry%3Acatalog%3A*&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:26 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "2cfe3eab-55df-4572-829c-9eae6306681b", - "x-ms-ratelimit-remaining-calls-per-second": "166.6" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/_catalog", - "query": { - "n": "1", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"repositories\":[\"busybox\"]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "29", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:26 GMT", - "docker-distribution-api-version": "registry/2.0", - "link": "; rel=\"next\"", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "5d91b348-59c0-471f-b1aa-5fd13367259d" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/_catalog", - "query": { - "last": "busybox", - "n": "1", - "orderby": "", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"registry\",\"Name\":\"catalog\",\"Action\":\"*\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "196", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:27 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "www-authenticate": "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": "0344101a-0946-481b-83c7-ccd5c0a3ad55" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=registry%3Acatalog%3A*&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:27 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "a3d7c7a5-4bee-4f44-b364-5f169f7da6fd", - "x-ms-ratelimit-remaining-calls-per-second": "166.583333" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/_catalog", - "query": { - "last": "busybox", - "n": "1", - "orderby": "", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"repositories\":[\"hello-world\"]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "33", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:27 GMT", - "docker-distribution-api-version": "registry/2.0", - "link": "; rel=\"next\"", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "a0dea16e-1cdf-4850-8c88-5505cc6edede" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "fc02f17a2a02f9262eabcce7ffdf8310" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?n=1\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "4c280c2c-a14b-4568-970c-1e070b7b570f", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "196", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:09 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "20d0d3b4-4929-4daa-9ef0-6088ca6b437d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "b98b65bf-1dec-4356-8bb9-134aa14c8d6f", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "622f41e8-3962-4d9d-86b8-c0701edd1b06" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "144", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "83890931-3104-460c-9837-d64f18df3f74", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=registry%3Acatalog%3A*\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "eca238a3-a02e-41e5-b48a-df2741143cd7" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?n=1\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "4c280c2c-a14b-4568-970c-1e070b7b570f", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "37", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:10 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=library%2Fbusybox\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "9922e063-5e40-4065-886c-5a3d263314fb" + }, + "ResponseBody": { + "repositories": [ + "library/busybox" + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "404bf612-7857-409a-88db-873f6d30568a", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "196", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:10 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "0b9a215b-b5a5-4cd8-b51a-97f042c1c899" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "144", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "2a1f0c17-2743-480c-a812-a1ffbdd4f5ec", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=registry%3Acatalog%3A*\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f25ad327-9bdc-4865-a69e-1a1c835f6327" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "404bf612-7857-409a-88db-873f6d30568a", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "41", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:10 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "bccaeffd-dd91-464f-a200-4be87c46049c" + }, + "ResponseBody": { + "repositories": [ + "library/hello-world" + ] + } + } + ], + "Variables": {} +} 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 cd22e0e70e03..7823a697050a 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 @@ -1,125 +1,184 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/_catalog", - "query": { - "last": "busybox", - "n": "1", - "orderby": "", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"registry\",\"Name\":\"catalog\",\"Action\":\"*\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "196", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:27 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "www-authenticate": "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": "ee062151-6009-47c7-bd26-9569c60183f2" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:27 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - WUS2 ProdSlices", - "x-ms-request-id": "ef4acac9-1f78-47a5-8d3f-ce4c37cca300" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:27 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "665d846f-5dd2-4b0c-9373-8e7aa3494442", - "x-ms-ratelimit-remaining-calls-per-second": "166.566667" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=registry%3Acatalog%3A*&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:27 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "756a702e-4a8a-4286-8950-79fcc4c4169e", - "x-ms-ratelimit-remaining-calls-per-second": "166.55" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/_catalog", - "query": { - "last": "busybox", - "n": "1", - "orderby": "", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"repositories\":[\"hello-world\"]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "33", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:27 GMT", - "docker-distribution-api-version": "registry/2.0", - "link": "; rel=\"next\"", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "2af0be04-7246-49ad-a6e3-1a26477d73d5" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "838b466a3e16bacc8d8fd4a2d8337956" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?last=busybox\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "b4648bd6-c319-4f7a-b371-7ee94cc64aaa", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "close", + "Content-Length": "196", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:10 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "aef0901c-f31b-498a-8efe-c7de267006ac" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "427e56d3-84db-4195-8930-6f6f8d6945b8", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "37a1e7a9-01c3-48ca-b1f1-87503ef19e78" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "144", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "2dd578b2-481f-4ef9-88ef-d98c217eec8f", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=registry%3Acatalog%3A*\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "27e598c7-6fe5-4bea-81ba-6daa54403c4c" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?last=busybox\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "b4648bd6-c319-4f7a-b371-7ee94cc64aaa", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "37", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:11 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=library%2Fbusybox\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "96d223a2-35d4-4bb0-8ac4-2d91df00152a" + }, + "ResponseBody": { + "repositories": [ + "library/busybox" + ] + } + } + ], + "Variables": {} +} 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 b02090f352c4..3deb120b36d1 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 @@ -1,186 +1,326 @@ { - "recordings": [ - { - "method": "DELETE", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test-delete", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"repository\",\"Name\":\"library/hello-world\",\"Action\":\"delete\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "215", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:42 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "www-authenticate": "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": "f0f4f380-f017-48bb-b766-f991074b0ca8" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:42 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - WUS2 ProdSlices", - "x-ms-request-id": "ef4acac9-1f78-47a5-8d3f-ce4c9ccea300" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:43 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "e5ca7efb-f170-4f2e-bacb-e3c46fdc7aa4", - "x-ms-ratelimit-remaining-calls-per-second": "165.933333" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Adelete&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "close", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:43 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "4e719b2f-9e82-493b-aab3-6c728a0bc2a4", - "x-ms-ratelimit-remaining-calls-per-second": "165.916667" - } - }, - { - "method": "DELETE", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test-delete", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 202, - "response": "", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "0", - "date": "Mon, 08 Nov 2021 20:12:43 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-client-request-id": "30eb1510-00a8-4f35-9fdf-4ca0de3f2daf", - "x-ms-correlation-request-id": "4d594bb3-1955-485b-9544-b3fb19801168", - "x-ms-int-docker-content-digest": "sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51", - "x-ms-ratelimit-remaining-calls-per-second": "8.000000", - "x-ms-request-id": "d2068ba0-43fc-4f57-8d1f-90a9f2353253" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test-delete", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:43 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "2bcad3c4-396f-4686-ad12-bd43245afd1f" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:43 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "7ba24929-9c08-46a3-aeb0-b4f5668058f5", - "x-ms-ratelimit-remaining-calls-per-second": "165.9" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test-delete", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 404, - "response": "{\"errors\":[{\"code\":\"TAG_UNKNOWN\",\"message\":\"the specified tag does not exist\"}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "81", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:43 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "c330bdf4-a5d7-4372-b1bc-576c7fc2de26" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "503559f581395a68f8d8bab889f4d905" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test-delete?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "f0639306-3710-45e3-b2a1-0af7f4fe2202", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "215", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e668393d-b1d1-411f-9b43-8f0d4dc1a073" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "1d4aacb1-6195-425b-a324-28d2a2d2ebf6", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:08 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e6feffce-3d82-43f8-ac81-471a22e4977d" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "165", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "4c6e2505-4eb4-4324-9002-5dec274b5c03", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Adelete\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:08 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "9649059f-8404-4581-9b99-abe4bdc710ae" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test-delete?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "f0639306-3710-45e3-b2a1-0af7f4fe2202", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "0", + "Date": "Thu, 10 Feb 2022 00:34:08 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Client-Request-Id": "f0639306-3710-45e3-b2a1-0af7f4fe2202", + "X-Ms-Correlation-Request-Id": "8b4dbce7-763d-49d4-94e1-30f43a09249d", + "X-Ms-Int-Docker-Content-Digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "X-Ms-Request-Id": "5ad5e1a0-21c2-442d-8a6a-c555e71fd3cb" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test-delete?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "f118c073-24ba-41a2-945a-047eb07b890f", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:08 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "3be8bff3-f8a1-4201-9ca8-fbf77e5cce0b" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "388d4d46-aa40-4c4d-91b3-39064f275a5e", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:08 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5efbdfe9-90c9-407d-a06a-11ad4cb2cf46" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test-delete?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "f118c073-24ba-41a2-945a-047eb07b890f", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:08 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e8e3ca62-af7b-4b0a-8ed3-942700c8b184" + }, + "ResponseBody": { + "errors": [ + { + "code": "TAG_UNKNOWN", + "message": "the specified tag does not exist" + } + ] + } + } + ], + "Variables": {} +} 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 a351e944b96b..c86f5aed849e 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 @@ -1,248 +1,537 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:37 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "a99caa61-ff9e-4324-9a8d-3407f27c68b2" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:37 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - WUS2 ProdSlices", - "x-ms-request-id": "ef4acac9-1f78-47a5-8d3f-ce4ca5cda300" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:37 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "d7807d02-4077-4aef-83d6-74b10f1d111a", - "x-ms-ratelimit-remaining-calls-per-second": "166.25" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:37 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "9b38e7c6-4b2d-4225-961a-1d784e2267a2", - "x-ms-ratelimit-remaining-calls-per-second": "166.233333" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"manifest\":{\"digest\":\"sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409\",\"imageSize\":4727,\"createdTime\":\"2021-10-06T21:01:30.4148083Z\",\"lastUpdateTime\":\"2021-10-06T21:01:30.4148083Z\",\"architecture\":\"386\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "481", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:37 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "3819be80-2d61-4e58-8c4c-99c6aea176ad" - } - }, - { - "method": "PATCH", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "{\"deleteEnabled\":false,\"writeEnabled\":false,\"listEnabled\":false,\"readEnabled\":false}", - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"repository\",\"Name\":\"library/hello-world\",\"Action\":\"metadata_write\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "223", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:37 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "729b9f8b-d2a3-4b57-806a-3f5c0e8c93fa" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:37 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "0b8083d9-46d5-41a1-bc84-83fdffc280d5", - "x-ms-ratelimit-remaining-calls-per-second": "166.216667" - } - }, - { - "method": "PATCH", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "{\"deleteEnabled\":false,\"writeEnabled\":false,\"listEnabled\":false,\"readEnabled\":false}", - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"manifest\":{\"digest\":\"sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409\",\"imageSize\":4727,\"createdTime\":\"2021-10-06T21:01:30.4148083Z\",\"lastUpdateTime\":\"2021-10-06T21:01:30.4148083Z\",\"architecture\":\"386\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":false,\"writeEnabled\":false,\"readEnabled\":false,\"listEnabled\":false}}}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "485", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:37 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "5ec54e9c-5783-4824-a8e5-20a4961238d6" - } - }, - { - "method": "PATCH", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "{\"deleteEnabled\":true,\"writeEnabled\":true,\"listEnabled\":true,\"readEnabled\":true}", - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"repository\",\"Name\":\"library/hello-world\",\"Action\":\"metadata_write\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "223", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:38 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "2ce7b500-09d9-457a-9a5a-667801296c1b" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:38 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "3352267b-ec3a-478c-a48c-286a509d4610", - "x-ms-ratelimit-remaining-calls-per-second": "166.2" - } - }, - { - "method": "PATCH", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "{\"deleteEnabled\":true,\"writeEnabled\":true,\"listEnabled\":true,\"readEnabled\":true}", - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"manifest\":{\"digest\":\"sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409\",\"imageSize\":4727,\"createdTime\":\"2021-10-06T21:01:30.4148083Z\",\"lastUpdateTime\":\"2021-10-06T21:01:30.4148083Z\",\"architecture\":\"386\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "481", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:38 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "052334cf-d63a-4ac6-95f9-9e9364bd8e25" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "48eeeb767cb4ec2789da7be9989dd286" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "5ac62573-fd13-4225-aa00-8482ad5ca102", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:00 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "885d33b0-1530-45a4-a87c-2ec041aa05dc" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "7b0affd3-aa5f-40fd-9927-69f1b759b9f0", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:00 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "59552c23-a8a6-44d3-a103-464f5d13493b" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "7cfe615a-408a-4fa0-b080-9366d893a843", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7bf58ff8-fd29-4360-bdf8-7215abc15259" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "5ac62573-fd13-4225-aa00-8482ad5ca102", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "480", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:01 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "40bf001f-4867-4690-a5bc-df6dc4cbb17c" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "manifest": { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "imageSize": 4727, + "createdTime": "2022-02-09T02:57:25.5140986Z", + "lastUpdateTime": "2022-02-09T02:57:25.5140986Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "1693fb31-4065-44e9-982d-3003a6246df4", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": false, + "listEnabled": false, + "readEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:01 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "dd913411-d4e9-49e8-a328-fc3795b3ffab" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "173", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "810c4988-1dfb-4417-9da1-1796ed2d6a66", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4657c03a-8afa-4828-ab68-85d93ec4acbf" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "1693fb31-4065-44e9-982d-3003a6246df4", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": false, + "listEnabled": false, + "readEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "484", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:01 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d9090c97-58ec-4a11-883f-3bd7ad1416ed" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "manifest": { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "imageSize": 4727, + "createdTime": "2022-02-09T02:57:25.5140986Z", + "lastUpdateTime": "2022-02-09T02:57:25.5140986Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + } + } + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "80", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "fcf38a8f-243a-41b6-a46a-3fb6c3ac87a7", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": { + "deleteEnabled": true, + "writeEnabled": true, + "listEnabled": true, + "readEnabled": true + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:01 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "6aa1cc75-a2ff-4352-9648-9d199dcf68cb" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "173", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "42763360-d12c-4483-a32a-7de77a63fea5", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b6604eb8-0d04-4214-8eb3-c17f203d781c" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "80", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "fcf38a8f-243a-41b6-a46a-3fb6c3ac87a7", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": { + "deleteEnabled": true, + "writeEnabled": true, + "listEnabled": true, + "readEnabled": true + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "480", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:02 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "6484a936-4847-4fe6-aacd-ffc922e84862" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "manifest": { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "imageSize": 4727, + "createdTime": "2022-02-09T02:57:25.5140986Z", + "lastUpdateTime": "2022-02-09T02:57:25.5140986Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } + ], + "Variables": {} +} 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 f9820c0be03c..5de77a6908b4 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 @@ -1,248 +1,522 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:38 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "f0252f76-e130-41e7-9c1b-d8db63f65420" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:38 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - EUS ProdSlices", - "x-ms-request-id": "71f6950c-80a4-4861-a742-0fc4715fce00" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:38 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "f628e014-7189-486c-8cc1-b755a1b9a81b", - "x-ms-ratelimit-remaining-calls-per-second": "166.183333" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:38 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "0a0b5430-82d7-4f28-8d00-a1653d3ffad0", - "x-ms-ratelimit-remaining-calls-per-second": "166.166667" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"createdTime\":\"2021-06-01T17:44:40.7113043Z\",\"lastUpdateTime\":\"2021-11-08T20:11:57.224559Z\",\"manifestCount\":47,\"tagCount\":3,\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "298", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:38 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "2beaf8ed-64f0-44b3-a222-03f34ce220a8" - } - }, - { - "method": "PATCH", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "{\"deleteEnabled\":false,\"writeEnabled\":false,\"listEnabled\":false,\"readEnabled\":false}", - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"repository\",\"Name\":\"library/hello-world\",\"Action\":\"metadata_write\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "223", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:39 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "bac745af-d845-4777-988f-8bd8cfacd824" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:39 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "c8471669-c002-4683-8415-e10d5ab11537", - "x-ms-ratelimit-remaining-calls-per-second": "166.15" - } - }, - { - "method": "PATCH", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "{\"deleteEnabled\":false,\"writeEnabled\":false,\"listEnabled\":false,\"readEnabled\":false}", - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"createdTime\":\"2021-06-01T17:44:40.7113043Z\",\"lastUpdateTime\":\"2021-11-08T20:11:57.224559Z\",\"manifestCount\":47,\"tagCount\":3,\"changeableAttributes\":{\"deleteEnabled\":false,\"writeEnabled\":false,\"readEnabled\":false,\"listEnabled\":false}}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "302", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:39 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "10ca9027-c101-4133-ba09-81c1409be677" - } - }, - { - "method": "PATCH", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "{\"deleteEnabled\":true,\"writeEnabled\":true,\"listEnabled\":true,\"readEnabled\":true}", - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"repository\",\"Name\":\"library/hello-world\",\"Action\":\"metadata_write\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "223", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:39 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "773d83d2-ab9d-4d7f-9324-ae0550453136" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:39 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "11e8e115-275c-4430-978e-d4007598f242", - "x-ms-ratelimit-remaining-calls-per-second": "166.133333" - } - }, - { - "method": "PATCH", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "{\"deleteEnabled\":true,\"writeEnabled\":true,\"listEnabled\":true,\"readEnabled\":true}", - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"createdTime\":\"2021-06-01T17:44:40.7113043Z\",\"lastUpdateTime\":\"2021-11-08T20:11:57.224559Z\",\"manifestCount\":47,\"tagCount\":3,\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "298", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:39 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "6bc4077c-cc90-4edc-8295-76b6f894cfbc" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "3654ebb234b5adbdb4e8b1650623c215" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "702db815-0790-48b2-8998-c1a2cb12e7b0", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:02 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "92cf6c93-f600-4839-8b40-182ed0dc82b2" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "12c7174d-f328-49f0-bf71-12028ae7b0cd", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "795fed6f-7dc8-4d14-bc91-a40cb121ba60" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "06a3811e-c5c7-4d66-b042-efa71336a58f", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b3e3b69b-0fa0-4bf5-b9e0-19fc67119b2e" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "702db815-0790-48b2-8998-c1a2cb12e7b0", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "298", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:03 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "618dfb90-228c-4ba5-a200-7b590ab982fc" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "createdTime": "2022-02-09T02:57:24.3574334Z", + "lastUpdateTime": "2022-02-10T00:32:30.304838Z", + "manifestCount": 15, + "tagCount": 7, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "2ede0168-2b1f-4b69-9726-69a7319e45aa", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": false, + "listEnabled": false, + "readEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:03 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d466cc47-3a69-4cf7-886c-647a20036fd8" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "173", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "8cc71c3f-b981-420f-927d-b76dee628f89", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5f6cccc8-7246-47f0-978f-55fe25d8de4d" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "2ede0168-2b1f-4b69-9726-69a7319e45aa", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": false, + "listEnabled": false, + "readEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "301", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:03 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "6fac7bb6-909f-4479-aea1-4b316eae94b2" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "createdTime": "2022-02-09T02:57:24.3574334Z", + "lastUpdateTime": "2022-02-10T00:32:30.304838Z", + "manifestCount": 15, + "tagCount": 7, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + } + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "35aeec95-76fb-41f4-b21f-b866804fce80", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": true, + "listEnabled": true, + "readEnabled": true + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:03 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c70c2f99-c609-46d4-b22b-8a2e387aba24" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "173", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "41cb1a2d-2500-4cf7-83b0-ae7631b3ea13", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "45f8a18f-5769-421a-be5f-6d7df81e5950" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "35aeec95-76fb-41f4-b21f-b866804fce80", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": true, + "listEnabled": true, + "readEnabled": true + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "298", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:03 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b5b388ff-2301-4a5a-a852-caa5b93634b1" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "createdTime": "2022-02-09T02:57:24.3574334Z", + "lastUpdateTime": "2022-02-10T00:32:30.304838Z", + "manifestCount": 15, + "tagCount": 7, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + ], + "Variables": {} +} 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 eca64c472900..a7ca95e765ad 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 @@ -1,248 +1,531 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:41 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "98012215-f9f2-4c48-becf-f3cce6565311" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:41 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - WUS2 ProdSlices", - "x-ms-request-id": "ef4acac9-1f78-47a5-8d3f-ce4c74cea300" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:42 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "fe162939-4f0c-40dc-a141-417ecfcc78f6", - "x-ms-ratelimit-remaining-calls-per-second": "166" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:42 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "af54a872-16c9-413d-b63a-9a4f99a6212f", - "x-ms-ratelimit-remaining-calls-per-second": "165.983333" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"tag\":{\"name\":\"test1\",\"digest\":\"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51\",\"createdTime\":\"2021-06-11T19:11:38.7001063Z\",\"lastUpdateTime\":\"2021-11-08T19:55:53.3335808Z\",\"signed\":false,\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "388", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:42 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "4d20f6a2-1456-4886-95e2-ec6a220481aa" - } - }, - { - "method": "PATCH", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "{\"deleteEnabled\":false,\"writeEnabled\":false,\"listEnabled\":false,\"readEnabled\":false}", - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"repository\",\"Name\":\"library/hello-world\",\"Action\":\"metadata_write\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "223", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:42 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "4164a6ec-7216-4fcd-b71f-b9c79be45385" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:42 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "ae808dca-ab28-4922-bebd-baf0c7645b1b", - "x-ms-ratelimit-remaining-calls-per-second": "165.966667" - } - }, - { - "method": "PATCH", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "{\"deleteEnabled\":false,\"writeEnabled\":false,\"listEnabled\":false,\"readEnabled\":false}", - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"tag\":{\"name\":\"test1\",\"digest\":\"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51\",\"createdTime\":\"2021-06-11T19:11:38.7001063Z\",\"lastUpdateTime\":\"2021-11-08T19:55:53.3335808Z\",\"signed\":false,\"changeableAttributes\":{\"deleteEnabled\":false,\"writeEnabled\":false,\"readEnabled\":false,\"listEnabled\":false}}}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "392", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:42 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "5b92b3d0-4388-4932-9dda-7899c49abe23" - } - }, - { - "method": "PATCH", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "{\"deleteEnabled\":true,\"writeEnabled\":true,\"listEnabled\":true,\"readEnabled\":true}", - "status": 401, - "response": "{\"errors\":[{\"code\":\"UNAUTHORIZED\",\"message\":\"authentication required, visit https://aka.ms/acr/authorization for more information.\",\"detail\":[{\"Type\":\"repository\",\"Name\":\"library/hello-world\",\"Action\":\"metadata_write\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "223", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:42 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "981a17d0-67e2-488d-82c8-eca5e1b8e605" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:42 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "091285e7-1a0b-421b-a1aa-543c9b728b80", - "x-ms-ratelimit-remaining-calls-per-second": "165.95" - } - }, - { - "method": "PATCH", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "{\"deleteEnabled\":true,\"writeEnabled\":true,\"listEnabled\":true,\"readEnabled\":true}", - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"tag\":{\"name\":\"test1\",\"digest\":\"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51\",\"createdTime\":\"2021-06-11T19:11:38.7001063Z\",\"lastUpdateTime\":\"2021-11-08T19:55:53.3335808Z\",\"signed\":false,\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "388", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:42 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "a5a6b387-e028-4217-8b3b-0a97d1afe970" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "ead3c5fc7c77a2abae45f363dc3af7f2" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "298af656-0f71-4b2c-947d-96a7a379ca6d", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:06 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "88c102ea-3599-41ce-bf7d-17c832270c0c" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "3f411ec4-84a9-4404-a31b-1d12a7d75dd3", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b17165df-dff5-4914-b937-a731412aed04" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "97bfd20a-e995-4b54-8d18-923f8c443ac3", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0bd0a32d-5f4a-4176-9596-8b40851b9248" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "298af656-0f71-4b2c-947d-96a7a379ca6d", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "387", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f823fcfe-e501-4b84-b414-22a3421325cc" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "test1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:33.7415749Z", + "lastUpdateTime": "2022-02-09T18:47:33.7415749Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "f918a844-e7dc-4a58-99e7-c6da632a7409", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": false, + "listEnabled": false, + "readEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c3296d84-c1d0-4b9c-84a4-607a1e2600d5" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "173", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "2d76673e-98aa-4bc2-a183-d9771421ac88", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "023a9785-5fbf-4d41-a3cf-1656f9703869" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "f918a844-e7dc-4a58-99e7-c6da632a7409", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": false, + "listEnabled": false, + "readEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "740b0a8a-11e1-4669-b038-623ee13f44ff" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "test1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:33.7415749Z", + "lastUpdateTime": "2022-02-09T18:47:33.7415749Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + } + } + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "80", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "b3cf67eb-a113-45e6-a2b0-a1e767e0239a", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": { + "deleteEnabled": true, + "writeEnabled": true, + "listEnabled": true, + "readEnabled": true + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "046fc7fa-284b-4005-b149-794ea5408945" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "173", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "b18cfa33-fde5-468e-ab8f-e6543ed8a967", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3df7b949-e794-4b18-9b0c-a8214b5826ce" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "80", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "b3cf67eb-a113-45e6-a2b0-a1e767e0239a", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": { + "deleteEnabled": true, + "writeEnabled": true, + "listEnabled": true, + "readEnabled": true + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "387", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "205b3d73-80b0-4e26-ab0e-797bda7779aa" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "test1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:33.7415749Z", + "lastUpdateTime": "2022-02-09T18:47:33.7415749Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } + ], + "Variables": {} +} 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 94b02bc22810..b0f703d70f62 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 @@ -1,118 +1,414 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:29 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "77faf1a6-4886-4a5a-b45f-cc3a99181c3e" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:29 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - EUS ProdSlices", - "x-ms-request-id": "d8a95ab3-96a4-4d35-8486-59c97bb9d900" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:30 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "d37ea4dd-babd-4a82-9493-9d6278125c6f", - "x-ms-ratelimit-remaining-calls-per-second": "166.483333" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:30 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "cfa85c64-5977-458e-ae82-5a9959d32c5e", - "x-ms-ratelimit-remaining-calls-per-second": "166.466667" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"manifests\":[{\"digest\":\"sha256:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184\",\"imageSize\":5216,\"createdTime\":\"2021-10-06T21:01:30.4926548Z\",\"lastUpdateTime\":\"2021-10-06T21:01:30.4926548Z\",\"architecture\":\"arm64\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"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}},{\"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}},{\"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}},{\"digest\":\"sha256:0fe98d7debd9049c50b597ef1f85b7c1e8cc81f59c8d623fcb2250e8bec85b38\",\"imageSize\":5850,\"createdTime\":\"2021-08-17T16:55:59.3686577Z\",\"lastUpdateTime\":\"2021-08-17T16:55:59.3686577Z\",\"mediaType\":\"application/vnd.docker.distribution.manifest.list.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"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}},{\"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}},{\"digest\":\"sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409\",\"imageSize\":4727,\"createdTime\":\"2021-10-06T21:01:30.4148083Z\",\"lastUpdateTime\":\"2021-10-06T21:01:30.4148083Z\",\"architecture\":\"386\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:31801872aacfc6245ba5277e07dc2c9a482a473c87d625f25c3e6d5de930b35d\",\"imageSize\":5871,\"createdTime\":\"2021-11-08T19:55:54.7994646Z\",\"lastUpdateTime\":\"2021-11-08T19:55:54.7994646Z\",\"architecture\":\"amd64\",\"os\":\"windows\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51\",\"imageSize\":61625,\"createdTime\":\"2021-11-08T19:55:53.1835258Z\",\"lastUpdateTime\":\"2021-11-08T19:55:53.1835258Z\",\"mediaType\":\"application/vnd.docker.distribution.manifest.list.v2+json\",\"tags\":[\"test-delete\",\"test1\"],\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:3e7d74d1c66c8f7dd5384f49bf0f8ab3e18e81e8d2a79218ed777c534b446552\",\"imageSize\":525,\"createdTime\":\"2021-07-12T19:20:00.913255Z\",\"lastUpdateTime\":\"2021-07-12T19:20:00.913255Z\",\"architecture\":\"ppc64le\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:4fb0dd2040e4a909567fb8fd36338a00e727926da9e8f93fa1fe58cbc3b9af9c\",\"imageSize\":5830,\"createdTime\":\"2021-09-20T18:50:55.4008325Z\",\"lastUpdateTime\":\"2021-09-20T18:50:55.4008325Z\",\"architecture\":\"amd64\",\"os\":\"windows\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"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}},{\"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}},{\"digest\":\"sha256:563c31a6b24347d3f367df5dc33890ab1aec20e9470e5d998f3b6a8fc6eb5763\",\"imageSize\":5806,\"createdTime\":\"2021-11-08T19:55:54.8679861Z\",\"lastUpdateTime\":\"2021-11-08T19:55:54.8679861Z\",\"architecture\":\"amd64\",\"os\":\"windows\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:58d91e6625a0ea837222f24da4ca00be9da3db45cee5b172135eaf271610f9eb\",\"imageSize\":525,\"createdTime\":\"2021-07-12T19:20:00.3959063Z\",\"lastUpdateTime\":\"2021-07-12T19:20:00.3959063Z\",\"architecture\":\"arm\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:61bd3cb6014296e214ff4c6407a5a7e7092dfa8eefdbbec539e133e97f63e09f\",\"imageSize\":61958,\"createdTime\":\"2021-09-20T18:50:53.9769732Z\",\"lastUpdateTime\":\"2021-09-20T18:50:53.9769732Z\",\"mediaType\":\"application/vnd.docker.distribution.manifest.list.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:6d9fcdca25452c9a255f02c7d67eb28e8afbba2671f1e8f60b3b3585b7bdf172\",\"imageSize\":525,\"createdTime\":\"2021-07-12T19:20:00.5061197Z\",\"lastUpdateTime\":\"2021-07-12T19:20:00.5061197Z\",\"architecture\":\"s390x\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c\",\"imageSize\":5691,\"createdTime\":\"2021-10-06T21:01:31.7709273Z\",\"lastUpdateTime\":\"2021-10-06T21:01:31.7709273Z\",\"architecture\":\"arm\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"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}},{\"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}},{\"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}},{\"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}},{\"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:94b700b6ae5759e539e06fa6d483f5f0174067945f180cc1362cfda71c5fd722\",\"imageSize\":525,\"createdTime\":\"2021-07-12T19:20:00.9631551Z\",\"lastUpdateTime\":\"2021-07-12T19:20:00.9631551Z\",\"architecture\":\"arm\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.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}},{\"digest\":\"sha256:98c9722322be649df94780d3fbe594fce7996234b259f27eac9428b84050c849\",\"imageSize\":4996,\"createdTime\":\"2021-10-06T21:01:30.2509309Z\",\"lastUpdateTime\":\"2021-10-06T21:01:30.2509309Z\",\"architecture\":\"riscv64\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:9ade9cc2e26189a19c2e8854b9c8f1e14829b51c55a630ee675a5a9540ef6ccf\",\"imageSize\":61611,\"createdTime\":\"2021-10-06T21:01:29.283756Z\",\"lastUpdateTime\":\"2021-10-06T21:01:29.283756Z\",\"mediaType\":\"application/vnd.docker.distribution.manifest.list.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"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}},{\"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\",\"changeableAttributes\":{\"deleteEnabled\":false,\"writeEnabled\":false,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:a10c347f4cc2924af832d319635d6d027ca8820ff683b6bcc728d825a37a7f69\",\"imageSize\":525,\"createdTime\":\"2021-07-12T19:20:00.5421832Z\",\"lastUpdateTime\":\"2021-07-12T19:20:00.5421832Z\",\"architecture\":\"arm64\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:b836bb24a270b9cc935962d8228517fde0f16990e88893d935efcb1b14c0017a\",\"imageSize\":5925,\"createdTime\":\"2021-10-06T21:01:31.2908944Z\",\"lastUpdateTime\":\"2021-10-06T21:01:31.2908944Z\",\"architecture\":\"ppc64le\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:b89e28f1d57f44064e96c4525e514f6f0498a433b83413538f79f82566d72114\",\"imageSize\":525,\"createdTime\":\"2021-07-12T19:20:00.7917219Z\",\"lastUpdateTime\":\"2021-07-12T19:20:00.7917219Z\",\"architecture\":\"riscv64\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"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}},{\"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}},{\"digest\":\"sha256:c2f204d26b4ea353651385001bb6bc371d8c4edcd9daf61d00ad365d927e00c0\",\"imageSize\":6088,\"createdTime\":\"2021-10-06T21:01:29.9953911Z\",\"lastUpdateTime\":\"2021-10-06T21:01:29.9953911Z\",\"architecture\":\"mips64le\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:c7b6944911848ce39b44ed660d95fb54d69bbd531de724c7ce6fc9f743c0b861\",\"imageSize\":5270,\"createdTime\":\"2021-10-06T21:01:29.8786957Z\",\"lastUpdateTime\":\"2021-10-06T21:01:29.8786957Z\",\"architecture\":\"s390x\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"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}},{\"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}},{\"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}},{\"digest\":\"sha256:dd295b166e7a35d810b7d286c62fee3c575fdde553182271fc0e5fb01ac81b15\",\"imageSize\":5833,\"createdTime\":\"2021-09-20T18:50:54.9019432Z\",\"lastUpdateTime\":\"2021-09-20T18:50:54.9019432Z\",\"architecture\":\"amd64\",\"os\":\"windows\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:df5f5184104426b65967e016ff2ac0bfcd44ad7899ca3bbcf8e44e4461491a9e\",\"imageSize\":5850,\"createdTime\":\"2021-07-12T19:19:59.5452001Z\",\"lastUpdateTime\":\"2021-07-12T19:19:59.5452001Z\",\"mediaType\":\"application/vnd.docker.distribution.manifest.list.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"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}},{\"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}},{\"digest\":\"sha256:e70692d3144e0ddb23e2ecf72d4b78f1e9ffcb32a9c863b98a35d43adfb42ad8\",\"imageSize\":1125,\"createdTime\":\"2021-08-17T16:56:00.1861796Z\",\"lastUpdateTime\":\"2021-08-17T16:56:00.1861796Z\",\"architecture\":\"amd64\",\"os\":\"windows\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c\",\"imageSize\":5000,\"createdTime\":\"2021-10-06T21:01:30.3566409Z\",\"lastUpdateTime\":\"2021-10-06T21:01:30.3566409Z\",\"architecture\":\"arm\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"digest\":\"sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4\",\"imageSize\":4473,\"createdTime\":\"2021-10-06T21:01:30.0499098Z\",\"lastUpdateTime\":\"2021-10-06T21:01:30.0499098Z\",\"architecture\":\"amd64\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:33 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "1c24d0e0-718a-4705-825a-3411b3ee8752" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "b4e5b9ebf8a5df6c1f766943aff21720" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "b5cc9fa0-b9f5-465e-ab9a-67b649640375", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:54 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "46555090-203a-4cdb-9fe8-67aff41098b5" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "05e94e89-34b3-4614-84a7-06994bf69462", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "9c151212-3b02-4001-a291-4f60b9d3539f" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "c26e4746-8446-46cf-97f1-ef6d11c7e753", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5fc607c9-fb38-4644-aa23-27c0c85db1d1" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "b5cc9fa0-b9f5-465e-ab9a-67b649640375", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:56 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5eca937b-004c-4521-8804-6f3e2f1bc314" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "manifests": [ + { + "digest": "sha256:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184", + "imageSize": 5216, + "createdTime": "2022-02-09T02:57:25.4662706Z", + "lastUpdateTime": "2022-02-09T02:57:25.4662706Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "imageSize": 4727, + "createdTime": "2022-02-09T02:57:25.5140986Z", + "lastUpdateTime": "2022-02-09T02:57:25.5140986Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:507ecde44b8eb741278274653120c2bf793b174c06ff4eaa672b713b3263477b", + "imageSize": 61663, + "createdTime": "2022-02-09T02:57:26.2436833Z", + "lastUpdateTime": "2022-02-09T02:57:26.2436833Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c", + "imageSize": 5691, + "createdTime": "2022-02-09T02:57:24.4434927Z", + "lastUpdateTime": "2022-02-09T02:57:24.4434927Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:7e9c5b2a36bdd391c713b800eb7ac7047207f04faf92ec4aff8667c85540b41b", + "imageSize": 5844, + "createdTime": "2022-02-09T02:57:26.0157335Z", + "lastUpdateTime": "2022-02-09T02:57:26.0157335Z", + "architecture": "amd64", + "os": "windows", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "imageSize": 61614, + "createdTime": "2022-02-09T18:47:33.6395637Z", + "lastUpdateTime": "2022-02-09T18:47:33.6395637Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest", + "test-delete", + "test1", + "v1", + "v2", + "v3", + "v4" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:98c9722322be649df94780d3fbe594fce7996234b259f27eac9428b84050c849", + "imageSize": 4996, + "createdTime": "2022-02-09T02:57:26.4172386Z", + "lastUpdateTime": "2022-02-09T02:57:26.4172386Z", + "architecture": "riscv64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:b17da88a43678dd8de2c335b977330a5f4e3f1175251a4204f54ef2ed1360709", + "imageSize": 5871, + "createdTime": "2022-02-09T02:57:27.8519362Z", + "lastUpdateTime": "2022-02-09T02:57:27.8519362Z", + "architecture": "amd64", + "os": "windows", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:b3dd41b5fbccbf0e39bee932466d389214cddcb53fa4ad5d02f29ee4172db8c7", + "imageSize": 5826, + "createdTime": "2022-02-09T18:43:53.3912761Z", + "lastUpdateTime": "2022-02-09T18:43:53.3912761Z", + "architecture": "amd64", + "os": "windows", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:b836bb24a270b9cc935962d8228517fde0f16990e88893d935efcb1b14c0017a", + "imageSize": 5925, + "createdTime": "2022-02-09T02:57:27.0529379Z", + "lastUpdateTime": "2022-02-09T02:57:27.0529379Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:c2f204d26b4ea353651385001bb6bc371d8c4edcd9daf61d00ad365d927e00c0", + "imageSize": 6088, + "createdTime": "2022-02-09T02:57:25.5704516Z", + "lastUpdateTime": "2022-02-09T02:57:25.5704516Z", + "architecture": "mips64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:c7b6944911848ce39b44ed660d95fb54d69bbd531de724c7ce6fc9f743c0b861", + "imageSize": 5270, + "createdTime": "2022-02-09T02:57:26.1376238Z", + "lastUpdateTime": "2022-02-09T02:57:26.1376238Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c", + "imageSize": 5000, + "createdTime": "2022-02-09T02:57:24.5515527Z", + "lastUpdateTime": "2022-02-09T02:57:24.5515527Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4", + "imageSize": 4473, + "createdTime": "2022-02-09T02:57:26.0724745Z", + "lastUpdateTime": "2022-02-09T02:57:26.0724745Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:fdea2bf76c9a47fc0b81958cb87aa65448012ef36ce051a72a09db398efdf7cc", + "imageSize": 5840, + "createdTime": "2022-02-09T18:43:53.2638308Z", + "lastUpdateTime": "2022-02-09T18:43:53.2638308Z", + "architecture": "amd64", + "os": "windows", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} 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 f4b08368831c..36e45b86c3ec 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 @@ -1,193 +1,359 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests", - "query": { - "n": "1", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:33 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "1f7fbe28-d8bc-486f-a6a2-9e3e54d76044" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:33 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - WUS2 ProdSlices", - "x-ms-request-id": "cae198f3-c033-4021-bf27-398e8e11b200" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:34 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "5e9594ea-7380-457c-996a-d5646dbc8bb8", - "x-ms-ratelimit-remaining-calls-per-second": "166.45" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:34 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "007d1b79-e1df-4c2a-b2ac-4634a0c4e1e5", - "x-ms-ratelimit-remaining-calls-per-second": "166.433333" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests", - "query": { - "n": "1", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"manifests\":[{\"digest\":\"sha256:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184\",\"imageSize\":5216,\"createdTime\":\"2021-10-06T21:01:30.4926548Z\",\"lastUpdateTime\":\"2021-10-06T21:01:30.4926548Z\",\"architecture\":\"arm64\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "486", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:34 GMT", - "docker-distribution-api-version": "registry/2.0", - "link": "; rel=\"next\"", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "35428971-b0ad-488b-b0ef-cde3ae1a9714" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests", - "query": { - "last": "sha256:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184", - "n": "1", - "orderby": "", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:34 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "33f4b463-dea0-40de-984a-17e8971bcf27" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:34 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "4ba6502e-bed0-4177-8f6f-eec57f240277", - "x-ms-ratelimit-remaining-calls-per-second": "166.416667" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests", - "query": { - "last": "sha256:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184", - "n": "1", - "orderby": "", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"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}}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "487", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:34 GMT", - "docker-distribution-api-version": "registry/2.0", - "link": "; rel=\"next\"", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "06e61a06-6828-49d5-81e5-95bdc3121954" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "97ac2eea2c11219acdaa276fcf1eb7e8" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?n=1\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "eae2840e-92c8-49e3-8cd1-ffdea2e1f1de", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:56 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d6bf343b-5ff9-48da-988f-baa5638bf9ab" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "684fe0be-a594-473d-964f-949d59a72e39", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:56 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "fcf0e936-efca-4e0d-9198-07bec9da0e98" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "d442dcf8-9413-4b75-848d-c2d7fcf30f89", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:56 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2b070ec1-dad3-4924-bfaf-e8938a1d6ae5" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?n=1\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "eae2840e-92c8-49e3-8cd1-ffdea2e1f1de", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "485", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:56 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "4f3d4890-5d9b-449a-8254-5aba4c9dd5e8" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "manifests": [ + { + "digest": "sha256:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184", + "imageSize": 5216, + "createdTime": "2022-02-09T02:57:25.4662706Z", + "lastUpdateTime": "2022-02-09T02:57:25.4662706Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "2f4815d6-088d-4391-a731-faaa41a0b1b0", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:57 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "55dca286-3baa-4478-a730-1fd46c03fbe8" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "5fb60b3b-487b-432b-a4bb-400b8e9b0ce2", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:57 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c3ef100f-08e6-4e4e-b694-03880c5f3275" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "2f4815d6-088d-4391-a731-faaa41a0b1b0", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "483", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:57 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "2b28fc71-13c7-42aa-a6ee-8713c0c9c7e0" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "manifests": [ + { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "imageSize": 4727, + "createdTime": "2022-02-09T02:57:25.5140986Z", + "lastUpdateTime": "2022-02-09T02:57:25.5140986Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} 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 c788e87e4042..00ca6e839b20 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 @@ -1,125 +1,200 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests", - "query": { - "last": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "n": "1", - "orderby": "", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:34 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "cbf68ab4-f5f4-4f77-80c0-934c68bf2a02" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:34 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - NCUS ProdSlices", - "x-ms-request-id": "ccb20cb1-6f40-4498-b2d4-32c2ec72a000" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:34 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "2a158fc0-cb28-43e9-ad50-b1ea1cf11624", - "x-ms-ratelimit-remaining-calls-per-second": "166.4" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:34 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "9c8beccf-e02d-436c-ac39-b8d4563b47eb", - "x-ms-ratelimit-remaining-calls-per-second": "166.383333" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests", - "query": { - "last": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "n": "1", - "orderby": "", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"manifests\":[{\"digest\":\"sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409\",\"imageSize\":4727,\"createdTime\":\"2021-10-06T21:01:30.4148083Z\",\"lastUpdateTime\":\"2021-10-06T21:01:30.4148083Z\",\"architecture\":\"386\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "484", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:35 GMT", - "docker-distribution-api-version": "registry/2.0", - "link": "; rel=\"next\"", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "2411f3da-dd3a-430a-a3e4-3e936b66e7e4" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "904150fe2750a64bc315583ba21e8634" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "5957d79a-33ca-4fe3-8aaa-54cf4a372eb3", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:57 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5c47db57-fa04-463a-aebe-c814eadf0bca" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "d7a0c900-147d-46da-89fd-8f4e9613e2f1", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:57 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "faab671d-dcb8-4209-a5cf-bb98f989aea9" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "77557f44-ee41-4d63-b143-e8496ca53566", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:57 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4c3285df-5cd1-47f1-b71f-ed62bd0da48f" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "5957d79a-33ca-4fe3-8aaa-54cf4a372eb3", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "483", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:58 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "9a789922-9944-4fd8-bc2e-6896d5170ac3" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "manifests": [ + { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "imageSize": 4727, + "createdTime": "2022-02-09T02:57:25.5140986Z", + "lastUpdateTime": "2022-02-09T02:57:25.5140986Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} 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 546342338f5d..3d74122e9a80 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 @@ -1,118 +1,275 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:35 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "a77af777-138c-4c9e-b53b-40808444aa5d" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:35 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - WUS2 ProdSlices", - "x-ms-request-id": "ef4acac9-1f78-47a5-8d3f-ce4c59cda300" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:35 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "9d03d526-d6d2-41f2-aee4-b46357b6ff30", - "x-ms-ratelimit-remaining-calls-per-second": "166.366667" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:35 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "a4a42259-aadd-41ba-8b9c-e164a8ca2b1c", - "x-ms-ratelimit-remaining-calls-per-second": "166.35" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"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,\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"name\":\"test-delete\",\"digest\":\"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51\",\"createdTime\":\"2021-11-08T20:11:57.5087151Z\",\"lastUpdateTime\":\"2021-11-08T20:11:57.5087151Z\",\"signed\":false,\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}},{\"name\":\"test1\",\"digest\":\"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51\",\"createdTime\":\"2021-06-11T19:11:38.7001063Z\",\"lastUpdateTime\":\"2021-11-08T19:55:53.3335808Z\",\"signed\":false,\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "1022", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:35 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "212ed344-b6d9-4856-9527-47fcfac899ba" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "76dd37467bbf1e0c99121b2a85871dfa" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "34530d4c-d67d-4748-80e4-42e40cdae433", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:58 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a86eaa2f-5bc7-4f42-8a00-7db2f95b3411" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "5aab0174-2ca2-4c8d-9b1f-5c2295767961", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "1a2e604e-e5f0-4ea0-8b46-edeeb31b182c" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "bd478f53-774e-4253-9a57-5a1c28b0a035", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f9487f52-7e7f-4370-b4ab-876e690d5a90" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "34530d4c-d67d-4748-80e4-42e40cdae433", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:58 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c562bfec-7fd3-41a2-9ab2-e2cdd92597f0" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "tags": [ + { + "name": "latest", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:46.5263261Z", + "lastUpdateTime": "2022-02-09T18:47:46.5263261Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "test-delete", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-10T00:32:30.6035311Z", + "lastUpdateTime": "2022-02-10T00:32:30.6035311Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "test1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:33.7415749Z", + "lastUpdateTime": "2022-02-09T18:47:33.7415749Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "v1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:47.2960343Z", + "lastUpdateTime": "2022-02-09T18:47:47.2960343Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "v2", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:49.2582616Z", + "lastUpdateTime": "2022-02-09T18:47:49.2582616Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "v3", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:46.7668102Z", + "lastUpdateTime": "2022-02-09T18:47:46.7668102Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "v4", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:47.0046704Z", + "lastUpdateTime": "2022-02-09T18:47:47.0046704Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} 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 81b3ac2b2cc4..9f8c35612035 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 @@ -1,193 +1,355 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags", - "query": { - "n": "1", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:35 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "79c6ad55-c897-4bce-89eb-a5c6893f2399" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:35 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - WUS2 ProdSlices", - "x-ms-request-id": "ef4acac9-1f78-47a5-8d3f-ce4c6ecda300" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:35 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "46a51247-c88f-4e7a-9842-f5c0881c8913", - "x-ms-ratelimit-remaining-calls-per-second": "166.333333" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:36 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "5d15798e-75c8-40e5-9ee2-79e599636e7e", - "x-ms-ratelimit-remaining-calls-per-second": "166.316667" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags", - "query": { - "n": "1", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"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,\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "392", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:36 GMT", - "docker-distribution-api-version": "registry/2.0", - "link": "; rel=\"next\"", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "e2fd9c79-6ebd-4664-a176-57ff6a57c255" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags", - "query": { - "last": "latest", - "n": "1", - "orderby": "", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:36 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "65fade7c-d6f0-4f67-b665-4cc55aefc7ff" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:36 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "46ff7ea1-aa88-431d-9e04-810022100c01", - "x-ms-ratelimit-remaining-calls-per-second": "166.3" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags", - "query": { - "last": "latest", - "n": "1", - "orderby": "", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"tags\":[{\"name\":\"test-delete\",\"digest\":\"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51\",\"createdTime\":\"2021-11-08T20:11:57.5087151Z\",\"lastUpdateTime\":\"2021-11-08T20:11:57.5087151Z\",\"signed\":false,\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "397", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:36 GMT", - "docker-distribution-api-version": "registry/2.0", - "link": "; rel=\"next\"", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "82297739-6337-47d7-b5b2-96bec2fa1e5a" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "35f46853ffc81bf71e1df4b08cfef74c" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?n=1\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "99adccc4-d364-4fa9-8b79-76b60e27e4cb", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:58 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "05e11feb-4b32-471a-b8c6-301186debd96" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "2688ecdc-edb0-41b6-99cb-9abd95527e26", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b21dc63c-4e95-4da0-a6c3-3106064aa0ae" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "cadba0f8-8a1c-491e-9a65-f15b0826941b", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e8a57989-0c7a-4c3b-b16c-b67ecd480458" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?n=1\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "99adccc4-d364-4fa9-8b79-76b60e27e4cb", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:59 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fhello-world/_tags?last=latest\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "438e57ba-f6a9-45a8-9678-cca064d0bf9f" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "tags": [ + { + "name": "latest", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:46.5263261Z", + "lastUpdateTime": "2022-02-09T18:47:46.5263261Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=latest\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "adaf1ac9-0eca-4396-9523-0655630aae1c", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:59 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c3cb826f-7af4-4c77-9f55-c8ea889c4214" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "dae90373-91df-462b-aeb3-f8a0b3352d85", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "afb3b413-05a5-4d56-b6ab-e3aa2d3aba48" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=latest\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "adaf1ac9-0eca-4396-9523-0655630aae1c", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "396", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:59 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fhello-world/_tags?last=test-delete\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "85c53cc8-9af7-4b89-869f-27f9f93e2b73" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "tags": [ + { + "name": "test-delete", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-10T00:32:30.6035311Z", + "lastUpdateTime": "2022-02-10T00:32:30.6035311Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} 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 b7432fa1a9ea..9188d8278dfd 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 @@ -1,124 +1,198 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags", - "query": { - "last": "test-delete", - "n": "1", - "orderby": "", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:36 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "4a103332-70f7-47ea-b9b8-111cf59ff200" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:36 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - EUS ProdSlices", - "x-ms-request-id": "ad7839d5-4e10-4518-b087-69a6349ec900" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:36 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "c4551686-a13e-4518-8680-d8c7bb766b79", - "x-ms-ratelimit-remaining-calls-per-second": "166.283333" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:36 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "eec151d0-c79a-484c-b6e6-3e08728c3513", - "x-ms-ratelimit-remaining-calls-per-second": "166.266667" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags", - "query": { - "last": "test-delete", - "n": "1", - "orderby": "", - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"tags\":[{\"name\":\"test1\",\"digest\":\"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51\",\"createdTime\":\"2021-06-11T19:11:38.7001063Z\",\"lastUpdateTime\":\"2021-11-08T19:55:53.3335808Z\",\"signed\":false,\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "391", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:37 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "9d5a9cd3-58ba-4b44-affb-8d9aa2332025" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "411fc10aeb3e1b9c38baeeaa97f968da" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=test-delete\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "2ceaf78d-58f1-4f48-8369-33b74944b578", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:33:59 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "379c2f26-4944-43cc-8d45-23f1fad29573" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "3f20edbf-f90b-4f67-bacd-c9720f6be1a7", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:00 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a92870a4-a6b9-48c7-86aa-5f83335ee814" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "5a4f1929-9480-4566-911f-7f1aed8e4e9d", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:00 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e3622b76-7af0-4fca-b5df-b6d237dd5d03" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=test-delete\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "2ceaf78d-58f1-4f48-8369-33b74944b578", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "390", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:00 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fhello-world/_tags?last=test1\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e1a2f1d9-464f-404b-938a-d3e07db12517" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "tags": [ + { + "name": "test1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:33.7415749Z", + "lastUpdateTime": "2022-02-09T18:47:33.7415749Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} 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 e48aa5b2fec0..3726c7480b72 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 @@ -1,118 +1,197 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:41 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "d089374d-d553-4c10-a62f-d53f03d4c9cc" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:41 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - SCUS ProdSlices", - "x-ms-request-id": "59f1e6a0-a5a7-496f-b6bc-55124aecea00" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:41 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "369c2b6b-ced3-4db1-a4c1-f7e870432715", - "x-ms-ratelimit-remaining-calls-per-second": "166.033333" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:41 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "a39d1f98-8224-40ca-b080-15db43fbd971", - "x-ms-ratelimit-remaining-calls-per-second": "166.016667" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"manifest\":{\"digest\":\"sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409\",\"imageSize\":4727,\"createdTime\":\"2021-10-06T21:01:30.4148083Z\",\"lastUpdateTime\":\"2021-10-06T21:01:30.4148083Z\",\"architecture\":\"386\",\"os\":\"linux\",\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "481", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:41 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "412576c7-037d-4363-8bbd-8e876ec9bb84" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "522923b27b72c55232f8f7750b76367d" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "f0b760f1-2191-4e7f-ab28-d318abd67e0f", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:05 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d8287bb9-0338-4887-a9b1-fd8b1ed92b74" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "5b825fc4-5344-4de6-9362-07946beed8f8", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "095a3f1a-aa06-43b6-a2d0-d68fc505d448" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "ae202827-5ef6-4659-8af9-d23adf7886a4", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5a0a6975-5f0c-4785-8462-11c320475da3" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "f0b760f1-2191-4e7f-ab28-d318abd67e0f", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "480", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:06 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a40251e3-2d4f-4f3a-8532-07049a5f2012" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "manifest": { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "imageSize": 4727, + "createdTime": "2022-02-09T02:57:25.5140986Z", + "lastUpdateTime": "2022-02-09T02:57:25.5140986Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } + ], + "Variables": {} +} 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 c8eeb635a706..e69339c28adc 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 @@ -1,183 +1,415 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:40 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "0c396baa-f851-47d7-8759-80f8e04b5a9d" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:40 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - NCUS ProdSlices", - "x-ms-request-id": "2d569c2f-a280-459c-b60c-0972f6aea200" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:40 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "5c50e682-ba2b-436b-bd30-b4fee1b0b865", - "x-ms-ratelimit-remaining-calls-per-second": "166.083333" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:40 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "71d6f3aa-3abf-475c-b2ca-e7e9e34f9033", - "x-ms-ratelimit-remaining-calls-per-second": "166.066667" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"tag\":{\"name\":\"test1\",\"digest\":\"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51\",\"createdTime\":\"2021-06-11T19:11:38.7001063Z\",\"lastUpdateTime\":\"2021-11-08T19:55:53.3335808Z\",\"signed\":false,\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "388", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:40 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "ccbef00f-d54c-455b-9c41-2c4423931b34" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:40 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "c7ddbdaa-8b04-4827-87cc-23f3bdd20fba" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:40 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "bcfa2315-be2e-4b12-90ba-dc75bcadc414", - "x-ms-ratelimit-remaining-calls-per-second": "166.05" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"manifest\":{\"digest\":\"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51\",\"imageSize\":61625,\"createdTime\":\"2021-11-08T19:55:53.1835258Z\",\"lastUpdateTime\":\"2021-11-08T19:55:53.1835258Z\",\"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:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4\",\"architecture\":\"amd64\",\"os\":\"linux\"},{\"digest\":\"sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c\",\"architecture\":\"arm\",\"os\":\"linux\"},{\"digest\":\"sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c\",\"architecture\":\"arm\",\"os\":\"linux\"},{\"digest\":\"sha256:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184\",\"architecture\":\"arm64\",\"os\":\"linux\"},{\"digest\":\"sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409\",\"architecture\":\"386\",\"os\":\"linux\"},{\"digest\":\"sha256:c2f204d26b4ea353651385001bb6bc371d8c4edcd9daf61d00ad365d927e00c0\",\"architecture\":\"mips64le\",\"os\":\"linux\"},{\"digest\":\"sha256:b836bb24a270b9cc935962d8228517fde0f16990e88893d935efcb1b14c0017a\",\"architecture\":\"ppc64le\",\"os\":\"linux\"},{\"digest\":\"sha256:98c9722322be649df94780d3fbe594fce7996234b259f27eac9428b84050c849\",\"architecture\":\"riscv64\",\"os\":\"linux\"},{\"digest\":\"sha256:c7b6944911848ce39b44ed660d95fb54d69bbd531de724c7ce6fc9f743c0b861\",\"architecture\":\"s390x\",\"os\":\"linux\"},{\"digest\":\"sha256:31801872aacfc6245ba5277e07dc2c9a482a473c87d625f25c3e6d5de930b35d\",\"architecture\":\"amd64\",\"os\":\"windows\"},{\"digest\":\"sha256:563c31a6b24347d3f367df5dc33890ab1aec20e9470e5d998f3b6a8fc6eb5763\",\"architecture\":\"amd64\",\"os\":\"windows\"}]}}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "1835", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:41 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "3a639581-b550-4ec2-a422-4c414f22c94e" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "40be44c8d3e22cf96e7b9b7947b32ec0" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "92f375d4-6472-4482-be43-1edef59776a8", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:04 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7ce5073f-f602-4084-b31a-820e2a5625c2" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "d051e11b-2953-4928-93a0-f61704a84a72", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3362cb68-b40f-4c97-8ada-55ce5cc4ca5e" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "02313a14-a930-4d42-90e8-d5d4f2f56436", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d990c595-f1f7-4c09-9547-eaa6b8e556b7" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "92f375d4-6472-4482-be43-1edef59776a8", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "387", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:05 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f789027f-2011-48f6-9502-d8733a27b24e" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "test1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:33.7415749Z", + "lastUpdateTime": "2022-02-09T18:47:33.7415749Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "398f936f-6352-4a63-a085-af4d3bcb3b2e", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:05 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "2c07e698-9cb9-4772-9cdb-0ba997b1ec22" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "c4880933-2e20-4fab-aee7-fe6945849208", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "77a8a3c0-7e95-4884-9e5d-22d68416e02b" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "398f936f-6352-4a63-a085-af4d3bcb3b2e", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "1863", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:05 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "6ef616be-b047-4526-a9a6-a0f9c437f11d" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "manifest": { + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "imageSize": 61614, + "createdTime": "2022-02-09T18:47:33.6395637Z", + "lastUpdateTime": "2022-02-09T18:47:33.6395637Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest", + "test-delete", + "test1", + "v1", + "v2", + "v3", + "v4" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + }, + "references": [ + { + "digest": "sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4", + "architecture": "amd64", + "os": "linux" + }, + { + "digest": "sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c", + "architecture": "arm", + "os": "linux" + }, + { + "digest": "sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c", + "architecture": "arm", + "os": "linux" + }, + { + "digest": "sha256:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:c2f204d26b4ea353651385001bb6bc371d8c4edcd9daf61d00ad365d927e00c0", + "architecture": "mips64le", + "os": "linux" + }, + { + "digest": "sha256:b836bb24a270b9cc935962d8228517fde0f16990e88893d935efcb1b14c0017a", + "architecture": "ppc64le", + "os": "linux" + }, + { + "digest": "sha256:98c9722322be649df94780d3fbe594fce7996234b259f27eac9428b84050c849", + "architecture": "riscv64", + "os": "linux" + }, + { + "digest": "sha256:c7b6944911848ce39b44ed660d95fb54d69bbd531de724c7ce6fc9f743c0b861", + "architecture": "s390x", + "os": "linux" + }, + { + "digest": "sha256:b3dd41b5fbccbf0e39bee932466d389214cddcb53fa4ad5d02f29ee4172db8c7", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:fdea2bf76c9a47fc0b81958cb87aa65448012ef36ce051a72a09db398efdf7cc", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + } + ], + "Variables": {} +} 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 5d12f7bfdc33..3864aa6e6181 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 @@ -1,118 +1,195 @@ { - "recordings": [ - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 401, - "response": "{\"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\"}]}]}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "222", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:39 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, 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\"", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "5ff2dde2-ee8b-47e5-8ffb-3d5b371dc8e6" - } - }, - { - "method": "POST", - "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, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", - "responseHeaders": { - "cache-control": "no-store, no-cache", - "content-length": "1351", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:39 GMT", - "expires": "-1", - "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.12197.4 - WUS2 ProdSlices", - "x-ms-request-id": "ef4acac9-1f78-47a5-8d3f-ce4c11cea300" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/exchange", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token", - "status": 200, - "response": "{\"refresh_token\":\"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:40 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "cc3d7100-dfef-46d8-b2f2-3dcb59619ef7", - "x-ms-ratelimit-remaining-calls-per-second": "166.116667" - } - }, - { - "method": "POST", - "url": "https://myregistry.azurecr.io/oauth2/token", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token", - "status": 200, - "response": "{\"access_token\":\"access_token\"}", - "responseHeaders": { - "connection": "keep-alive", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:40 GMT", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "transfer-encoding": "chunked", - "x-ms-correlation-request-id": "1279eeb0-2a49-4383-9cc1-694fbd4dd6d9", - "x-ms-ratelimit-remaining-calls-per-second": "166.1" - } - }, - { - "method": "GET", - "url": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1", - "query": { - "api-version": "2021-07-01" - }, - "requestBody": null, - "status": 200, - "response": "{\"registry\":\"myregistry.azurecr.io\",\"imageName\":\"library/hello-world\",\"tag\":{\"name\":\"test1\",\"digest\":\"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51\",\"createdTime\":\"2021-06-11T19:11:38.7001063Z\",\"lastUpdateTime\":\"2021-11-08T19:55:53.3335808Z\",\"signed\":false,\"changeableAttributes\":{\"deleteEnabled\":true,\"writeEnabled\":true,\"readEnabled\":true,\"listEnabled\":true}}}\n", - "responseHeaders": { - "access-control-expose-headers": "Docker-Content-Digest, WWW-Authenticate, Link, X-Ms-Correlation-Request-Id", - "connection": "keep-alive", - "content-length": "388", - "content-type": "application/json; charset=utf-8", - "date": "Mon, 08 Nov 2021 20:12:40 GMT", - "docker-distribution-api-version": "registry/2.0", - "server": "openresty", - "strict-transport-security": "max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-correlation-request-id": "bec63c62-4913-40dd-90a2-e92e3012c69c" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "9ad36bbb1839140335a17ae22a8951f2" -} \ No newline at end of file + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "79f9c8a3-2046-450c-ad58-3de4baa18908", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:04 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022timovacr.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c973cd39-f4ed-42dc-97da-80868ea4b8ca" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "82", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "c3506635-85ee-4b8e-9334-aad529f5ae9e", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "grant_type=access_token\u0026service=timovacr.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:04 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2d6b7d09-17c1-4e06-aab5-3291ff8da1a0" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Connection": "keep-alive", + "Content-Length": "172", + "Content-Type": "application/x-www-form-urlencoded", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "9320e03f-6184-4b39-8bae-24fa222803c3", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": "service=timovacr.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:04 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d36237e8-dfea-4b8e-8932-4820fe02a5a9" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", + "x-ms-client-request-id": "79f9c8a3-2046-450c-ad58-3de4baa18908", + "x-ms-useragent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "387", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:34:04 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c11cf83d-ed9d-41fa-b26e-feba74ff5723" + }, + "ResponseBody": { + "registry": "timovacr.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "test1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:33.7415749Z", + "lastUpdateTime": "2022-02-09T18:47:33.7415749Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 421aa6630f22..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/anonymous_access_tests/recording_should_list_repositories_with_anonymous_access.js +++ /dev/null @@ -1,97 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "6e2d53030688d68fea1002128770e796"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/_catalog') - .query(true) - .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, 08 Nov 2021 20:10:16 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '196', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Www-Authenticate', - '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', - '53051afe-7b8f-4899-a720-2680d17cf855', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=registry%3Acatalog%3A*&refresh_token=&grant_type=password") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:16 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '8315e6ff-6302-4dbe-a601-ec601da6e30d', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/_catalog') - .query(true) - .reply(200, {"repositories":["hello-world","library/alpine","library/busybox","library/hello-world","library/node","node"]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:16 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '112', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'f350accc-db9d-4bcf-a82b-a3a570fa8dca', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); diff --git a/sdk/containerregistry/container-registry/recordings/node/anonymous_access_tests/recording_should_list_repositories_with_anonymous_access.json b/sdk/containerregistry/container-registry/recordings/node/anonymous_access_tests/recording_should_list_repositories_with_anonymous_access.json new file mode 100644 index 000000000000..3958ff3d7910 --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/anonymous_access_tests/recording_should_list_repositories_with_anonymous_access.json @@ -0,0 +1,121 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "573281db-7777-4b9f-87a8-3405f97cddbc" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "196", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:26:59 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e071b6a7-8f42-40d4-a21a-b469837e823e" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "93", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "469b93e3-19f2-407c-b4c1-3c55c5620523" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=registry%3Acatalog%3A*\u0026refresh_token=\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:26:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d5a2c442-4138-4c4a-963d-d50fc4de5c5c" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "573281db-7777-4b9f-87a8-3405f97cddbc" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "59", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:26:59 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "cc334c92-84b7-4f56-a12e-ba54d37f9d0c" + }, + "ResponseBody": { + "repositories": [ + "library/busybox", + "library/hello-world" + ] + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index bce1d32c6c8e..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/anonymous_access_tests/recording_should_throw_error_setting_properties_with_anonymous_access.js +++ /dev/null @@ -1,99 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "9bffdd9e78d97841b9f11917b9f35378"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .patch('/acr/v1/library%2Fhello-world', {"deleteEnabled":false}) - .query(true) - .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_write"}]}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:17 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '223', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '14ea2103-d3f8-4f4d-82e9-288d17885e1e', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&refresh_token=&grant_type=password") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:17 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '7ee112df-b7fd-4e9b-9260-9adfaee5d5a4', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .patch('/acr/v1/library%2Fhello-world', {"deleteEnabled":false}) - .query(true) - .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_write"}]}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:17 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '223', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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="insufficient_scope"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '2686d567-5612-4dce-8ec5-7a29ac91a5bc', - '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.json b/sdk/containerregistry/container-registry/recordings/node/anonymous_access_tests/recording_should_throw_error_setting_properties_with_anonymous_access.json new file mode 100644 index 000000000000..67f3788ae10a --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/anonymous_access_tests/recording_should_throw_error_setting_properties_with_anonymous_access.json @@ -0,0 +1,139 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "23", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "f77c275d-16a5-4229-aa02-54ef91e82aea" + }, + "RequestBody": { + "deleteEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:00 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "57f65414-bf41-46cf-b5af-6fea5e361677" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "122", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "f3c9c540-946c-4b1f-8541-91784fc5ccc0" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026refresh_token=\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:00 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "09c48c63-eae4-4bf6-82dd-3e971502e5c3" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "23", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "f77c275d-16a5-4229-aa02-54ef91e82aea" + }, + "RequestBody": { + "deleteEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:00 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022,error=\u0022insufficient_scope\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5c0c696c-96ae-4411-885c-1165d6da1c1a" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 123d96ac6dc2..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_deletes_repository_of_given_name.js +++ /dev/null @@ -1,329 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "62f8cb8ea39bed2f53833d16c5a95b41"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .delete('/acr/v1/library%2Fbusybox') - .query(true) - .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, 08 Nov 2021 20:10:24 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '211', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'd965ee40-23f0-4f0d-8740-baec26f1138d', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - '3a93e144-1fe5-4959-af00-e315d7f4c600', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=Au4OQuxvsF9GuSI6l3vVj-4; expires=Wed, 08-Dec-2021 20:10:24 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrqEQNDroo09IUJalL-tsGujr-7g0RyyO5hH33My9XoUVhe332BoQq3lxMuZ-r0ffigyk4jZ_bbp5DAUpl7oPx9mCzJV6UCMufHUuAXWdc3-g2QSO5MEuo41SXo6JmWpr9yp1UpevAG-rCVFUflUjeqdZ7j3uVNiz6Hq7wCZ6ZUNYgAA; 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', - 'Mon, 08 Nov 2021 20:10:23 GMT', - 'Connection', - 'close', - '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', - '88ac39c9-f386-4446-8186-1be97185af00', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=AqOsKn5NUg9JmK_r0ki6HNU; expires=Wed, 08-Dec-2021 20:10:24 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_sYxAC4jUwuBl89mbqR5hr5eEGNP7LJdwYI32F6HgLbs_GmwiCbCIbZEPujGts9efLgwtO3XWk3Jchm05saGLhe0ci-ihJPgRsWqlgwf2ewg6Rir-Z6IwomyV8GMSlpOmd1xKV6atT6tdr4Bi-k01lieacqz7JDBKlzOKNShGTEgAA; 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', - 'Mon, 08 Nov 2021 20:10:23 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=50ae7b87-842e-403a-8426-63c1490a56d7&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'cac94cd0-6c34-4e4c-a518-d911fc49cb00', - 'x-ms-ests-server', - '2.1.12197.4 - EUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ak-KXlTguGxOnDlBQs5YpEhGOXJzAQAAADB7G9kOAAAA; expires=Wed, 08-Dec-2021 20:10:24 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 08 Nov 2021 20:10:24 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:24 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'f8ea5feb-d84e-4c4f-bed7-10241ff4b690', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Adelete&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:25 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '91cf54af-f6ba-4c32-bbb8-a0a95bac9a82', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .delete('/acr/v1/library%2Fbusybox') - .query(true) - .reply(202, {"manifestsDeleted":["sha256:06b206c1f1a38094697c7e8bf868f9d326e56a256bc516dbb8ff0ee9c1178999","sha256:15e927f78df2cc772b70713543d6b651e3cd8370abf86b2ea4644a9fba21107f","sha256:399e1e4a0d587717dc9e3a85150cec8498cb6dc73dcb7eddb94959fedb331104","sha256:4ecc3dc2e06a24df931cb719c3784611d15721c3cb64ab069141071b73f6598b","sha256:53c212bcc0501f011c232df0fb6c837651d0b2f3257b6478a50c0e006b0dabc5","sha256:6066ca124f8c2686b7ae71aa1d6583b28c6dc3df3bdc386f2c89b92162c597d9","sha256:77df281071dd7e01972ec2c4a33c1a6c00d13b24238375fd6622fce97f622fa2","sha256:86824a27910bd2a8c6a8478fe99206e6cf4bcada7cb8435c0060cbe885559e53","sha256:b70f0f45692830c2990b42f770aa29488c20ac41f1c3dcaa242920b73cb1399b","sha256:c71cb4f7e8ececaffb34037c2637dc86820e4185100e18b4d02d613a9bd772af","sha256:ce53e9b0310447d0e851ff0d2c9b90f358dbffe719a723147e84b93a4799396c"],"tagsDeleted":["latest"]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:26 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '862', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Client-Request-Id', - '7b3c680b-508e-4e21-b15c-9cb69a5b78bb', - 'X-Ms-Correlation-Request-Id', - 'f5507fe7-b823-4322-801a-dbcea0ca8444', - 'X-Ms-Ratelimit-Remaining-Calls-Per-Second', - '8.000000', - 'X-Ms-Request-Id', - '3d46a10e-f0cb-478c-98cc-dedd3433ede1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/_catalog') - .query(true) - .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, 08 Nov 2021 20:10:27 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '196', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Www-Authenticate', - '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', - 'e4c18706-1709-4312-81c5-aa6e6bfe0a76', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=registry%3Acatalog%3A*&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:27 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '5812a737-e243-4042-bb71-340d81a34ff2', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/_catalog') - .query(true) - .reply(200, {"repositories":["busybox","hello-world","library/hello-world"]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:27 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '65', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '6d1845b3-31bc-4a01-aaf2-f690bf89ef96', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); diff --git a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_deletes_repository_of_given_name.json b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_deletes_repository_of_given_name.json new file mode 100644 index 000000000000..873e70c36fd3 --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_deletes_repository_of_given_name.json @@ -0,0 +1,277 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fbusybox?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "09727dd0-73c5-4bb6-ba8a-2814c62116f7" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "211", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:03 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/busybox:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "4df585f0-2f81-4996-bd75-860c74f34cbf" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "5e783966-d9a8-4fce-945b-189c1df85f4b" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "fb36eb91-8ea7-48fa-a1d7-da958b137913" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "163", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "33c6f1c5-6581-439a-ace5-249ac679f4f1" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Adelete\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "24b9669c-ef23-4736-8446-fd6a4730b559" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fbusybox?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "09727dd0-73c5-4bb6-ba8a-2814c62116f7" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "862", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:05 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Client-Request-Id": "09727dd0-73c5-4bb6-ba8a-2814c62116f7", + "X-Ms-Correlation-Request-Id": "2a2a8e2f-479c-4187-9136-d6ad6e147420", + "X-Ms-Request-Id": "80bbda7b-48a5-4a7f-a518-b605a5b2c4a3" + }, + "ResponseBody": { + "manifestsDeleted": [ + "sha256:02cdeb6ebe57001c73da6adf199eb94a94b6d8c5ef7a92432928d1b3861ff53c", + "sha256:2a64d8b2861154867e526a189eddfc7afaf12c13c9b67a56b7adcd56895818ae", + "sha256:2d06e13d26ccd313d3029e44f48d69ad4c98d0bf934692befb288dc6404a3ad9", + "sha256:3f6c90002d9d31b871ee132953db48422b3dea4815d662d9e54ca389d2366800", + "sha256:4bcaeca137ff437584eb96c41b425b4010167a0156f0a9f7bbc26f9a36d536df", + "sha256:5ca5e3117f6f9bdb803ea67af89203b7e62a28c7456c098809f712a7294ceaaa", + "sha256:5ff091cdd7eadbe140ac122d166a8f20f346a72d7eea9ababbd0546e0ca73049", + "sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb", + "sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578", + "sha256:bb2a26ee650f0f3f49a2676bc50bcc4f44d9f1f6c7c12b7b4acc17beda338af4", + "sha256:ce06da2e3e24e4ac99f6da067bcab57e3dcc2ea4582da16e5d97003c32a6fa8c" + ], + "tagsDeleted": [ + "latest" + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "5c520be1-ee0a-439c-85ad-cdea80b8e6f8" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "196", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:05 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "2654b3c6-8991-49b7-9298-3e332479a1e2" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "146", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "3e0bb968-c5cf-44ee-854f-4f7ad5aa3f46" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=registry%3Acatalog%3A*\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8afe3e65-40dd-49b5-8d74-1bb8acb80b51" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "5c520be1-ee0a-439c-85ad-cdea80b8e6f8" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "41", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:05 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8fbd9227-e263-4f52-986a-caeec4dd3931" + }, + "ResponseBody": { + "repositories": [ + "library/hello-world" + ] + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index b538ff36e17b..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories.js +++ /dev/null @@ -1,231 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "604f083c9e50776791ae9851719c21c9"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/_catalog') - .query(true) - .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, 08 Nov 2021 20:10:17 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '196', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Www-Authenticate', - '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', - '0d2ed71d-d9ef-45dc-96d9-ac6b2110ddf4', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - '21700992-e626-47ec-ba81-083e7b6fd300', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=As7rR3vm_dtApLakjHCTc8s; expires=Wed, 08-Dec-2021 20:10:17 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-Ra49hpCGUW-0bJtK_EzVXIczR5XBUDKqe_ht5Q0CVHcqD_-tGvtSnHWEinaUMXIORDBnrCuu7kAhynAi6vXdJzUMwmytJoDN7Mw214mAhdisjcCAzbbCSysOdIYrmApdHDHgC6Mwnab-ilk5ejnrhx8JQ-QBQ510Kt-0WbXxckgAA; 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', - 'Mon, 08 Nov 2021 20:10:17 GMT', - 'Connection', - 'close', - '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', - '63e7e88e-e096-4f91-bc96-1f7ed0d5e800', - 'x-ms-ests-server', - '2.1.12197.4 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AjytkSzEj35Eu-YtVuPZ_z0; expires=Wed, 08-Dec-2021 20:10:18 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevruIP__ozQNsS2L3gXpV3vTPf264SPPNVuLfUd04K3hhmMEypAUASRC2XRGvaKP8LNaNHLrydTJslxEGPMXX162FmStPR_cUvDP9v3CSNnTn_C_dDtogSTjBkkPFDNE_jvXPK2Kx8ivf4u9n34SxJidSwYxy4nkrejBEczWZKN1UkgAA; 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', - 'Mon, 08 Nov 2021 20:10:17 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=9c6adc41-2607-43b9-a35a-70bc732c8aab&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'b67c51e4-baca-476e-a116-a55695d49d00', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AqaHutRg2PhJjrVxNQhuOXlGOXJzAQAAACl7G9kOAAAA; expires=Wed, 08-Dec-2021 20:10:18 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 08 Nov 2021 20:10:17 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:18 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '5fe3d9e0-1676-4faa-bbf1-fcb0728a4794', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=registry%3Acatalog%3A*&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:19 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '19bed536-0c7e-4688-acbe-ec7d70d28ff2', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/_catalog') - .query(true) - .reply(200, {"repositories":["busybox","hello-world","library/busybox","library/hello-world"]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:19 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '83', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'b96d7db4-3d38-4a9c-95b4-de70675e6c65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); diff --git a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories.json b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories.json new file mode 100644 index 000000000000..314f7d51e2c5 --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories.json @@ -0,0 +1,148 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "43d1d5ef-4231-4415-b71c-1eb1db916801" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "196", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:00 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "10303001-fd3a-4c14-9bf5-7a177cd6fa1e" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "407e5d35-2040-4503-af31-8c1ac4b3f29e" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:00 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e6716b2b-8c57-44fa-871c-244e94d47806" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "146", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "53ef8d9d-993b-4117-a552-bc24dbadfcc9" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=registry%3Acatalog%3A*\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f00dfe85-40b8-4a51-89b0-9fda99f75b5f" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "43d1d5ef-4231-4415-b71c-1eb1db916801" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "59", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:01 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ed505d6c-4cd4-4c60-9420-121f370d11cd" + }, + "ResponseBody": { + "repositories": [ + "library/busybox", + "library/hello-world" + ] + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 44d86f45803a..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages.js +++ /dev/null @@ -1,327 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "8f5bedd6f486e16f38ab5bfe9683f9bd"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/_catalog') - .query(true) - .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, 08 Nov 2021 20:10:19 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '196', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Www-Authenticate', - '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', - '875736fb-967d-4c17-9e4b-8fecd11494ea', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - 'ff3d1132-a188-46d1-9f5b-65edeb0dc001', - 'x-ms-ests-server', - '2.1.12171.15 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ajfj1SEp5xpJitmAXwuxdEQ; expires=Wed, 08-Dec-2021 20:10:19 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr8kZk3FdeF8seM1IQiIexIPLtIf_QFcVaeMWUy2Mxy8fPol0009MaPfz640PxltunBx3Y-5AKxlULuqvEJEA0KngIsqxh7gxwHoYQrhx3-EOx9KUOEO9Fgs4J8BaT4guAB4KC1r7U4Ys3nVvJNi41UMSh8Z8HL20GL_Aj97f1bjogAA; 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', - 'Mon, 08 Nov 2021 20:10:19 GMT', - 'Connection', - 'close', - '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', - '5bcbda75-7f69-42fa-b72a-21a2fcd69600', - 'x-ms-ests-server', - '2.1.12197.4 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=AgJElj8iKOZOuaeaY_rZSBs; expires=Wed, 08-Dec-2021 20:10:20 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrUSRDOSzyHiKdO4YPMdaFsgGUZeh_wc6oMwnoQiL2fJGGiyUpQSCKfL54P95bkJItHMLq90Zv4vqlHzVso-qUpWh__OqfQSQJN_go2LaIvXwUJd2UcVRLdYYsSn90HZm9aeU1edeGDWA1_Yw2m9bp_CqajWjiQcpd46EItkjEWrQgAA; 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', - 'Mon, 08 Nov 2021 20:10:19 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=0fdf75b4-3b55-45bb-a696-eeca7a7b6ee8&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '786b46af-f0e4-44d6-9f50-0e7b8850af00', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AihWwKPsLetJjURCtU3os1FGOXJzAQAAACx7G9kOAAAA; expires=Wed, 08-Dec-2021 20:10: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', - 'Mon, 08 Nov 2021 20:10:19 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:20 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'd35f5571-697c-4a2c-a321-b5d0ad305d6f', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=registry%3Acatalog%3A*&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:20 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '3fc806b9-a092-4b89-89b4-c5e484d1955e', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/_catalog') - .query(true) - .reply(200, {"repositories":["busybox"]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:21 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '29', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - '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', - '4f076c97-b51c-46b4-92e4-58cc88ea3a85', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/_catalog') - .query(true) - .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, 08 Nov 2021 20:10:21 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '196', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Www-Authenticate', - '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', - 'ed1f1647-91e5-42b6-8e44-dbc3fe004dca', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=registry%3Acatalog%3A*&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:21 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'a03bf11b-302f-4d30-9644-ea4cceeca026', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/_catalog') - .query(true) - .reply(200, {"repositories":["hello-world"]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:22 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '33', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - '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', - '8d0faa19-bc75-49ca-8c96-913df1b0973b', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); diff --git a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages.json b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages.json new file mode 100644 index 000000000000..628c46b1a977 --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages.json @@ -0,0 +1,263 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?n=1\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "b39e2a31-7486-4316-911b-0385f000b45e" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "196", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:01 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f90163b7-953e-421a-b3aa-327d7b27b578" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "2c68920a-80d7-498a-895e-f632f2d293f7" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "229a6798-bb74-4b2b-bb5d-00691364f56a" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "146", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "c2ab7a0f-f4cb-48f4-8379-550318a9a881" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=registry%3Acatalog%3A*\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "76332ab7-4ba9-4a52-ac89-9ec969deef66" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?n=1\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "b39e2a31-7486-4316-911b-0385f000b45e" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "37", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:02 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=library%2Fbusybox\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b84eb5cb-5247-4037-8720-421d937ba5ad" + }, + "ResponseBody": { + "repositories": [ + "library/busybox" + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "3a0b5a87-7cc6-40e7-ba33-7d06929f0222" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "196", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:02 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b2c8268f-f19a-4bc8-8fac-9d3915c21025" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "146", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "7ce208cb-8622-4fc4-9ae4-8d605e9228eb" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=registry%3Acatalog%3A*\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "83afd5ee-2f32-4f69-ba54-625b906a099b" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "3a0b5a87-7cc6-40e7-ba33-7d06929f0222" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "41", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:02 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "0a4c66f3-0e81-455c-bfed-1be7ea224836" + }, + "ResponseBody": { + "repositories": [ + "library/hello-world" + ] + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 3d3604dc85be..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.js +++ /dev/null @@ -1,233 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "2b783c7894a3e8227c1145cc1af9caed"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/_catalog') - .query(true) - .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, 08 Nov 2021 20:10:22 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '196', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Www-Authenticate', - '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', - 'e3e42692-32f9-45ca-b57a-c43aecde4960', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - 'f9173078-3bbe-4b6b-aa83-a31e0d7b0c01', - 'x-ms-ests-server', - '2.1.12171.15 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=ArlGpx5Q4LtLg3kRGbycxzY; expires=Wed, 08-Dec-2021 20:10:22 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJoKF9ASL_xIc-ZEc5khGb6xXDgKA1fGAXcroqWjIWfqUkku2Nxb_FlghzFUDFjnvXj4h8hdU6OIecsWTDYLi0lYaPZEPGU2TPMEkD0-0Y4aluJ-6_MJCNECpdIRn1SYhfjig0bjilNH7q3MuwuyESu8Zd0LuwkXaSCVROO1xnAggAA; 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', - 'Mon, 08 Nov 2021 20:10:21 GMT', - 'Connection', - 'close', - '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', - '52de8148-e744-4819-95af-274ced86d900', - 'x-ms-ests-server', - '2.1.12197.4 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AioYRgWH08BFuwFeMh520gE; expires=Wed, 08-Dec-2021 20:10:22 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrdoazMEy0vYXjrDTKrRLFCxESjkMCKXcbIPx2B9-D-ISlLbdGQLz2z4akMm7sUNKJuCMrJhu4nBJJTDfRc5Oz2WDztolMa3kSDdPw7WftUDFLyhdFxQggAty0BbVxDC5sXp8uRA4RKnneEUh0ZmfAeRo5PsKPyKy71OBU7L6qC3wgAA; 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', - 'Mon, 08 Nov 2021 20:10:22 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=6865ec10-caa1-4947-807f-23f9b4447f22&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'd7f440cd-9a28-421d-a0e0-3122c6b2a400', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AqTALiFgRapHu-QqvUuWseNGOXJzAQAAAC57G9kOAAAA; expires=Wed, 08-Dec-2021 20:10: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', - 'Mon, 08 Nov 2021 20:10:22 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:23 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'a839f9ee-9bb2-4ef5-98c3-9a6159c67205', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=registry%3Acatalog%3A*&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:23 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '34f3dfd3-de98-480d-83c3-b5662528d315', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/_catalog') - .query(true) - .reply(200, {"repositories":["hello-world"]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:23 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '33', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - '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', - '179b2f8d-5ec1-44b0-86bf-2ae21ad21ee1', - '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.json b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.json new file mode 100644 index 000000000000..bafc9b97dc2a --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/containerregistryclient_tests/recording_should_list_repositories_by_pages_with_continuationtoken.json @@ -0,0 +1,148 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?last=busybox\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "6298be8a-7d97-45e4-b728-0e81c836f79f" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "196", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:02 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e9f0d9f5-a2c0-4b97-88cc-bcc86c1d685c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "04a9359b-56ac-4c38-a15c-2d4942e15a38" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2feb0303-6b3a-4614-b29b-bd18cb7444cc" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "146", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "2c821e24-e3a6-4224-8aff-cc3c4ce2b250" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=registry%3Acatalog%3A*\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "98df5c21-5ad0-48b3-860a-a46067efa493" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/_catalog?last=busybox\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "6298be8a-7d97-45e4-b728-0e81c836f79f" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "37", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:03 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=library%2Fbusybox\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "42c84aa3-7c43-4466-b75c-9e98cf5a2a3e" + }, + "ResponseBody": { + "repositories": [ + "library/busybox" + ] + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 40b17e5fe193..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_deletes_a_given_tag.js +++ /dev/null @@ -1,329 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "4194055396c3bb2fcf5a29d50b7be017"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .delete('/acr/v1/library%2Fhello-world/_tags/test-delete') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:59 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '215', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'd6e457ec-6780-4642-afbb-0af650e33af7', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - 'a0e82b78-c75a-468e-aebb-42c687ab8a00', - 'x-ms-ests-server', - '2.1.12197.4 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ap5wOS9ZE-NPk-b4HgF4z44; expires=Wed, 08-Dec-2021 20:10:59 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrbrMokZcxTAvPvJpmDhtSb0PrhCZvwqD_zbY1UM0ICPd0EUJXI_6LbnfonBCovXEODrnwKf4ipSoXp2twvM2wqZ_CxpzTqiNhRDtscB4Le_dF1f-lZrfDKO6sSbJA8QGozBq4LL84NHOf2QcO4d2xv6YYejfIFgoLH4kg4AFjFw4gAA; 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', - 'Mon, 08 Nov 2021 20:10:59 GMT', - 'Connection', - 'close', - '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', - '79312e1a-cf1e-4567-87e0-6132dc795800', - 'x-ms-ests-server', - '2.1.12197.4 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ar8EmcITutdMnJ3At5_8rik; expires=Wed, 08-Dec-2021 20:10:59 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-nktAwrllua-Br6YDezzkTsAGADJZG7O_nlWycYifobsrhvURgiwk8X4epwaERgD0t9mFNSpyveokvSySutp5vA3YZYIa3G9UhUlKZzBbaQu7nxpaPPVYImPhnyvIIXvns_SnaFCLFR8ze64vjT0OSWBE6FmzDw1YW9Qr6FWNjkgAA; 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', - 'Mon, 08 Nov 2021 20:10:59 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=b7d0464a-651b-4bfb-821d-3e98dab8efaf&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '2e3987b2-98f1-4ef6-9c25-5f32c6bbac00', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AprhsOncnWBNvWbBnZQ2H_dGOXJzAQAAAFN7G9kOAAAA; expires=Wed, 08-Dec-2021 20:11:00 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, 08 Nov 2021 20:10:59 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:11:00 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'fa2e0f85-d040-47b7-9a35-6cb771a2a5df', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.483333', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Adelete&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:11:00 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '0491f124-095c-490f-910d-952406aabb1d', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.466667', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .delete('/acr/v1/library%2Fhello-world/_tags/test-delete') - .query(true) - .reply(202, "", [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:11:01 GMT', - 'Content-Length', - '0', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Client-Request-Id', - '2db72572-3268-4106-9ec1-f8e2b0113cf8', - 'X-Ms-Correlation-Request-Id', - '46fe73f2-7f17-43ce-8c2d-5975b34a99fc', - 'X-Ms-Int-Docker-Content-Digest', - 'sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51', - 'X-Ms-Ratelimit-Remaining-Calls-Per-Second', - '8.000000', - 'X-Ms-Request-Id', - '45b5f620-89c9-4817-b8ab-4626467cb2a7', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_tags/test-delete') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:11:01 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'e8368ce4-58cd-47e2-aa62-fc9845ee1761', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:11:01 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'a63fd3c2-d7cb-4cf3-bef9-2309e40213a2', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.566667', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_tags/test-delete') - .query(true) - .reply(404, {"errors":[{"code":"TAG_UNKNOWN","message":"the specified tag does not exist"}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:11:01 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '81', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '1d025783-e956-4733-9371-bc97e4b38583', - '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.json b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_deletes_a_given_tag.json new file mode 100644 index 000000000000..8e50403fec11 --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_deletes_a_given_tag.json @@ -0,0 +1,263 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test-delete?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "f19b20fa-aa98-49ef-9cff-3404971c4b0d" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "215", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:19 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a53cdde0-e5ed-4395-bbe5-a037e9c73fde" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "51ebc0aa-c1a5-4b7f-a021-d3f34b6196c7" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "9d668faf-8b30-48c9-bec2-1cc3d3f307d8" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "167", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "c5f2c1a0-458c-4d5b-ac01-65157e7038ba" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Adelete\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6ddb2624-c42e-4437-8934-ed2ac279bbb4" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test-delete?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "f19b20fa-aa98-49ef-9cff-3404971c4b0d" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "0", + "Date": "Thu, 10 Feb 2022 00:27:20 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Client-Request-Id": "f19b20fa-aa98-49ef-9cff-3404971c4b0d", + "X-Ms-Correlation-Request-Id": "147b74be-9d10-4fa2-9f6a-d7e6dea88958", + "X-Ms-Int-Docker-Content-Digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "X-Ms-Request-Id": "ec70f073-6029-48cb-8717-95a1c75f0b01" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test-delete?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "3706898a-71cb-4e7f-8059-fc270eda5869" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:20 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "2ad6a039-fa7a-4928-ac33-24da2e2c1f0e" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "eaaa3c80-f57c-40c2-a771-7139419c3fb7" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8a91358a-b7a7-4119-9a22-a27f0f37f524" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test-delete?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "3706898a-71cb-4e7f-8059-fc270eda5869" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:20 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d633ed1c-4f64-46dd-82bb-b3c020490981" + }, + "ResponseBody": { + "errors": [ + { + "code": "TAG_UNKNOWN", + "message": "the specified tag does not exist" + } + ] + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 876d11b4b01c..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_manifest_properties.js +++ /dev/null @@ -1,415 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "57bd3838b9b7d7171f2359a08cdd722e"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:42 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '85c39aa7-44ba-4421-922a-566cf460f20e', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - '06f52aeb-9095-46d3-b312-86c761652701', - 'x-ms-ests-server', - '2.1.12197.4 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AvqrOs7Ku25Np4vHrfornG0; expires=Wed, 08-Dec-2021 20:10:42 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrRh-fBQ6DutbyuY33-jsXOwTVOKG9T6CKh0bEnKqogQRStIljCmtFZ41BdCcspA07nHKm7u1f6TLHVdZXFBAKxcPNQCo9agOqQe8qy6dytv1Pt_eIiaZ2pfryFzVFV_FfHw8H5ljasoYcKCRnp_diELRLNHqGcx0_INbCjRN9aXcgAA; 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', - 'Mon, 08 Nov 2021 20:10:42 GMT', - 'Connection', - 'close', - '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', - 'fced77c5-56dd-490a-8fb5-c4106805aa00', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=AqLKu90mSwhIsHLlNW1377U; expires=Wed, 08-Dec-2021 20:10:42 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrxcJ21BXTiMooK6XFgsHsOwfyDFTEuvx_jQf_f4I_gj8b_G8aybEpyywY9Hqx4L_JxfB0-PPwAPyvjVCxA18KuexyRnksJYBybiDFhwnbyHPY_gMsz84_AW-dR3GivgLDsvVCUF0VvWi3aY9l-yXH_ZDmeGpdAIn2H24EDJAaafkgAA; 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', - 'Mon, 08 Nov 2021 20:10:42 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=114f4673-0ee2-4f2f-bcd2-87dd6c9874c5&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '0d91988f-39df-4efb-a121-62bee96a9f00', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Am0Xj-kEMgBMusvmoPHTQPhGOXJzAQAAAEJ7G9kOAAAA; expires=Wed, 08-Dec-2021 20:10: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', - 'Mon, 08 Nov 2021 20:10:42 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:43 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'e02c57fc-5bc0-43b4-adc0-1951c59379d2', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:43 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '8e94b4af-24ea-419c-94c2-1c30e75043c0', - '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/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409') - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409","imageSize":4727,"createdTime":"2021-10-06T21:01:30.4148083Z","lastUpdateTime":"2021-10-06T21:01:30.4148083Z","architecture":"386","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:44 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '481', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'f6c0df1b-9adf-4743-89b0-e10135433d36', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .patch('/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409', {"deleteEnabled":false,"writeEnabled":false,"listEnabled":false,"readEnabled":false}) - .query(true) - .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_write"}]}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:44 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '223', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'b8d6c5dc-10b5-456e-af58-ce98847803c3', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:44 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'e5b24949-e137-47fc-9e67-a4f6e96e2713', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .patch('/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409', {"deleteEnabled":false,"writeEnabled":false,"listEnabled":false,"readEnabled":false}) - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409","imageSize":4727,"createdTime":"2021-10-06T21:01:30.4148083Z","lastUpdateTime":"2021-10-06T21:01:30.4148083Z","architecture":"386","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":false,"writeEnabled":false,"readEnabled":false,"listEnabled":false}}}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:45 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '485', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'f8894ae1-6521-433d-b40c-b87b634a4c46', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .patch('/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409', {"deleteEnabled":true,"writeEnabled":true,"listEnabled":true,"readEnabled":true}) - .query(true) - .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_write"}]}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:45 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '223', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '6b907ee6-efda-481f-9820-7570499a9c13', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:45 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'bc566304-b952-4d39-97c5-3da2f329ce03', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.6', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .patch('/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409', {"deleteEnabled":true,"writeEnabled":true,"listEnabled":true,"readEnabled":true}) - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409","imageSize":4727,"createdTime":"2021-10-06T21:01:30.4148083Z","lastUpdateTime":"2021-10-06T21:01:30.4148083Z","architecture":"386","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:46 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '481', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'f0c1fcd1-40fb-4334-97d9-963cce110b5b', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_manifest_properties.json b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_manifest_properties.json new file mode 100644 index 000000000000..6ccf7fe9fdb1 --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_manifest_properties.json @@ -0,0 +1,447 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "d078eec8-a668-454a-9f38-4925134e9c79" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:12 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "6558e585-741f-474f-8fcc-2f2fa05c2ced" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "20a85836-dac2-4e9d-850e-dafadd4cb442" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:12 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0ebeea7d-fab4-468c-a934-d3b08695b909" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "d15074e2-5675-45ff-9168-42e5175a4564" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:12 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "17b56847-0b30-4d98-84d2-cb530f36cb3f" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "d078eec8-a668-454a-9f38-4925134e9c79" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "482", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:12 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "32ab7b62-036e-447e-a714-37117f4c0a2c" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "manifest": { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "imageSize": 4727, + "createdTime": "2022-02-09T02:57:25.5140986Z", + "lastUpdateTime": "2022-02-09T02:57:25.5140986Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "be3fecda-5d4f-4425-a8f9-7e797e5c0f9c" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": false, + "listEnabled": false, + "readEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:12 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "daa587ab-bf80-4ca5-9cb8-2a6f977158b2" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "175", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "b9417448-8e8f-4d79-86c8-9b0868b4a89f" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:12 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0d39a3e0-fa08-477e-a64c-98c166fa3f87" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "be3fecda-5d4f-4425-a8f9-7e797e5c0f9c" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": false, + "listEnabled": false, + "readEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "486", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:13 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b3614e05-138a-401f-b0f2-17654cf8dcf5" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "manifest": { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "imageSize": 4727, + "createdTime": "2022-02-09T02:57:25.5140986Z", + "lastUpdateTime": "2022-02-09T02:57:25.5140986Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + } + } + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "80", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "317eafe6-f48f-47eb-a77a-931c05e44210" + }, + "RequestBody": { + "deleteEnabled": true, + "writeEnabled": true, + "listEnabled": true, + "readEnabled": true + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:13 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "3a343ad2-c7a9-4b2c-a41e-4fc8eefd2e3a" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "175", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "fd3aff61-8ea1-4b47-9bf3-a5a6b869a9a4" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:13 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b621739e-8f83-401d-8472-1e1192c0393b" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "80", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "317eafe6-f48f-47eb-a77a-931c05e44210" + }, + "RequestBody": { + "deleteEnabled": true, + "writeEnabled": true, + "listEnabled": true, + "readEnabled": true + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "482", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:13 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b83530a0-7960-4a20-9ca3-d26a8a1cce02" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "manifest": { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "imageSize": 4727, + "createdTime": "2022-02-09T02:57:25.5140986Z", + "lastUpdateTime": "2022-02-09T02:57:25.5140986Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 363f5de54109..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_repository_properties.js +++ /dev/null @@ -1,415 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "21c7e4f268d4ad63570a4e338b7b8501"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:46 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '66f94f95-12f9-42aa-9c81-4f39e3fea486', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - '74f1a6fa-36c3-43e1-b57f-1e95abc6d200', - 'x-ms-ests-server', - '2.1.12197.4 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=AkAsD0IrJ2hJvzFvavpwwyQ; expires=Wed, 08-Dec-2021 20:10:46 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrr1Po_ig54MWob0EBxIh5vCYczf_t-LkY3BTOiYqy8zrTlyPm8vd_DdhxBGlX3or4q_EEFsvGlt2BFXa9nVoO7ynIFjIc4wUk8CK8lR5l4W_yYIr993bKCZv-WgMgf41q9trRzddH0EaoEap6LeWf07RKCAEEPd2zhWyAZSf6Z7EgAA; 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', - 'Mon, 08 Nov 2021 20:10:45 GMT', - 'Connection', - 'close', - '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', - '8c4d2c55-cac1-4757-aa9d-1586cd253900', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=ArFUbxSulXRLiPu-hiGj0Rg; expires=Wed, 08-Dec-2021 20:10:46 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrWNu9pfbfKzOGafYRgPXnBfIDZPGxgPZak853jTWa0NXJGIbfxhye7i6KU3y5NYMWJxL7fOAgJ4vOFdlnz9iWVdOnLMreHArkzmUtNolrOa5kQ5cQCD0RjkivGVslbcf4hvniKCKWAq0p76TsKiqhR3FY7ZXpYJdWPb4mo_apim8gAA; 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', - 'Mon, 08 Nov 2021 20:10:46 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=00749490-16ba-41aa-be8c-a5b202fd4d09&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'ade56010-2ac0-4cc1-a0be-cdedc22ba100', - 'x-ms-ests-server', - '2.1.12197.4 - NCUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AjwCKNjKoDRLvdjVKMK4qGNGOXJzAQAAAEZ7G9kOAAAA; expires=Wed, 08-Dec-2021 20:10: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', - 'Mon, 08 Nov 2021 20:10:46 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:47 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '4d2e0dde-1f31-4a46-9eec-9d350ae5bf0b', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.583333', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:47 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '8e4a0e93-7b7d-4941-948f-6cc12dc649db', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.55', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world') - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","createdTime":"2021-06-01T17:44:40.7113043Z","lastUpdateTime":"2021-11-08T19:55:51.7570741Z","manifestCount":47,"tagCount":3,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:48 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '299', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '3950e3c0-f66d-4522-beed-28f40dff71ac', - '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}) - .query(true) - .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_write"}]}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:48 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '223', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '2867cccd-1713-4617-b306-4204d824c698', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:48 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '6f03799d-a6ec-4410-9ae9-d280f4d74481', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.516667', - '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}) - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","createdTime":"2021-06-01T17:44:40.7113043Z","lastUpdateTime":"2021-11-08T19:55:51.7570741Z","manifestCount":47,"tagCount":3,"changeableAttributes":{"deleteEnabled":false,"writeEnabled":false,"readEnabled":false,"listEnabled":false}}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:49 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '303', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '9df92692-af0b-4c09-a287-0464bccf8860', - '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}) - .query(true) - .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_write"}]}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:49 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '223', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '1ee5034f-f3b2-451f-8d06-3a6a1ac3fb88', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:49 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'd6757331-6414-4ead-878c-a604c75312e9', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.533333', - '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}) - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","createdTime":"2021-06-01T17:44:40.7113043Z","lastUpdateTime":"2021-11-08T19:55:51.7570741Z","manifestCount":47,"tagCount":3,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:49 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '299', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '5adb89d0-bc04-45cd-b2d2-4619331789cb', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_repository_properties.json b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_repository_properties.json new file mode 100644 index 000000000000..925ae9ca9574 --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_repository_properties.json @@ -0,0 +1,432 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "d4839102-03de-42b6-814f-2d53da6d820e" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:13 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "0b849598-538d-47c7-b057-6611334a3e31" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "c6bd7da0-1a09-4559-b871-6fa695c7dd64" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:14 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "301ee1b6-fdc1-47f8-934a-37dd8fd5284d" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "d32e56a4-d6c9-448c-9074-044a16395be9" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:14 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "fb3a3d89-e930-4283-a388-ccc74ff35484" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "d4839102-03de-42b6-814f-2d53da6d820e" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "301", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:14 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "30de746c-6bcb-49eb-ae4c-647d10ef7084" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "createdTime": "2022-02-09T02:57:24.3574334Z", + "lastUpdateTime": "2022-02-10T00:20:26.4728958Z", + "manifestCount": 15, + "tagCount": 7, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "755797b6-4bea-4e23-a389-5df8d76b5cc7" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": false, + "listEnabled": false, + "readEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:14 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "31a92789-d6f5-43c6-9073-9733d58a0e62" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "175", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "837ed026-e1eb-4fb8-87b0-e50c9af88b35" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:14 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "610c4364-7c18-4aaf-a45d-1e8fa525b2bc" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "755797b6-4bea-4e23-a389-5df8d76b5cc7" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": false, + "listEnabled": false, + "readEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "304", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:14 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "cc3aab5b-9694-4cf2-bdbd-cc5aa2b263ea" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "createdTime": "2022-02-09T02:57:24.3574334Z", + "lastUpdateTime": "2022-02-10T00:20:26.4728958Z", + "manifestCount": 15, + "tagCount": 7, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + } + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "d413cc14-ce21-46b7-bc4b-a9cdf057d0bb" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": true, + "listEnabled": true, + "readEnabled": true + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:15 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "adfb3114-cb34-4282-9821-40b60fcdbec7" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "175", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "fcf85a42-5732-4e77-a4fd-76b0a9ec21c0" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:15 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "36bd00b1-0c7f-4808-aca6-9a943e318d54" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "d413cc14-ce21-46b7-bc4b-a9cdf057d0bb" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": true, + "listEnabled": true, + "readEnabled": true + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "301", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:15 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c4deeb48-9625-4365-9fd2-5532bb3a11f9" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "createdTime": "2022-02-09T02:57:24.3574334Z", + "lastUpdateTime": "2022-02-10T00:20:26.4728958Z", + "manifestCount": 15, + "tagCount": 7, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 0a6c00150f48..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_tag_properties.js +++ /dev/null @@ -1,415 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "00e508fe5945559c468ea8407be1b3c7"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_tags/test1') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:56 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'd95835d1-439d-4099-ab6a-09ceed38013e', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - 'c344d7e7-e444-4651-9c3d-8af3b3bf7401', - 'x-ms-ests-server', - '2.1.12171.15 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=AgpxprjvDuNEkuMxay3Nx2E; expires=Wed, 08-Dec-2021 20:10:56 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr6rzYdiYQoCXp5G8bLbDH2mENa0LCqM8nGAbDPFFDOXQNrFXY-Bv6i0bYzN8s_9ZHQN6HTZH2kbKja3cCXZKGtADzZcGcHEYO_Kx1g2ZYf0VpbLm31cDbNOvmfifACA_ojKolzIrLdiA5nI8l_TRQmPzs1Emj2Rk28sPW8fn3EvAgAA; 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', - 'Mon, 08 Nov 2021 20:10:56 GMT', - 'Connection', - 'close', - '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', - '0b79b9df-d554-4ec5-a73a-819d3c81a700', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=AtXt2KLvTzRHiTp7kxC_zEg; expires=Wed, 08-Dec-2021 20:10:56 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1GNsrFuUuxNnrzB-kk47dBmATlMbg31ma0dwAkxS_9LgFhpec0vhVmm79x2_hKCIxPtGw90GNhYhm5qV7K66nIre0Yj4vtwMIm37C325U1LatoYrH9SQS7P9hUvBH5pVMKdr4YgANqdxgvfoUeqg_qwzBms4dq7ChDR9DqW5imAgAA; 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', - 'Mon, 08 Nov 2021 20:10:56 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=8b6b100e-94de-47e9-9a5a-cc2b13c1d75c&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'e3189d1d-d6c9-4bab-810c-22025672f000', - 'x-ms-ests-server', - '2.1.12197.4 - SCUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AjH07XugBQtKuJVyCPFWCF1GOXJzAQAAAE97G9kOAAAA; expires=Wed, 08-Dec-2021 20:10:56 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, 08 Nov 2021 20:10:55 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:56 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '395d5288-0082-4b40-9dde-f618ac203873', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.433333', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:57 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '173efc2d-f0cc-4570-aa08-68044657068a', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.533333', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_tags/test1') - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tag":{"name":"test1","digest":"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51","createdTime":"2021-06-11T19:11:38.7001063Z","lastUpdateTime":"2021-11-08T19:55:53.3335808Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:57 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '388', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'f5f96551-d574-4c85-ad20-8589d869cc0c', - '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}) - .query(true) - .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_write"}]}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:57 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '223', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'e687bf40-568a-4728-b6a7-d3421c7c9d1c', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:57 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '29cfddba-d522-4f72-9415-131fd7c14d5c', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.483333', - '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}) - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tag":{"name":"test1","digest":"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51","createdTime":"2021-06-11T19:11:38.7001063Z","lastUpdateTime":"2021-11-08T19:55:53.3335808Z","signed":false,"changeableAttributes":{"deleteEnabled":false,"writeEnabled":false,"readEnabled":false,"listEnabled":false}}}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:58 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '392', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '3d3b47cb-7064-417d-bdc8-155571175e66', - '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}) - .query(true) - .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_write"}]}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:58 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '223', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '54b6a2ad-241c-4e2b-8b42-3b1df35533bf', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:58 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '08780c71-2a1b-42cc-b501-3ad8c2971c8e', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', - '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}) - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tag":{"name":"test1","digest":"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51","createdTime":"2021-06-11T19:11:38.7001063Z","lastUpdateTime":"2021-11-08T19:55:53.3335808Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:59 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '388', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'b496fac8-f1db-4de2-bed0-ad0b2996740a', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_tag_properties.json b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_tag_properties.json new file mode 100644 index 000000000000..cae68491d19d --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_sets_tag_properties.json @@ -0,0 +1,441 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "4ca04b31-a106-4ddc-a4f4-a8e9b1f43990" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:18 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a1e517b9-da8b-4fa2-978c-a94b8f91f70e" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "5d96ed98-6261-4e06-9ae5-f8619e1ae5ef" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "61115660-306a-439f-8f7a-089addc01d9e" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "d7ab1d73-92ff-4e18-bb5b-ebf778c7aba2" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "fcd65c3f-7bed-4a4e-b0c0-04485163c33c" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "4ca04b31-a106-4ddc-a4f4-a8e9b1f43990" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "389", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:18 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "14aeae60-70ab-411d-bb50-e19bbafbb87d" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "test1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:33.7415749Z", + "lastUpdateTime": "2022-02-09T18:47:33.7415749Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "02b94852-e364-4dd5-8904-5bd333ec5924" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": false, + "listEnabled": false, + "readEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:18 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "05c5e8fe-41f9-4d21-a676-405a558063f8" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "175", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "a01005e5-ee33-4fc0-b708-b4ca3f7d4ec1" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0158a83a-3e77-481a-b4f4-4ee6fe2ed60e" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "02b94852-e364-4dd5-8904-5bd333ec5924" + }, + "RequestBody": { + "deleteEnabled": false, + "writeEnabled": false, + "listEnabled": false, + "readEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "close", + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:19 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b9d75d6e-8430-4521-ac71-86e6bceec8eb" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "test1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:33.7415749Z", + "lastUpdateTime": "2022-02-09T18:47:33.7415749Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + } + } + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "80", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "2ed844cc-c13d-4f5e-8ba9-d81665d4ad8d" + }, + "RequestBody": { + "deleteEnabled": true, + "writeEnabled": true, + "listEnabled": true, + "readEnabled": true + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "223", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:19 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a32a5485-fe45-4323-8815-04be559340af" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/hello-world", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "175", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "6cd0a3e3-f986-49e8-acab-9f333d4a349a" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:19 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "22cb48c0-f1f0-47e8-aa10-916f9764e628" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "80", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "2ed844cc-c13d-4f5e-8ba9-d81665d4ad8d" + }, + "RequestBody": { + "deleteEnabled": true, + "writeEnabled": true, + "listEnabled": true, + "readEnabled": true + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "389", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:19 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "947cd591-7ab6-413b-8256-dc61858311f3" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "test1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:33.7415749Z", + "lastUpdateTime": "2022-02-09T18:47:33.7415749Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 03ffec227f51..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests.js +++ /dev/null @@ -1,231 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "e338ef2c90128ccf3817ba097b769b85"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_manifests') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:27 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '77a95250-5ded-4ed2-b3d6-ccc5d98b2e47', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - 'fb476396-d72d-47b1-8ef9-f4247ab87d01', - 'x-ms-ests-server', - '2.1.12171.15 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=Ai54Amorss1Il6pc1AQC73g; expires=Wed, 08-Dec-2021 20:10:28 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrC7Pzj0-8q_IDzf09UjSf7XuodxpB4vQOPpU8-5liy8JsTQyjqZZ8GCiet3um5CD5R2rssTnNnwjYH8gcqJ3T8Umz07wtIL4nM8QAgsXQ-WZ_REqNsypDo4RcbHLgqlJzjKVpMv84pJg5l65_0gSDTg8u9tEL1ZCnC5Ml7yON_wogAA; 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', - 'Mon, 08 Nov 2021 20:10:27 GMT', - 'Connection', - 'close', - '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', - '7bc9d923-6cb0-43a7-afd2-d52ff977d600', - 'x-ms-ests-server', - '2.1.12197.4 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AitgweoL4fxCuGvJFegWqQU; expires=Wed, 08-Dec-2021 20:10:28 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr8Bikx3zcuoG3AbzGHXGuwC5bls-DavAZrIxIvE9Niao_7Pill6SfWKg-EBLWR0wryVBoVtQGGQtiVn7KQLQo3DQYVFUhJJeLE2DN01KAcQo8UrBm5RcPoDR43kV-zKSvVdelFm0VXuyM8eL_BJhmbay7OPtgjBjd1arD9RMz7McgAA; 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', - 'Mon, 08 Nov 2021 20:10:27 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=90c050e2-3d64-4dd2-b023-541796850e0d&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '8dd0a396-b0a2-4764-b633-16b3b07dd000', - 'x-ms-ests-server', - '2.1.12197.4 - EUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AvGuiEulmtlJqEvsgl3p2GRGOXJzAQAAADN7G9kOAAAA; expires=Wed, 08-Dec-2021 20:10:28 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 08 Nov 2021 20:10:28 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:28 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '2f54e5c4-5b70-4ad0-b0a9-fb15aa72e2d1', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:29 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'f258b2a1-d985-4905-a557-e7aecdbdd48f', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -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:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184","imageSize":5216,"createdTime":"2021-10-06T21:01:30.4926548Z","lastUpdateTime":"2021-10-06T21:01:30.4926548Z","architecture":"arm64","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"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}},{"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}},{"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}},{"digest":"sha256:0fe98d7debd9049c50b597ef1f85b7c1e8cc81f59c8d623fcb2250e8bec85b38","imageSize":5850,"createdTime":"2021-08-17T16:55:59.3686577Z","lastUpdateTime":"2021-08-17T16:55:59.3686577Z","mediaType":"application/vnd.docker.distribution.manifest.list.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"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}},{"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}},{"digest":"sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409","imageSize":4727,"createdTime":"2021-10-06T21:01:30.4148083Z","lastUpdateTime":"2021-10-06T21:01:30.4148083Z","architecture":"386","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:31801872aacfc6245ba5277e07dc2c9a482a473c87d625f25c3e6d5de930b35d","imageSize":5871,"createdTime":"2021-11-08T19:55:54.7994646Z","lastUpdateTime":"2021-11-08T19:55:54.7994646Z","architecture":"amd64","os":"windows","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51","imageSize":61625,"createdTime":"2021-11-08T19:55:53.1835258Z","lastUpdateTime":"2021-11-08T19:55:53.1835258Z","mediaType":"application/vnd.docker.distribution.manifest.list.v2+json","tags":["test-delete","test1"],"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:3e7d74d1c66c8f7dd5384f49bf0f8ab3e18e81e8d2a79218ed777c534b446552","imageSize":525,"createdTime":"2021-07-12T19:20:00.913255Z","lastUpdateTime":"2021-07-12T19:20:00.913255Z","architecture":"ppc64le","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:4fb0dd2040e4a909567fb8fd36338a00e727926da9e8f93fa1fe58cbc3b9af9c","imageSize":5830,"createdTime":"2021-09-20T18:50:55.4008325Z","lastUpdateTime":"2021-09-20T18:50:55.4008325Z","architecture":"amd64","os":"windows","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"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}},{"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}},{"digest":"sha256:563c31a6b24347d3f367df5dc33890ab1aec20e9470e5d998f3b6a8fc6eb5763","imageSize":5806,"createdTime":"2021-11-08T19:55:54.8679861Z","lastUpdateTime":"2021-11-08T19:55:54.8679861Z","architecture":"amd64","os":"windows","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:58d91e6625a0ea837222f24da4ca00be9da3db45cee5b172135eaf271610f9eb","imageSize":525,"createdTime":"2021-07-12T19:20:00.3959063Z","lastUpdateTime":"2021-07-12T19:20:00.3959063Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:61bd3cb6014296e214ff4c6407a5a7e7092dfa8eefdbbec539e133e97f63e09f","imageSize":61958,"createdTime":"2021-09-20T18:50:53.9769732Z","lastUpdateTime":"2021-09-20T18:50:53.9769732Z","mediaType":"application/vnd.docker.distribution.manifest.list.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:6d9fcdca25452c9a255f02c7d67eb28e8afbba2671f1e8f60b3b3585b7bdf172","imageSize":525,"createdTime":"2021-07-12T19:20:00.5061197Z","lastUpdateTime":"2021-07-12T19:20:00.5061197Z","architecture":"s390x","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c","imageSize":5691,"createdTime":"2021-10-06T21:01:31.7709273Z","lastUpdateTime":"2021-10-06T21:01:31.7709273Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"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}},{"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}},{"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}},{"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}},{"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:94b700b6ae5759e539e06fa6d483f5f0174067945f180cc1362cfda71c5fd722","imageSize":525,"createdTime":"2021-07-12T19:20:00.9631551Z","lastUpdateTime":"2021-07-12T19:20:00.9631551Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.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}},{"digest":"sha256:98c9722322be649df94780d3fbe594fce7996234b259f27eac9428b84050c849","imageSize":4996,"createdTime":"2021-10-06T21:01:30.2509309Z","lastUpdateTime":"2021-10-06T21:01:30.2509309Z","architecture":"riscv64","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:9ade9cc2e26189a19c2e8854b9c8f1e14829b51c55a630ee675a5a9540ef6ccf","imageSize":61611,"createdTime":"2021-10-06T21:01:29.283756Z","lastUpdateTime":"2021-10-06T21:01:29.283756Z","mediaType":"application/vnd.docker.distribution.manifest.list.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"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}},{"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","changeableAttributes":{"deleteEnabled":false,"writeEnabled":false,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:a10c347f4cc2924af832d319635d6d027ca8820ff683b6bcc728d825a37a7f69","imageSize":525,"createdTime":"2021-07-12T19:20:00.5421832Z","lastUpdateTime":"2021-07-12T19:20:00.5421832Z","architecture":"arm64","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:b836bb24a270b9cc935962d8228517fde0f16990e88893d935efcb1b14c0017a","imageSize":5925,"createdTime":"2021-10-06T21:01:31.2908944Z","lastUpdateTime":"2021-10-06T21:01:31.2908944Z","architecture":"ppc64le","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:b89e28f1d57f44064e96c4525e514f6f0498a433b83413538f79f82566d72114","imageSize":525,"createdTime":"2021-07-12T19:20:00.7917219Z","lastUpdateTime":"2021-07-12T19:20:00.7917219Z","architecture":"riscv64","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","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}},{"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}},{"digest":"sha256:c2f204d26b4ea353651385001bb6bc371d8c4edcd9daf61d00ad365d927e00c0","imageSize":6088,"createdTime":"2021-10-06T21:01:29.9953911Z","lastUpdateTime":"2021-10-06T21:01:29.9953911Z","architecture":"mips64le","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:c7b6944911848ce39b44ed660d95fb54d69bbd531de724c7ce6fc9f743c0b861","imageSize":5270,"createdTime":"2021-10-06T21:01:29.8786957Z","lastUpdateTime":"2021-10-06T21:01:29.8786957Z","architecture":"s390x","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"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}},{"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}},{"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}},{"digest":"sha256:dd295b166e7a35d810b7d286c62fee3c575fdde553182271fc0e5fb01ac81b15","imageSize":5833,"createdTime":"2021-09-20T18:50:54.9019432Z","lastUpdateTime":"2021-09-20T18:50:54.9019432Z","architecture":"amd64","os":"windows","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:df5f5184104426b65967e016ff2ac0bfcd44ad7899ca3bbcf8e44e4461491a9e","imageSize":5850,"createdTime":"2021-07-12T19:19:59.5452001Z","lastUpdateTime":"2021-07-12T19:19:59.5452001Z","mediaType":"application/vnd.docker.distribution.manifest.list.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"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}},{"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}},{"digest":"sha256:e70692d3144e0ddb23e2ecf72d4b78f1e9ffcb32a9c863b98a35d43adfb42ad8","imageSize":1125,"createdTime":"2021-08-17T16:56:00.1861796Z","lastUpdateTime":"2021-08-17T16:56:00.1861796Z","architecture":"amd64","os":"windows","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c","imageSize":5000,"createdTime":"2021-10-06T21:01:30.3566409Z","lastUpdateTime":"2021-10-06T21:01:30.3566409Z","architecture":"arm","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"digest":"sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4","imageSize":4473,"createdTime":"2021-10-06T21:01:30.0499098Z","lastUpdateTime":"2021-10-06T21:01:30.0499098Z","architecture":"amd64","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:32 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '2d7cd1af-234c-4bd6-9a1f-37d0351afcde', - '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.json b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests.json new file mode 100644 index 000000000000..d645e0c10d9c --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests.json @@ -0,0 +1,378 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "ecf773fe-9986-45d8-bbb6-32733119da86" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:05 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a898c33d-1b18-45fc-a66f-cd229566ef03" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "a6eaad25-d78a-47bc-ad4b-b0382f692501" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "13b7b18f-4e2e-4fe1-9993-9b0f29bd1c22" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "ffe22451-1899-4042-81e3-0c9514b69884" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7b8a51b0-b59c-4ad5-ac55-443f2f4fdda5" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "ecf773fe-9986-45d8-bbb6-32733119da86" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "24c74ef4-87ad-4a6f-9b0d-39ac25424a1c" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "manifests": [ + { + "digest": "sha256:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184", + "imageSize": 5216, + "createdTime": "2022-02-09T02:57:25.4662706Z", + "lastUpdateTime": "2022-02-09T02:57:25.4662706Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "imageSize": 4727, + "createdTime": "2022-02-09T02:57:25.5140986Z", + "lastUpdateTime": "2022-02-09T02:57:25.5140986Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:507ecde44b8eb741278274653120c2bf793b174c06ff4eaa672b713b3263477b", + "imageSize": 61663, + "createdTime": "2022-02-09T02:57:26.2436833Z", + "lastUpdateTime": "2022-02-09T02:57:26.2436833Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c", + "imageSize": 5691, + "createdTime": "2022-02-09T02:57:24.4434927Z", + "lastUpdateTime": "2022-02-09T02:57:24.4434927Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:7e9c5b2a36bdd391c713b800eb7ac7047207f04faf92ec4aff8667c85540b41b", + "imageSize": 5844, + "createdTime": "2022-02-09T02:57:26.0157335Z", + "lastUpdateTime": "2022-02-09T02:57:26.0157335Z", + "architecture": "amd64", + "os": "windows", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "imageSize": 61614, + "createdTime": "2022-02-09T18:47:33.6395637Z", + "lastUpdateTime": "2022-02-09T18:47:33.6395637Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest", + "test-delete", + "test1", + "v1", + "v2", + "v3", + "v4" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:98c9722322be649df94780d3fbe594fce7996234b259f27eac9428b84050c849", + "imageSize": 4996, + "createdTime": "2022-02-09T02:57:26.4172386Z", + "lastUpdateTime": "2022-02-09T02:57:26.4172386Z", + "architecture": "riscv64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:b17da88a43678dd8de2c335b977330a5f4e3f1175251a4204f54ef2ed1360709", + "imageSize": 5871, + "createdTime": "2022-02-09T02:57:27.8519362Z", + "lastUpdateTime": "2022-02-09T02:57:27.8519362Z", + "architecture": "amd64", + "os": "windows", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:b3dd41b5fbccbf0e39bee932466d389214cddcb53fa4ad5d02f29ee4172db8c7", + "imageSize": 5826, + "createdTime": "2022-02-09T18:43:53.3912761Z", + "lastUpdateTime": "2022-02-09T18:43:53.3912761Z", + "architecture": "amd64", + "os": "windows", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:b836bb24a270b9cc935962d8228517fde0f16990e88893d935efcb1b14c0017a", + "imageSize": 5925, + "createdTime": "2022-02-09T02:57:27.0529379Z", + "lastUpdateTime": "2022-02-09T02:57:27.0529379Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:c2f204d26b4ea353651385001bb6bc371d8c4edcd9daf61d00ad365d927e00c0", + "imageSize": 6088, + "createdTime": "2022-02-09T02:57:25.5704516Z", + "lastUpdateTime": "2022-02-09T02:57:25.5704516Z", + "architecture": "mips64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:c7b6944911848ce39b44ed660d95fb54d69bbd531de724c7ce6fc9f743c0b861", + "imageSize": 5270, + "createdTime": "2022-02-09T02:57:26.1376238Z", + "lastUpdateTime": "2022-02-09T02:57:26.1376238Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c", + "imageSize": 5000, + "createdTime": "2022-02-09T02:57:24.5515527Z", + "lastUpdateTime": "2022-02-09T02:57:24.5515527Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4", + "imageSize": 4473, + "createdTime": "2022-02-09T02:57:26.0724745Z", + "lastUpdateTime": "2022-02-09T02:57:26.0724745Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:fdea2bf76c9a47fc0b81958cb87aa65448012ef36ce051a72a09db398efdf7cc", + "imageSize": 5840, + "createdTime": "2022-02-09T18:43:53.2638308Z", + "lastUpdateTime": "2022-02-09T18:43:53.2638308Z", + "architecture": "amd64", + "os": "windows", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 52d445794e75..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.js +++ /dev/null @@ -1,327 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "594fd9da2be1e3e730cda449fc56aa92"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_manifests') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:32 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '74e28220-c5eb-4510-adc0-80c0bd3d901c', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - '297a9afb-1c96-4da1-a1ef-64b3afd99301', - 'x-ms-ests-server', - '2.1.12171.15 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=Ap8tq2C8TQ5Pq2mSapvXHe0; expires=Wed, 08-Dec-2021 20:10:32 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrwtN_JjezcC_3HkHFcUZOZCy4zaTO3FNn1duD-sEwRDL62jgIjJZNKorq3a-zpRsQP0UDamEQh7z7n6y3J04__v0Qp7LwOD7hLQMuEFTIfV8RJP6n-lClHgMqda6lOqGh8iWlp22XHW9ylrbPjHp3dzYPUsoTsPgZXfwglwuHi_QgAA; 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', - 'Mon, 08 Nov 2021 20:10:32 GMT', - 'Connection', - 'close', - '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', - '47ad6188-8242-4c64-b1a0-ff941992be00', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=AtUZrM_2XjpDugvSqMKEzV0; expires=Wed, 08-Dec-2021 20:10:32 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrToOP6Eh4WpCCdIC0n7sTLCKxOuudArvLkVFB_-w-Am_o-m7g-4qo9kPYZmZop478sjZ-PnZA624W1Wro7YHySV5joMjNzeH8vzt6LCooPb58iZ6ntC3vdWPOl4AR23AlzjpNfSsgDPqlwwEoy_2_mPczH_RJiVUubBvYwF_40TcgAA; 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', - 'Mon, 08 Nov 2021 20:10:32 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=4d1b822c-cbda-4e2f-a7aa-e18ce17b6d2f&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '53786ab8-8aad-46cb-a0a8-938743a49200', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=At8WvrfnrelOuDjGxvtr7zlGOXJzAQAAADl7G9kOAAAA; expires=Wed, 08-Dec-2021 20:10:33 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, 08 Nov 2021 20:10:32 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:33 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '5231c7a9-7e6d-417b-9081-bcf607e6ce52', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:33 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'd91b56d3-d57e-4bc2-9e77-4aee35bb9f54', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -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:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184","imageSize":5216,"createdTime":"2021-10-06T21:01:30.4926548Z","lastUpdateTime":"2021-10-06T21:01:30.4926548Z","architecture":"arm64","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:34 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '486', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - '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', - '92416655-a22f-4513-ba24-24b893a8c2db', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_manifests') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:34 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '578222e5-c621-4406-bbdb-dfbe50633fb5', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:34 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '9951bd9f-d47e-47bb-9773-83b53e04bf90', - '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/library%2Fhello-world/_manifests') - .query(true) - .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}}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:34 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '487', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - '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', - '0c9b9be9-cdff-4990-88c5-edf8e359faff', - '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.json b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.json new file mode 100644 index 000000000000..a3370c1f9f12 --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages.json @@ -0,0 +1,296 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?n=1\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "62c9f3eb-c0ee-44f3-93a4-b5a06fd3de0f" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ccbaafdf-b8f3-4638-9692-8bce6e062e4e" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "11f4078d-9fb4-406a-809d-b574db78771a" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "10f0e040-be3d-400c-befa-5c603857d36d" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "de3f68ce-347b-4f49-91b7-39cb22923c9e" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d59eb253-b73c-4783-9da1-9fe9c50cb7e4" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?n=1\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "62c9f3eb-c0ee-44f3-93a4-b5a06fd3de0f" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "487", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f61f46a7-03c8-4e57-b421-90fa1a96d9a5" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "manifests": [ + { + "digest": "sha256:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184", + "imageSize": 5216, + "createdTime": "2022-02-09T02:57:25.4662706Z", + "lastUpdateTime": "2022-02-09T02:57:25.4662706Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "d3641d5e-c52a-42d7-8bc6-ef829a5e52d9" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b826affe-8a88-4b76-b9c8-b79cdde31d44" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "9c1b5111-a4f4-46ae-b34e-dd7209a2f939" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:08 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "93c853e1-8038-4beb-852e-cd08e6aff682" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "d3641d5e-c52a-42d7-8bc6-ef829a5e52d9" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "485", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:08 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "541da869-dcca-44fb-a173-a64d7e548827" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "manifests": [ + { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "imageSize": 4727, + "createdTime": "2022-02-09T02:57:25.5140986Z", + "lastUpdateTime": "2022-02-09T02:57:25.5140986Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 787b4d3d83a2..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.js +++ /dev/null @@ -1,233 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "aa3e36b66a2eddbe38a0348b0f7322d7"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_manifests') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:35 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'bb298741-d6fa-4183-9c74-35221fe0a81d', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - '245f51fb-fb3f-4190-94cf-0b75c58e7701', - 'x-ms-ests-server', - '2.1.12171.15 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=AnaWClILYgxDvv853NHgdYI; expires=Wed, 08-Dec-2021 20:10:35 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrrSqEepjpxkKHAq_HbtJkgexPCeUkP6wYyNJ2skuo4kyyV5EMRX0g6Z3SQVPAvzgXoQAwArNeQlmKe7Ria8-l8DPc6DKitrXEsGn-PFtCTHaQz_Zwh5WePTtlFyo3smyp-ExXXbTIswWug8GyHDkJ8j927qgtrjkXce0GQldxJAggAA; 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', - 'Mon, 08 Nov 2021 20:10:34 GMT', - 'Connection', - 'close', - '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', - 'e447afca-d733-4a0c-a38c-cb478795a600', - 'x-ms-ests-server', - '2.1.12197.4 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=Als5XqOjcClAtWx588fEzKw; expires=Wed, 08-Dec-2021 20:10:35 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCgq42--jkRRU0bqDTZHjTALwjX0Hg3zNSALbKPYLtpRQcxtn7tbgfFykQOmc9cSokuUO19WrrEt2s5936Rxd1gU7-l8vseNsn2QJ3Wh3kJW1JkPJ-vQhuekh5j4HZD5XOMm9lmkA3QAiKXr5Ht-PL1h_4vQjzE1r3uPYM3fqpcYgAA; 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', - 'Mon, 08 Nov 2021 20:10:35 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=4bfc2a9c-7635-44ba-b08c-64239154488d&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'b8e2c0d7-6db5-4ee1-8821-114a29ff9000', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AkUpMGWHEKRDq8ME5JubdI5GOXJzAQAAADt7G9kOAAAA; expires=Wed, 08-Dec-2021 20:10: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', - 'Mon, 08 Nov 2021 20:10:35 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:36 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'e8138277-2da3-421a-8a41-b01e9d52ccb2', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:36 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'c4765a33-6403-4ced-a8c7-06b0599c26e8', - '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/library%2Fhello-world/_manifests') - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifests":[{"digest":"sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409","imageSize":4727,"createdTime":"2021-10-06T21:01:30.4148083Z","lastUpdateTime":"2021-10-06T21:01:30.4148083Z","architecture":"386","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:36 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '484', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - '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', - '74484801-8bf9-4899-8580-17f6a026c236', - '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.json b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.json new file mode 100644 index 000000000000..4910587e3751 --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_registry_manifests_by_pages_with_continuationtoken.json @@ -0,0 +1,164 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "4b25c094-636d-4de1-b34c-ad62f2a4f23e" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:08 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f5000d38-9767-4224-9392-567f0a979744" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "39b119e8-ea08-48e7-a175-3aa7f82ce46b" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2eeef331-2ccf-4793-b6ec-b6d3a155d147" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "b893d7fe-d4cb-4b2f-8fdf-28f071dc864f" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "89a7103a-9783-499f-a905-048d85ea3958" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "4b25c094-636d-4de1-b34c-ad62f2a4f23e" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "485", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:09 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fhello-world/_manifests?last=sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "18ddf598-7054-4cd3-9c5d-ce2bb4b2156d" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "manifests": [ + { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "imageSize": 4727, + "createdTime": "2022-02-09T02:57:25.5140986Z", + "lastUpdateTime": "2022-02-09T02:57:25.5140986Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 60d0e61bf71f..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags.js +++ /dev/null @@ -1,231 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "34a907a7faf8880a6e832d9e9f622494"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_tags') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:36 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '8daa231f-aa6a-4c40-bf64-3b55a46aa0fb', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - '482dcac7-6df9-4990-8dce-4ba13191e100', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=Amag40N1z61BnPIFVDC0S4g; expires=Wed, 08-Dec-2021 20:10:37 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrHVX0FR9_1_xTMT6lAua6hS4qiJR3lrJ0ZRmIEgYWDL9yOx1TA1DY3mGyP7vYiRH-RSJ6DKgEYAfwggN7Sr6j9j-Wm5hzpBq6Ul--_ZGDYfPc_Kklg3vWAp9tYeUb9d8HJ-ogRm5eIZbt5OikomV3I0IKC7kxTb8XK_wZjPmeyXggAA; 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', - 'Mon, 08 Nov 2021 20:10:37 GMT', - 'Connection', - 'close', - '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', - '2dbd2605-64e8-439b-bbe2-a65d394a9800', - 'x-ms-ests-server', - '2.1.12197.4 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=Aqa3ylHQsMJEpjSz94g5xtM; expires=Wed, 08-Dec-2021 20:10:37 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrNV37zXZGbukLudkMpqTW123Ak3-5BHqPAT9HPUv9Igsm-KE-qzW7MYEHk8PpwpIQse8dS1lIc5sW3e-DIDPje2lYwisCzyT4wnmz4GpkChEPCrfAuTrdNCYDD9op83kdZ5SMokVj1_YsDVBjhmQjbuv8l2CCqNb64wagK3q6hlogAA; 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', - 'Mon, 08 Nov 2021 20:10:36 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=dff0509c-8a27-4b65-93fa-5e6cf2c342b3&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '5e093f80-32e3-44f2-8741-004f1619d700', - 'x-ms-ests-server', - '2.1.12197.4 - EUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AlBS6-UgALRIsNzGf4xxUzpGOXJzAQAAADx7G9kOAAAA; expires=Wed, 08-Dec-2021 20:10:37 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 08 Nov 2021 20:10:36 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:37 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '87bb81fb-6a25-46d1-aa7b-914fc20a5b13', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:38 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '69cd2368-6c73-4bc8-82e5-9c1993639edf', - '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/library%2Fhello-world/_tags') - .query(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,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"name":"test-delete","digest":"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51","createdTime":"2021-11-08T19:55:54.538344Z","lastUpdateTime":"2021-11-08T19:55:54.538344Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}},{"name":"test1","digest":"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51","createdTime":"2021-06-11T19:11:38.7001063Z","lastUpdateTime":"2021-11-08T19:55:53.3335808Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:38 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '1020', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'c94d6a5d-997b-40bc-9a64-623fc9fd2d34', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); diff --git a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags.json b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags.json new file mode 100644 index 000000000000..05d5fa067098 --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags.json @@ -0,0 +1,239 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "0b314ae1-b3e3-4d5c-bb9a-000c51d235ae" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:09 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a44a0316-9f63-4fad-a89a-9651dfe54540" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "232df694-821f-4894-8f70-823b228cadd5" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "582492e6-49a0-414c-91e3-5c26c80b1f0b" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "cb3f8307-8ae2-4641-b99c-750bc20b11a4" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a405ab85-f84e-4918-af7a-2668cb043182" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "0b314ae1-b3e3-4d5c-bb9a-000c51d235ae" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:10 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "82541a2c-c651-4a89-a2fc-bfd836dd818f" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "tags": [ + { + "name": "latest", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:46.5263261Z", + "lastUpdateTime": "2022-02-09T18:47:46.5263261Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "test-delete", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-10T00:20:26.9021628Z", + "lastUpdateTime": "2022-02-10T00:20:26.9021628Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "test1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:33.7415749Z", + "lastUpdateTime": "2022-02-09T18:47:33.7415749Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "v1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:47.2960343Z", + "lastUpdateTime": "2022-02-09T18:47:47.2960343Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "v2", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:49.2582616Z", + "lastUpdateTime": "2022-02-09T18:47:49.2582616Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "v3", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:46.7668102Z", + "lastUpdateTime": "2022-02-09T18:47:46.7668102Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "v4", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:47.0046704Z", + "lastUpdateTime": "2022-02-09T18:47:47.0046704Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 93984995ad0d..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages.js +++ /dev/null @@ -1,327 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "55a4670064fdc9064c708ab4e3e62e54"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_tags') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:38 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'c4c4fae4-8c12-421f-a328-4bbd8e4ad3a1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - '7b71d9dc-5d98-4bc4-b8c3-08cede628101', - 'x-ms-ests-server', - '2.1.12171.15 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=AqZPk4f9d3VAu83dF7ZTVeE; expires=Wed, 08-Dec-2021 20:10:38 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrdZ7ABo7NgyL_Y8qxwVr-tpULLf6p-HXfQY8x4GJHZVZaXoH5AeVw_tD-MtweB0qbKhsLazR_FH3-HOet3SeOHU3JUWDaSvxYFd5kguWysoIJgwM9_Yie_28-nPU5_IJ3n39IXlMC9ph4PEX-w4ngx8UayO0P3sgj17i9DPvCzh8gAA; 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', - 'Mon, 08 Nov 2021 20:10:38 GMT', - 'Connection', - 'close', - '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', - '87a78c1f-6710-4053-8567-7968f2cebf00', - 'x-ms-ests-server', - '2.1.12197.4 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=Al6-nSoVT0ZCpQGKTlCAYKs; expires=Wed, 08-Dec-2021 20:10:38 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrWc6ZVOX1_81xoIkFmZ6tNylNP8dMTaiklb45M07dNQO26qrHKSoYE7qbZ-Re4T1fYpIevSmZD8VAiJrxDz_NooUyetoBk8ip_JkQk0fpt_yJk5I7jSSA4F8u1XvoEyE26eftO48PTmoMtET9g-86mj4H-CUEZy0Z5ecVClG9PlAgAA; 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', - 'Mon, 08 Nov 2021 20:10:38 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=fc9676d0-d9de-4e3b-a303-780e709d188c&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '5d3b8ab0-f3a8-46a6-a3fe-0556138fb800', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AnSjPYx94HBCslQcsdV1Nv5GOXJzAQAAAD57G9kOAAAA; expires=Wed, 08-Dec-2021 20:10: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', - 'Mon, 08 Nov 2021 20:10:38 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:39 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '84489fd0-9592-4591-915c-6b8c4aadb1f3', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.55', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:39 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '09ab02d1-7550-41fa-9ecd-90f66ea7688d', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.566667', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -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":"latest","digest":"sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c","createdTime":"2021-06-01T17:44:40.8107647Z","lastUpdateTime":"2021-06-01T17:44:40.8107647Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:39 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '392', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - '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', - '0b9416d1-39db-4b02-8e88-90bb17c413e0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_tags') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:40 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '72ae9a35-890b-4637-b5d0-34cdc3b90406', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:40 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '6decf439-dc60-4ff0-a400-501136be751c', - '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/library%2Fhello-world/_tags') - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tags":[{"name":"test-delete","digest":"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51","createdTime":"2021-11-08T19:55:54.538344Z","lastUpdateTime":"2021-11-08T19:55:54.538344Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:40 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '395', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - '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', - 'd5ef1413-5487-4f1d-8991-eacd54876e4c', - '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.json b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages.json new file mode 100644 index 000000000000..3cd43d8f679d --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages.json @@ -0,0 +1,292 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?n=1\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "508d11b5-f9ef-443a-82b8-0461d08b4f0d" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:10 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5a319ff6-b136-4984-9ee1-feb6098db53c" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "e4bb6d60-aedb-439a-8500-397f3f62910c" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6e853c87-5be9-4347-92bc-28f56220eece" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "22a1e509-d0cf-4b73-9ddc-9229ebc0bdaa" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b178c983-4c61-4188-aab2-6db659533264" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?n=1\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "508d11b5-f9ef-443a-82b8-0461d08b4f0d" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:10 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fhello-world/_tags?last=latest\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f35ec82d-59d5-4db5-b66a-d3aca6c07089" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "tags": [ + { + "name": "latest", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:46.5263261Z", + "lastUpdateTime": "2022-02-09T18:47:46.5263261Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=latest\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "804b1aa2-35e4-4e94-9053-264776526d57" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:10 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "6e284773-29f9-402d-a66c-1e9f6ef0ed76" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "bfc37835-cb78-42eb-a42d-166dc912d80f" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2af7f606-d5cd-41b1-9fe8-04d98cd971fe" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=latest\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "804b1aa2-35e4-4e94-9053-264776526d57" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "398", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:11 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fhello-world/_tags?last=test-delete\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "9d581add-9d75-445a-9f9c-9033880366c4" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "tags": [ + { + "name": "test-delete", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-10T00:20:26.9021628Z", + "lastUpdateTime": "2022-02-10T00:20:26.9021628Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 31f55bbc7db0..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.js +++ /dev/null @@ -1,231 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "63ea86b583a422685800b2c7b0211022"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_tags') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:41 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '166cc6cd-b29a-4b0c-bc6f-1aba0e9c737a', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - 'f86e02ed-ff12-4829-aa41-b738bf4c1501', - 'x-ms-ests-server', - '2.1.12171.15 - WUS2 ProdSlices', - 'Set-Cookie', - 'fpc=Ar7mL59ZcH5BloaCwgsIopc; expires=Wed, 08-Dec-2021 20:10:41 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrp1kt7mRua-3AZOFTruyonDOAWMLyTdyOYrQ5X8Uc9NwPZFMWfmI-4WIy9WfH9KhX4ZK8gi2xFPLvcqqIrYyZWlboeTsBK_Q22QrJeriy_alR9eDz3jYZt8q5PG8PaRapyWv3ff4JZQLkI3x0_I30dAOX4mDtDVwxEQIYPZ0R7tQgAA; 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', - 'Mon, 08 Nov 2021 20:10:40 GMT', - 'Connection', - 'close', - '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', - 'cac94cd0-6c34-4e4c-a518-d9111a4dcb00', - 'x-ms-ests-server', - '2.1.12197.4 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AiJBPqrbi8pMoPC5KvscXqI; expires=Wed, 08-Dec-2021 20:10:41 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrhFppVJX6IiqxiWHObjjaTryxyIcqQ7gKN9DdRvph0HqZPLy-JpNy9t2JObvOJ75XrNTZhZl7dT3fIwMrqVyPmlxIJFT3vufDSBib8mqvseQsjXwaIBMd09a5ZERfQ7KiQnbtpdN_nGVvMBE73y7j3INPF-gFzcGBBwH0V3ydcGEgAA; 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', - 'Mon, 08 Nov 2021 20:10:41 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=86d719d6-d15e-45c9-9b86-755857f3cacf&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '898f933e-b759-405d-a51a-eb7bab549f00', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AoVd6dmC6zpDu5GpPq7tUIRGOXJzAQAAAEB7G9kOAAAA; expires=Wed, 08-Dec-2021 20:10: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', - 'Mon, 08 Nov 2021 20:10:40 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:41 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '2ad43101-8d8d-4e19-b7b0-1357feeb5048', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:42 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'c6667b74-b2a6-4d55-bb7c-977b4dc10679', - '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/library%2Fhello-world/_tags') - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tags":[{"name":"test1","digest":"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51","createdTime":"2021-06-11T19:11:38.7001063Z","lastUpdateTime":"2021-11-08T19:55:53.3335808Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}]}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:42 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '391', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'e48ccd35-79e9-4b6f-8556-3b0c5b9891c8', - '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.json b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.json new file mode 100644 index 000000000000..01e6191192c3 --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_list_tags_by_pages_with_continuationtoken.json @@ -0,0 +1,162 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=test-delete\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "b2872627-5aea-4693-ac71-df6ab035f1db" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:11 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "553d0f52-cb7f-4b0a-bc58-a281802154a0" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "ea773e30-e453-4252-8d54-6a08d60aef0e" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "095e13c6-e183-42f4-9e9a-5b24a67cf3f9" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "7938bdc8-67d2-4c4e-bfd7-47d5af18b82a" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0d72d040-6070-4903-9d03-d2b8704fc24f" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags?last=test-delete\u0026n=1\u0026orderby=\u0026api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "b2872627-5aea-4693-ac71-df6ab035f1db" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "392", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:12 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fhello-world/_tags?last=test1\u0026n=1\u0026orderby=\u003E; rel=\u0022next\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "390c2f71-ac02-4984-965d-b5e9adb07555" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "tags": [ + { + "name": "test1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:33.7415749Z", + "lastUpdateTime": "2022-02-09T18:47:33.7415749Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index b97a8cd1d527..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.js +++ /dev/null @@ -1,231 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "68119c2dcc627db0dacdf26823ff6342"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:54 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '539f1dc3-3ccd-456a-b785-d5937310bc6c', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - 'ab3f19f4-853c-4085-91c9-cf85a9307a01', - 'x-ms-ests-server', - '2.1.12171.15 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AoAlBMU1oZlOhLREc2k2bcU; expires=Wed, 08-Dec-2021 20:10:54 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevruI8KLmKQewpfUcR5DwEh4TJgzV3MOAva6wVSO8sBxDCUucYftIxCyw1Tyr7A4JG4Sz_zbqbLYqYVVNVCjNQu5J3O5szvlbeqGlpBGzgOaHKv4ymaTLWKo4uwLT6rBoKJc3vzbEfg-LBh7BUtmX6li-pBz671SMPfRt_SX-n81NMgAA; 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', - 'Mon, 08 Nov 2021 20:10:53 GMT', - 'Connection', - 'close', - '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', - '3e2d7ed1-6b32-468c-9db1-1ce49220e900', - 'x-ms-ests-server', - '2.1.12197.4 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=AnMPtxmjF7dGiTq7c22ghdQ; expires=Wed, 08-Dec-2021 20:10:54 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrDq-nCR2E1eAAk52YdiW6yb-bwZuV4ORGbWq9Ewq6c6j_ZxiWR7F6xeZJ8_wa1swR7vUK5gji9awFcRxJCmQMCInL6_Tpm3wnwUE6IwIESUVmXNVOJKrsojMD5Ls4bRg95wQkH7DBdpujvmYls3TNTjteuYVapyVQ6a3TXifDKScgAA; 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', - 'Mon, 08 Nov 2021 20:10:54 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=71f5e152-8144-44eb-b94d-767ed5f39a78&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '65e3b56e-e2b9-4ef0-8f47-c6959e5bb600', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AubMsxJt6cxGgotptTcq0oxGOXJzAQAAAE57G9kOAAAA; expires=Wed, 08-Dec-2021 20:10: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', - 'Mon, 08 Nov 2021 20:10:54 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:55 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'd725aaec-6419-4877-a66b-057b5a875b75', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.55', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:55 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '51f7a253-b567-4c7d-a2f3-7df9ff1edbc0', - '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/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409') - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409","imageSize":4727,"createdTime":"2021-10-06T21:01:30.4148083Z","lastUpdateTime":"2021-10-06T21:01:30.4148083Z","architecture":"386","os":"linux","mediaType":"application/vnd.docker.distribution.manifest.v2+json","changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:55 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '481', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'b663dbc5-a06c-4ae7-8c36-f9bfcc4be131', - '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.json b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.json new file mode 100644 index 000000000000..e13449ccf662 --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_digest.json @@ -0,0 +1,161 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "cbf0b85e-fcc8-4d4c-b41d-93d990ac96d7" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:17 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f80065ff-fae8-4af1-b818-b1935bf1b0a6" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "cc86c7ee-bb69-49a3-8cab-97dfa4eed0d7" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b50fbca1-b47c-467d-8d66-48d1064cabcb" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "4ccbcb07-fa9d-4e1e-858d-baab914f82ff" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "00703105-9888-4629-8b91-648933acf556" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "cbf0b85e-fcc8-4d4c-b41d-93d990ac96d7" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "482", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:18 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8cea620a-71e5-481d-8b0c-9a7da3df801f" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "manifest": { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "imageSize": 4727, + "createdTime": "2022-02-09T02:57:25.5140986Z", + "lastUpdateTime": "2022-02-09T02:57:25.5140986Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 440ca6be4daa..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.js +++ /dev/null @@ -1,323 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "eaab323b7d26599e240fff70f6d01a2b"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_tags/test1') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:51 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '6925e973-46b3-48b7-9f15-7030a448b821', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - 'e458b5ba-cc2f-459e-9ba1-b02493978601', - 'x-ms-ests-server', - '2.1.12171.15 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=AhE--voKImhLuub_5bZ76fg; expires=Wed, 08-Dec-2021 20:10:51 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrlR52ogwKnQZItZwEbgmkiYd3dGDTZvtPWB0dLGkvGw0LsvCDHIgJjdSvCeSOSIyAHAXl7eT92dQ9P5c4YAMQNb2KkAyKZyHxb-dlxApipPVfiFjlL3kwE-aKGI8f6BhhA1Pa5PbZj7dOYaz14_0r5FpGHtisLO164r0NOHi8KVEgAA; 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', - 'Mon, 08 Nov 2021 20:10:51 GMT', - 'Connection', - 'close', - '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', - '63e7e88e-e096-4f91-bc96-1f7efbdce800', - 'x-ms-ests-server', - '2.1.12197.4 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=Amj3uwztj4ZEinvZGIP-Nm4; expires=Wed, 08-Dec-2021 20:10:52 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrnfIoVvPF7vg68G4ghthZrdAzdzBu8BfUk4Uxe_TxaKovp1oO7wxCnC9Yv9hec9gb2DCZzO-KhXAVQOifiQIodX9lgMylCjV_Eq6Dlh_x5VopV-VLjRhU7Z_at8oUtKBWFclXICAWM_UWns9ZIAMqeYgDku3TczxzLS5WZzF6M64gAA; 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', - 'Mon, 08 Nov 2021 20:10:51 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=35c9eb2a-89f9-4b40-91e1-c184fbe5b83e&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'd26ca3c4-5377-4939-a5b3-1de90a23c800', - 'x-ms-ests-server', - '2.1.12197.4 - EUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ap1ava4UR05IkzdouhIVecVGOXJzAQAAAEt7G9kOAAAA; expires=Wed, 08-Dec-2021 20:10: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, 08 Nov 2021 20:10:51 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:52 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'd7ff6cc8-0fee-472f-99c1-d5a06cff8db1', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.616667', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:53 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - '2299b325-18fe-4180-8d92-053d9f8d0fc7', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.616667', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_tags/test1') - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tag":{"name":"test1","digest":"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51","createdTime":"2021-06-11T19:11:38.7001063Z","lastUpdateTime":"2021-11-08T19:55:53.3335808Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:53 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '388', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '7e7f4f22-46a7-42de-9bd8-de747d594dba', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_manifests/sha256%3A37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:53 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '26771d3a-cc60-42ab-8be2-9ba1c2e0da79', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:53 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'c2e8e24a-3eb9-4ad6-b510-24f77ee37561', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.583333', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_manifests/sha256%3A37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51') - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","manifest":{"digest":"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51","imageSize":61625,"createdTime":"2021-11-08T19:55:53.1835258Z","lastUpdateTime":"2021-11-08T19:55:53.1835258Z","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:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4","architecture":"amd64","os":"linux"},{"digest":"sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c","architecture":"arm","os":"linux"},{"digest":"sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c","architecture":"arm","os":"linux"},{"digest":"sha256:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184","architecture":"arm64","os":"linux"},{"digest":"sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409","architecture":"386","os":"linux"},{"digest":"sha256:c2f204d26b4ea353651385001bb6bc371d8c4edcd9daf61d00ad365d927e00c0","architecture":"mips64le","os":"linux"},{"digest":"sha256:b836bb24a270b9cc935962d8228517fde0f16990e88893d935efcb1b14c0017a","architecture":"ppc64le","os":"linux"},{"digest":"sha256:98c9722322be649df94780d3fbe594fce7996234b259f27eac9428b84050c849","architecture":"riscv64","os":"linux"},{"digest":"sha256:c7b6944911848ce39b44ed660d95fb54d69bbd531de724c7ce6fc9f743c0b861","architecture":"s390x","os":"linux"},{"digest":"sha256:31801872aacfc6245ba5277e07dc2c9a482a473c87d625f25c3e6d5de930b35d","architecture":"amd64","os":"windows"},{"digest":"sha256:563c31a6b24347d3f367df5dc33890ab1aec20e9470e5d998f3b6a8fc6eb5763","architecture":"amd64","os":"windows"}]}}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:54 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '1835', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '789c839c-2ae6-46c1-a925-bf3b520be66f', - '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.json b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.json new file mode 100644 index 000000000000..bd92b0456c39 --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_registry_artifact_properties_for_a_tag.json @@ -0,0 +1,352 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "07a9a12d-c803-41ff-b393-c57d3128283b" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:16 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "fb711efd-2a1b-4bde-9ec2-c719c46f0773" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "6b10c72b-163e-4182-a1ce-fc2f8dd6e239" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:16 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "36a33134-78eb-47bb-9b11-21bfc7a3b6fb" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "a3ad7fdb-c729-4d89-857f-be441aeaaaf9" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:16 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "46a65603-db16-404f-834d-0722c24cac6e" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "07a9a12d-c803-41ff-b393-c57d3128283b" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "389", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:16 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "1d100345-36da-4ba0-b607-146d9c2d4ea4" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "test1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:33.7415749Z", + "lastUpdateTime": "2022-02-09T18:47:33.7415749Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "5ab4b6a3-985b-4207-9a95-4b8b8b003761" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:16 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "3ffc2df9-1e2d-46d9-ad57-5a5e5e0cfe1c" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "0a98cb8f-d0e3-45b8-83ed-878cf458609b" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4039bd3a-3a74-4898-a44f-85d96d2eaf03" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3A97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "5ab4b6a3-985b-4207-9a95-4b8b8b003761" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "1865", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:17 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "24e9c032-a2bf-4dc3-95b3-a6e9e57b050a" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "manifest": { + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "imageSize": 61614, + "createdTime": "2022-02-09T18:47:33.6395637Z", + "lastUpdateTime": "2022-02-09T18:47:33.6395637Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest", + "test-delete", + "test1", + "v1", + "v2", + "v3", + "v4" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + }, + "references": [ + { + "digest": "sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4", + "architecture": "amd64", + "os": "linux" + }, + { + "digest": "sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c", + "architecture": "arm", + "os": "linux" + }, + { + "digest": "sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c", + "architecture": "arm", + "os": "linux" + }, + { + "digest": "sha256:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:c2f204d26b4ea353651385001bb6bc371d8c4edcd9daf61d00ad365d927e00c0", + "architecture": "mips64le", + "os": "linux" + }, + { + "digest": "sha256:b836bb24a270b9cc935962d8228517fde0f16990e88893d935efcb1b14c0017a", + "architecture": "ppc64le", + "os": "linux" + }, + { + "digest": "sha256:98c9722322be649df94780d3fbe594fce7996234b259f27eac9428b84050c849", + "architecture": "riscv64", + "os": "linux" + }, + { + "digest": "sha256:c7b6944911848ce39b44ed660d95fb54d69bbd531de724c7ce6fc9f743c0b861", + "architecture": "s390x", + "os": "linux" + }, + { + "digest": "sha256:b3dd41b5fbccbf0e39bee932466d389214cddcb53fa4ad5d02f29ee4172db8c7", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:fdea2bf76c9a47fc0b81958cb87aa65448012ef36ce051a72a09db398efdf7cc", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + } + ], + "Variables": {} +} 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 deleted file mode 100644 index 37b54548db90..000000000000 --- a/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_tag_properties.js +++ /dev/null @@ -1,231 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "9601490465d40ccb6f9d6da88edc49f6"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_tags/test1') - .query(true) - .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', - 'Mon, 08 Nov 2021 20:10:50 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '222', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - '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"', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - '888dbeea-e494-4fdf-9254-b50cfb8dbf21', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .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', - '0f98e2be-9c90-48a8-9a01-2ee920b18201', - 'x-ms-ests-server', - '2.1.12171.15 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=ApLvGOaDAKhGvMdl6kbeioM; expires=Wed, 08-Dec-2021 20:10:50 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrcrJfCjGFBA4PmJTeiPgmxA-MwSoNVzycLf95SZea3ai1otc-HkCuwXxft-_D53JLsHxYH93OafOJ7J2E6EO2QsY2IFd-wRukWReSF6RU6NkF0Vpb6Z5DMFESSh_3Ek8wosC-5fRX-84mxzXFiie4wa3xB35v3cAaXSq23n1SQoogAA; 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', - 'Mon, 08 Nov 2021 20:10:50 GMT', - 'Connection', - 'close', - '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', - '75af796d-25aa-419f-bbad-be604b03e000', - 'x-ms-ests-server', - '2.1.12197.4 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=Ar5um86zMztPvFiv7y5Pmrk; expires=Wed, 08-Dec-2021 20:10:50 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXCoqIvnKqp47b9itzq6SvRTzGkUIpgF0BFaRjrjAOsU_RdMP6FiquEoGzQg7lpswPDJWRlZTQrp9DOFsMjy5eLCKEm0uSiMIZ9ZfoT5ru5WW5XRTEOENNzC6hc7yZeL3Rc3BJHsnmTBHNCR0wn9Hqt-WsQ1mZM84aV8lqUBdBoAgAA; 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', - 'Mon, 08 Nov 2021 20:10:49 GMT', - 'Connection', - 'close', - '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&x-client-SKU=msal.js.node&x-client-VER=1.3.2&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=80bb05a4-971c-4a70-9708-c17d4ec07b16&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '12888e90-b00b-4945-a1ac-e4ee4d78b500', - 'x-ms-ests-server', - '2.1.12197.4 - WUS2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AtdcMjqeNMZNtd_OjQxFBONGOXJzAQAAAEp7G9kOAAAA; expires=Wed, 08-Dec-2021 20:10:50 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, 08 Nov 2021 20:10:50 GMT', - 'Connection', - 'close', - 'Content-Length', - '1351' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/exchange', "grant_type=access_token&service=myregistry.azurecr.io&access_token=access_token") - .query(true) - .reply(200, {"refresh_token":"sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:51 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'c2603dec-5d4c-4307-9046-8ce755c8e2bd', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.633333', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .post('/oauth2/token', "service=myregistry.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized&grant_type=refresh_token") - .query(true) - .reply(200, {"access_token":"access_token"}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:51 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Transfer-Encoding', - 'chunked', - 'Connection', - 'close', - 'X-Ms-Correlation-Request-Id', - 'b5330ca0-c55f-4cd6-a19c-8713b04bc3ee', - 'x-ms-ratelimit-remaining-calls-per-second', - '166.65', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains' -]); - -nock('https://myregistry.azurecr.io:443', {"encodedQueryParams":true}) - .get('/acr/v1/library%2Fhello-world/_tags/test1') - .query(true) - .reply(200, {"registry":"myregistry.azurecr.io","imageName":"library/hello-world","tag":{"name":"test1","digest":"sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51","createdTime":"2021-06-11T19:11:38.7001063Z","lastUpdateTime":"2021-11-08T19:55:53.3335808Z","signed":false,"changeableAttributes":{"deleteEnabled":true,"writeEnabled":true,"readEnabled":true,"listEnabled":true}}}, [ - 'Server', - 'openresty', - 'Date', - 'Mon, 08 Nov 2021 20:10:51 GMT', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Length', - '388', - 'Connection', - 'close', - 'Access-Control-Expose-Headers', - 'Docker-Content-Digest', - 'Access-Control-Expose-Headers', - 'WWW-Authenticate', - 'Access-Control-Expose-Headers', - 'Link', - 'Access-Control-Expose-Headers', - 'X-Ms-Correlation-Request-Id', - 'Docker-Distribution-Api-Version', - 'registry/2.0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'X-Ms-Correlation-Request-Id', - 'a0379116-a147-420b-94ca-c3d871c152c7', - '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.json b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_tag_properties.json new file mode 100644 index 000000000000..877e319a9834 --- /dev/null +++ b/sdk/containerregistry/container-registry/recordings/node/repository_and_artifact_tests/recording_should_retrive_tag_properties.json @@ -0,0 +1,159 @@ +{ + "Entries": [ + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "49d674b9-49b2-4608-bf90-d6e7df09f149" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "222", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:15 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "WWW-Authenticate": "Bearer realm=\u0022https://myregistry.azurecr.io/oauth2/token\u0022,service=\u0022myregistry.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "2ec41307-3acd-4ba1-87a3-38f8e11d1916" + }, + "ResponseBody": { + "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" + } + ] + } + ] + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "84", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "409aa849-3437-47c5-9308-ac871c1f42d2" + }, + "RequestBody": "grant_type=access_token\u0026service=myregistry.azurecr.io\u0026access_token=SecretPlaceholder", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:15 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a93a647a-0e44-4bfc-84e7-2f984720073f" + }, + "ResponseBody": { + "refresh_token": "sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Connection": "keep-alive", + "Content-Length": "174", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "654a3d9e-5768-4d5b-a095-e231ef90caab" + }, + "RequestBody": "service=myregistry.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026refresh_token=sanitized.eyJleHAiOjg2NDAwMDAwMDAwMDB9.sanitized\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:16 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "eed68e36-2aab-4d58-84b8-83986673bc31" + }, + "ResponseBody": { + "access_token": "Sanitized" + } + }, + { + "RequestUri": "https://myregistry.azurecr.io/acr/v1/library%2Fhello-world/_tags/test1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-container-registry/1.0.1 core-rest-pipeline/1.5.1 Node/v16.13.0 OS/(x64-Linux-5.10.60.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "49d674b9-49b2-4608-bf90-d6e7df09f149" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "389", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 10 Feb 2022 00:27:16 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5d7a3a36-991d-4b3e-9383-80bef5694cb9" + }, + "ResponseBody": { + "registry": "myregistry.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "test1", + "digest": "sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a", + "createdTime": "2022-02-09T18:47:33.7415749Z", + "lastUpdateTime": "2022-02-09T18:47:33.7415749Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/container-registry/sample.env b/sdk/containerregistry/container-registry/sample.env index d31981d638b0..1905a3cbbada 100644 --- a/sdk/containerregistry/container-registry/sample.env +++ b/sdk/containerregistry/container-registry/sample.env @@ -1,8 +1,10 @@ # Used in most samples. Retrieve these values from an instance in the Azure # Portal. # Retrieve this value from a Container Registry instance in the Azure Portal. -CONTAINER_REGISTRY_ENDPOINT: "", +CONTAINER_REGISTRY_ENDPOINT="", +CONTAINER_REGISTRY_ANONYMOUS_ENDPOINT="", REPOSITORY_NAME="" +REGISTRY="" # Used to authenticate using Azure AD as a service principal for role-based # authentication in the tokenAuth sample. diff --git a/sdk/containerregistry/container-registry/test/public/anonymousAccess.spec.ts b/sdk/containerregistry/container-registry/test/public/anonymousAccess.spec.ts index eba8b22629b1..07b269dae20e 100644 --- a/sdk/containerregistry/container-registry/test/public/anonymousAccess.spec.ts +++ b/sdk/containerregistry/container-registry/test/public/anonymousAccess.spec.ts @@ -3,18 +3,12 @@ import { assert } from "chai"; import { Context } from "mocha"; -import * as dotenv from "dotenv"; import { ContainerRegistryClient } from "../../src"; import { versionsToTest } from "@azure/test-utils"; -import { env, record, Recorder } from "@azure-tools/test-recorder"; -import { isNode } from "../utils/isNode"; -import { createRegistryClient, recorderEnvSetup, serviceVersions } from "../utils/utils"; - -if (isNode) { - dotenv.config(); -} +import { Recorder, assertEnvironmentVariable } from "@azure-tools/test-recorder"; +import { createRegistryClient, recorderStartOptions, serviceVersions } from "../utils/utils"; versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { onVersions({ minVer: "2021-07-01" }).describe("Anonymous access tests", function () { @@ -31,13 +25,20 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { // The recorder has some convenience methods, and we need to store a // reference to it so that we can `stop()` the recorder later in the // `afterEach` hook. - recorder = record(this, recorderEnvSetup); + recorder = new Recorder(this.currentTest); + + await recorder.start(recorderStartOptions); // We'll be able to refer to the instantiated `client` in tests, since we // initialize it before each test - client = createRegistryClient(env.CONTAINER_REGISTRY_ANONYMOUS_ENDPOINT, serviceVersion, { - anonymous: true, - }); + client = createRegistryClient( + assertEnvironmentVariable("CONTAINER_REGISTRY_ANONYMOUS_ENDPOINT"), + serviceVersion, + recorder, + { + anonymous: true, + } + ); }); // After each test, we need to stop the recording. diff --git a/sdk/containerregistry/container-registry/test/public/containerRegistryClient.spec.ts b/sdk/containerregistry/container-registry/test/public/containerRegistryClient.spec.ts index 673d92341a01..3b47c3a5a354 100644 --- a/sdk/containerregistry/container-registry/test/public/containerRegistryClient.spec.ts +++ b/sdk/containerregistry/container-registry/test/public/containerRegistryClient.spec.ts @@ -3,18 +3,12 @@ import { assert } from "chai"; import { Context } from "mocha"; -import * as dotenv from "dotenv"; import { ContainerRegistryClient } from "../../src"; import { versionsToTest } from "@azure/test-utils"; -import { env, record, Recorder } from "@azure-tools/test-recorder"; -import { isNode } from "../utils/isNode"; -import { createRegistryClient, recorderEnvSetup, serviceVersions } from "../utils/utils"; - -if (isNode) { - dotenv.config(); -} +import { Recorder, assertEnvironmentVariable } from "@azure-tools/test-recorder"; +import { createRegistryClient, recorderStartOptions, serviceVersions } from "../utils/utils"; versionsToTest(serviceVersions, {}, (serviceVersion, onVersions): void => { onVersions({ minVer: "2021-07-01" }).describe("ContainerRegistryClient tests", function () { @@ -31,11 +25,17 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions): void => { // The recorder has some convenience methods, and we need to store a // reference to it so that we can `stop()` the recorder later in the // `afterEach` hook. - recorder = record(this, recorderEnvSetup); + recorder = new Recorder(this.currentTest); + + await recorder.start(recorderStartOptions); // We'll be able to refer to the instantiated `client` in tests, since we // initialize it before each test - client = createRegistryClient(env.CONTAINER_REGISTRY_ENDPOINT, serviceVersion); + client = createRegistryClient( + assertEnvironmentVariable("CONTAINER_REGISTRY_ENDPOINT"), + serviceVersion, + recorder + ); }); // After each test, we need to stop the recording. diff --git a/sdk/containerregistry/container-registry/test/public/repositoryAndArtifact.spec.ts b/sdk/containerregistry/container-registry/test/public/repositoryAndArtifact.spec.ts index 1a10aafe82ba..e4e5e8b705f3 100644 --- a/sdk/containerregistry/container-registry/test/public/repositoryAndArtifact.spec.ts +++ b/sdk/containerregistry/container-registry/test/public/repositoryAndArtifact.spec.ts @@ -3,17 +3,11 @@ import { assert } from "chai"; import { Context } from "mocha"; -import * as dotenv from "dotenv"; import { ContainerRegistryClient, ContainerRepository } from "../../src"; import { versionsToTest } from "@azure/test-utils"; -import { env, record, Recorder } from "@azure-tools/test-recorder"; +import { Recorder, assertEnvironmentVariable } from "@azure-tools/test-recorder"; import { RestError } from "@azure/core-rest-pipeline"; -import { isNode } from "../utils/isNode"; -import { createRegistryClient, recorderEnvSetup, serviceVersions } from "../utils/utils"; - -if (isNode) { - dotenv.config(); -} +import { createRegistryClient, recorderStartOptions, serviceVersions } from "../utils/utils"; versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { onVersions({ minVer: "2021-07-01" }).describe("Repository and artifact tests", function () { @@ -30,9 +24,15 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { // The recorder has some convenience methods, and we need to store a // reference to it so that we can `stop()` the recorder later in the // `afterEach` hook. - recorder = record(this, recorderEnvSetup); + recorder = new Recorder(this.currentTest); + + await recorder.start(recorderStartOptions); - registryClient = createRegistryClient(env.CONTAINER_REGISTRY_ENDPOINT, serviceVersion); + registryClient = createRegistryClient( + assertEnvironmentVariable("CONTAINER_REGISTRY_ENDPOINT"), + serviceVersion, + recorder + ); repository = registryClient.getRepository(repositoryName); }); diff --git a/sdk/containerregistry/container-registry/test/utils/isNode.browser.ts b/sdk/containerregistry/container-registry/test/utils/isNode.browser.ts deleted file mode 100644 index 603c1ba24548..000000000000 --- a/sdk/containerregistry/container-registry/test/utils/isNode.browser.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -/** - * A constant that indicates whether the environment the code is running is Node.JS. - */ -export const isNode = false; diff --git a/sdk/containerregistry/container-registry/test/utils/isNode.ts b/sdk/containerregistry/container-registry/test/utils/isNode.ts deleted file mode 100644 index 8e6aed4ba67f..000000000000 --- a/sdk/containerregistry/container-registry/test/utils/isNode.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -/** - * A constant that indicates whether the environment the code is running is Node.JS. - */ -export const isNode = - typeof process !== "undefined" && Boolean(process.version) && Boolean(process.versions?.node); diff --git a/sdk/containerregistry/container-registry/test/utils/utils.ts b/sdk/containerregistry/container-registry/test/utils/utils.ts index aaf34b323ad4..ef3d79df60fb 100644 --- a/sdk/containerregistry/container-registry/test/utils/utils.ts +++ b/sdk/containerregistry/container-registry/test/utils/utils.ts @@ -1,21 +1,16 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { AzureAuthorityHosts, ClientSecretCredential } from "@azure/identity"; -import { - env, - RecorderEnvironmentSetup, - pluginForClientSecretCredentialTests, - isLiveMode, -} from "@azure-tools/test-recorder"; +import { AzureAuthorityHosts } from "@azure/identity"; +import { createTestCredential } from "@azure-tools/test-credential"; +import { env, isLiveMode, Recorder, RecorderStartOptions } from "@azure-tools/test-recorder"; import { ContainerRegistryClient, KnownContainerRegistryAudience } from "../../src"; -import { isNode } from "./isNode"; -import { createXhrHttpClient } from "@azure/test-utils"; +import { createXhrHttpClient, isNode } from "@azure/test-utils"; // When the recorder observes the values of these environment variables in any // recorded HTTP request or response, it will replace them with the values they // are mapped to below. -const replaceableVariables: Record = { +const envSetupForPlayback: Record = { CONTAINER_REGISTRY_ENDPOINT: "https://myregistry.azurecr.io", CONTAINER_REGISTRY_ANONYMOUS_ENDPOINT: "https://myregistry.azurecr.io", CONTAINERREGISTRY_TENANT_ID: "12345678-1234-1234-1234-123456789012", @@ -27,36 +22,34 @@ const replaceableVariables: Record = { }; const expiryReplacement = "eyJleHAiOjg2NDAwMDAwMDAwMDB9"; // base64 encoding of '{"exp":8640000000000}' ; -export const recorderEnvSetup: RecorderEnvironmentSetup = { +export const recorderStartOptions: RecorderStartOptions = { // == Recorder Environment Setup == Add the replaceable variables from // above - replaceableVariables, + envSetupForPlayback, - // We don't use this in the template, but if we had any query parameters - // we wished to discard, we could add them here - queryParametersToSkip: [], - - // Finally, we need to remove the AAD `refresh_token` from any requests. - // This is very important, as it cannot be removed using environment - // variable or query parameter replacement. The - // `customizationsOnRecordings` field allows us to make arbitrary - // replacements within recordings. - customizationsOnRecordings: [ - (recording: string): string => - recording.replace( - /"refresh_token":"[^"]+"/g, - `"refresh_token":"sanitized.${expiryReplacement}.sanitized"` - ), - (recording: string): string => - recording.replace(/access_token=(.+?)(&|")/, `access_token=access_token$2`), - (recording: string): string => - recording.replace( - /refresh_token=([^&]+?)(&|")/, - `refresh_token=sanitized.${expiryReplacement}.sanitized$2` - ), - ], - onLoadCallbackForPlayback: () => { - pluginForClientSecretCredentialTests(env.CONTAINERREGISTRY_TENANT_ID); + sanitizerOptions: { + generalSanitizers: [ + { + regex: true, + target: `"refresh_token":"[^"]+"`, + value: `"refresh_token":"sanitized.${expiryReplacement}.sanitized"`, + }, + { + regex: true, + target: `access_token=([^&]+?)(&|"|$)`, + value: `access_token=SecretPlaceholder$2`, + }, + { + regex: true, + target: `refresh_token=([^&]+?)(&|")`, + value: `refresh_token=sanitized.${expiryReplacement}.sanitized$2`, + }, + ], + bodyKeySanitizers: [ + { + jsonPath: "access_token", + }, + ], }, }; @@ -90,6 +83,7 @@ type ContainerRegistryServiceVersions = "2021-07-01"; export function createRegistryClient( endpoint: string, serviceVersion: string, + recorder: Recorder, options: { anonymous: boolean } = { anonymous: false } ): ContainerRegistryClient { const authorityHost = getAuthority(endpoint); @@ -103,22 +97,23 @@ export function createRegistryClient( }; if (options.anonymous) { - return new ContainerRegistryClient(endpoint, clientOptions); + return new ContainerRegistryClient(endpoint, recorder.configureClientOptions(clientOptions)); } - // We use ClientSecretCredential instead of DefaultAzureCredential in order - // to ensure that the requests made to the AAD server are always the same. If - // we used DefaultAzureCredential, they might be different on some machines - // than on others, depending on which credentials are available (such as - // Managed Identity or developer credentials). - const credential = new ClientSecretCredential( - env.CONTAINERREGISTRY_TENANT_ID, - env.CONTAINERREGISTRY_CLIENT_ID, - env.CONTAINERREGISTRY_CLIENT_SECRET, - { ...tokenCredentialOptions, httpClient } + const credential = createTestCredential( + { ...tokenCredentialOptions, httpClient }, + { + tenantId: env.CONTAINERREGISTRY_TENANT_ID, + clientId: env.CONTAINERREGISTRY_CLIENT_ID, + clientSecret: env.CONTAINERREGISTRY_CLIENT_SECRET, + } ); - return new ContainerRegistryClient(endpoint, credential, clientOptions); + return new ContainerRegistryClient( + endpoint, + credential, + recorder.configureClientOptions(clientOptions) + ); } export const serviceVersions = ["2021-07-01"] as const; diff --git a/sdk/test-utils/test-credential/src/index.ts b/sdk/test-utils/test-credential/src/index.ts index d5196baeb27f..b11c65b2cd12 100644 --- a/sdk/test-utils/test-credential/src/index.ts +++ b/sdk/test-utils/test-credential/src/index.ts @@ -5,6 +5,12 @@ import { ClientSecretCredential, TokenCredentialOptions } from "@azure/identity" import { env, isPlaybackMode } from "@azure-tools/test-recorder"; import { NoOpCredential } from "./noOpCredential"; +export interface CreateTestCredentialOptions { + tenantId?: string; + clientId?: string; + clientSecret?: string; +} + /** * ## Credential to be used in the tests. * @@ -15,14 +21,17 @@ import { NoOpCredential } from "./noOpCredential"; * - returns the ClientSecretCredential (expects AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET in your environment or in the .env file) * - AAD traffic won't be recorded if this credential is used. */ -export function createTestCredential(options?: TokenCredentialOptions) { +export function createTestCredential( + tokenCredentialOptions?: TokenCredentialOptions, + createTestCredentialOptions?: CreateTestCredentialOptions +) { return isPlaybackMode() ? new NoOpCredential() : new ClientSecretCredential( - env["AZURE_TENANT_ID"], - env["AZURE_CLIENT_ID"], - env["AZURE_CLIENT_SECRET"], - options + createTestCredentialOptions?.tenantId ?? env["AZURE_TENANT_ID"], + createTestCredentialOptions?.clientId ?? env["AZURE_CLIENT_ID"], + createTestCredentialOptions?.clientSecret ?? env["AZURE_CLIENT_SECRET"], + tokenCredentialOptions ); }