diff --git a/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py b/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py index 3af78d65041d..5f1f450e199c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py @@ -32,9 +32,6 @@ async def get_token(self, *args): class AsyncContainerRegistryTestClass(ContainerRegistryTestClass): - def __init__(self, method_name): - super(AsyncContainerRegistryTestClass, self).__init__(method_name) - def get_credential(self, authority=None, **kwargs): if self.is_live: if authority != AzureAuthorityHosts.AZURE_PUBLIC_CLOUD: diff --git a/sdk/containerregistry/azure-containerregistry/tests/conftest.py b/sdk/containerregistry/azure-containerregistry/tests/conftest.py index 7566eb4bf7f9..30459783b133 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/conftest.py +++ b/sdk/containerregistry/azure-containerregistry/tests/conftest.py @@ -5,8 +5,31 @@ # license information. # -------------------------------------------------------------------------- +import os + +import pytest +from devtools_testutils import add_general_regex_sanitizer, add_body_key_sanitizer, add_uri_regex_sanitizer, test_proxy + # Fixture from testcase import load_registry + def pytest_configure(config): config.addinivalue_line("usefixtures", "load_registry") + +@pytest.fixture(scope="session", autouse=True) +def add_sanitizers(test_proxy): + # sanitizes access and refresh tokens that are present in single-string request or response bodies + # we expect tokens to either be at the end of this body string, or followed by "\u0026" and more content + add_general_regex_sanitizer(value="access_token", regex="(?<=access_token=).*?(?=(?:\\u0026|$))") + add_general_regex_sanitizer(value="refresh_token", regex="(?<=refresh_token=).*?(?=(?:\\u0026|$))") + # sanitizes access and refresh tokens in JSON-formatted request or response bodies + add_body_key_sanitizer(json_path="$..access_token", value="access_token") + add_body_key_sanitizer(json_path="$..refresh_token", value="refresh_token") + + add_uri_regex_sanitizer(regex="sha256%3A(.*)", value="sha256_encoded_stream") + + client_id = os.environ.get("CONTAINERREGISTRY_CLIENT_ID", "client-id") + add_general_regex_sanitizer(regex=client_id, value="client-id") + client_secret = os.environ.get("CONTAINERREGISTRY_CLIENT_SECRET", "client-secret") + add_general_regex_sanitizer(regex=client_secret, value="client-secret") diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_delete_manifest.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_delete_manifest.json new file mode 100644 index 000000000000..ea3b06474fb5 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_delete_manifest.json @@ -0,0 +1,254 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:47: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ce555cf7-129c-4176-9547-8ae31fda2e5a" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:47:43 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2dce36e1-4737-49af-9d9a-6cb94f7d896d", + "x-ms-ratelimit-remaining-calls-per-second": "166.65" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:47: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": "4693f1e0-31c5-47ab-8625-f3e26af03f05" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "latest", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T07:05:13.3334843Z", + "lastUpdateTime": "2022-07-28T07:05:13.3334843Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/library%2Fhello-world/manifests/sha256_encoded_stream", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:47: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "3a82605d-ef85-4f86-9bf1-65f42164fdfc" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "105", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Adelete\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:47:43 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e6dff6ba-6290-45f2-9f5f-368e6e8f3319", + "x-ms-ratelimit-remaining-calls-per-second": "166.633333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/library%2Fhello-world/manifests/sha256_encoded_stream", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:47: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:delete\u0022,error=\u0022insufficient_scope\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b12b357f-9b6e-4d76-bf00-5bfb61d88e31" + }, + "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" + } + ] + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_delete_repository.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_delete_repository.json new file mode 100644 index 000000000000..319e313818fd --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_delete_repository.json @@ -0,0 +1,130 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:55 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d9b607fd-c6c9-4426-b9cf-4b14a40d08f8" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "105", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Adelete\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "70a650cf-20a9-4d07-9a6c-7e596597ee2e", + "x-ms-ratelimit-remaining-calls-per-second": "166.266667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:55 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:delete\u0022,error=\u0022insufficient_scope\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8bcdecdf-8ea9-4862-9d0e-00360f785b14" + }, + "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" + } + ] + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_delete_tag.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_delete_tag.json new file mode 100644 index 000000000000..5d44737232f6 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_delete_tag.json @@ -0,0 +1,130 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:55 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "175a10be-f509-4a99-9776-f8042486257e" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "105", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Adelete\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "72ef6167-de17-444e-8e61-b4b26cbdc36a", + "x-ms-ratelimit-remaining-calls-per-second": "166.25" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:55 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:delete\u0022,error=\u0022insufficient_scope\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7a37db16-68c8-4df2-98bf-85d2dcd3a656" + }, + "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" + } + ] + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_get_manifest_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_get_manifest_properties.json new file mode 100644 index 000000000000..b8362eda0120 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_get_manifest_properties.json @@ -0,0 +1,317 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:45: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e000f593-3f45-404c-899b-9a4e9a6f9184" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:45:23 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e8c14fa3-f4c0-40bf-8ec7-271d112f0266", + "x-ms-ratelimit-remaining-calls-per-second": "166.15" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:45:23 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": "b55c187e-3500-4009-b8ba-7b4483db4f82" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "latest", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T07:05:13.3334843Z", + "lastUpdateTime": "2022-07-28T07:05:13.3334843Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:45: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "6ebab03a-46e0-467f-8229-64f51931a147" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:45:23 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4b8feaf2-586d-4f29-8630-59c51da4c721", + "x-ms-ratelimit-remaining-calls-per-second": "166.133333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1849", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:45:23 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": "599b4bdb-a520-4212-8983-fde6baaab54e" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "manifest": { + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "imageSize": 61611, + "createdTime": "2022-07-28T07:05:13.1252228Z", + "lastUpdateTime": "2022-07-28T07:05:13.1252228Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest", + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:8377f36b3d74a8a4a95857a49d17a2969a2208eeb47a8af77bfa0136ef88e968", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_get_repository_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_get_repository_properties.json new file mode 100644 index 000000000000..4d3863c0b028 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_get_repository_properties.json @@ -0,0 +1,126 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.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-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "022bfb97-1f1d-4c25-9abb-f79adf54850c" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "db4a6ff3-02d8-4b39-9b5b-caa2418febad", + "x-ms-ratelimit-remaining-calls-per-second": "166.35" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.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-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "306", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43: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": "3b7f6fc6-7a8a-46f2-9c87-ef806b3ea5a4" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "createdTime": "2022-07-08T21:52:31.1999242Z", + "lastUpdateTime": "2022-07-08T21:52:28.9476933Z", + "manifestCount": 12, + "tagCount": 5, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_list_manifest_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_list_manifest_properties.json new file mode 100644 index 000000000000..6913361d92cc --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_list_manifest_properties.json @@ -0,0 +1,325 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "0db6ccd7-b41a-4428-8064-a0f8790b3d77" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f5c723a6-1354-4704-9476-8231956c32d5", + "x-ms-ratelimit-remaining-calls-per-second": "166.333333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:54 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": "69a0ce62-0957-49ca-986b-62673eac35f3" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "manifests": [ + { + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "imageSize": 61676, + "createdTime": "2022-07-08T21:52:31.2330082Z", + "lastUpdateTime": "2022-07-08T21:52:31.2330082Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest", + "v1", + "v2", + "v3", + "v4" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "imageSize": 5218, + "createdTime": "2022-07-08T21:52:32.5336976Z", + "lastUpdateTime": "2022-07-08T21:52:32.5336976Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:40 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c", + "imageSize": 5691, + "createdTime": "2022-07-08T21:52:32.6928092Z", + "lastUpdateTime": "2022-07-08T21:52:32.6928092Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:40 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:98c9722322be649df94780d3fbe594fce7996234b259f27eac9428b84050c849", + "imageSize": 4996, + "createdTime": "2022-07-08T21:52:32.8356327Z", + "lastUpdateTime": "2022-07-08T21:52:32.8356327Z", + "architecture": "riscv64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:49 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "imageSize": 4729, + "createdTime": "2022-07-08T21:52:33.691022Z", + "lastUpdateTime": "2022-07-08T21:52:33.691022Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:42:48 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:9ec668ee97c20731eb4f4f55f6248ac6b83a0d2e1add2110e6b5d62191f66dd7", + "imageSize": 5849, + "createdTime": "2022-07-08T21:52:32.8978777Z", + "lastUpdateTime": "2022-07-08T21:52:32.8978777Z", + "architecture": "amd64", + "os": "windows", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-06-30T00:36:25.0812417Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:2},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:1},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:b836bb24a270b9cc935962d8228517fde0f16990e88893d935efcb1b14c0017a", + "imageSize": 5925, + "createdTime": "2022-07-08T21:52:32.4754768Z", + "lastUpdateTime": "2022-07-08T21:52:32.4754768Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan InProgress\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:40 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:c7b6944911848ce39b44ed660d95fb54d69bbd531de724c7ce6fc9f743c0b861", + "imageSize": 5270, + "createdTime": "2022-07-08T21:52:32.7471194Z", + "lastUpdateTime": "2022-07-08T21:52:32.7471194Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:24:02 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "imageSize": 6090, + "createdTime": "2022-07-08T21:52:32.9810435Z", + "lastUpdateTime": "2022-07-08T21:52:32.9810435Z", + "architecture": "mips64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan InProgress\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:45 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c", + "imageSize": 5000, + "createdTime": "2022-07-08T21:52:34.5764973Z", + "lastUpdateTime": "2022-07-08T21:52:34.5764973Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:41 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4", + "imageSize": 4473, + "createdTime": "2022-07-08T21:52:31.5504242Z", + "lastUpdateTime": "2022-07-08T21:52:31.5504242Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan InProgress\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:39 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:fa36b268301e951714b69bb6db7680639cdc1b7381cfaac12e98e09f94fdc0d6", + "imageSize": 5873, + "createdTime": "2022-07-08T21:52:33.1751084Z", + "lastUpdateTime": "2022-07-08T21:52:33.1751084Z", + "architecture": "amd64", + "os": "windows", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-06-30T00:36:25.0812417Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:2},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:1},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_list_repository_names.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_list_repository_names.json new file mode 100644 index 000000000000..61d97e9918d9 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_list_repository_names.json @@ -0,0 +1,149 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:50 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a9ed3955-9932-43b4-8d31-b26194c82f37" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:50 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "584d1ca0-ae66-483a-8f4c-770ec79cff77", + "x-ms-ratelimit-remaining-calls-per-second": "166.65" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "527", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:50 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": "a187e18a-0d06-4a42-bc03-a7f207557537" + }, + "ResponseBody": { + "repositories": [ + "library/alpine", + "library/busybox", + "library/hello-world", + "repo141645c0", + "repo1a1f4613", + "repo1ded4145", + "repo1e243c5e", + "repo220636ca", + "repo23f64198", + "repo2d863abf", + "repo2deb42ef", + "repo3ea338e5", + "repo571f3e74", + "repo5b014628", + "repo5b823eaa", + "repo5c164001", + "repo5c6c3e66", + "repo605d41ad", + "repo8725450a", + "repo99f2408f", + "repo9a4c3ebe", + "repoa4a73b86", + "repoa693421c", + "repoa81d3b45", + "repob25d43a6", + "repod29b3f2b", + "repod8bd3da1", + "repodb213d60", + "repodbf03f3a", + "repode7a40d9", + "repoe63342a4", + "repof04e3a43", + "to_be_deleted" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_list_repository_names_by_page.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_list_repository_names_by_page.json new file mode 100644 index 000000000000..7267f5ed4176 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_list_repository_names_by_page.json @@ -0,0 +1,1941 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?n=2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:50 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b21cff49-fff7-4028-94fc-eea28baf4e0d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:50 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "91904abf-421f-4fce-9fec-05a2967a9da1", + "x-ms-ratelimit-remaining-calls-per-second": "166.633333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?n=2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "54", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:50 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=library%2Fbusybox\u0026n=2\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": "625e1aff-f3a9-494b-97f4-8e8279deb312" + }, + "ResponseBody": { + "repositories": [ + "library/alpine", + "library/busybox" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:50 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ee8c372e-170a-4191-8822-b653032ba1ea" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:50 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ecea859b-304e-4525-a110-a0c0d682f80d", + "x-ms-ratelimit-remaining-calls-per-second": "166.616667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "56", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:50 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo141645c0\u0026n=2\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": "e7bee0d5-f1f6-4374-ba04-9744b17ab71d" + }, + "ResponseBody": { + "repositories": [ + "library/hello-world", + "repo141645c0" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo141645c0\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:51 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e4a2db0a-b0db-4306-8192-7726f0ed257d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:51 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "11c3fbd2-5da2-46ae-a64f-50f013deac67", + "x-ms-ratelimit-remaining-calls-per-second": "166.6" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo141645c0\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:51 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo1ded4145\u0026n=2\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": "05f3b490-ee80-4535-997b-98ee880166c5" + }, + "ResponseBody": { + "repositories": [ + "repo1a1f4613", + "repo1ded4145" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo1ded4145\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:51 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "9d5e77a4-306f-41eb-a001-cf777f59f19c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:51 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "256ac5f7-2780-4663-a1ef-148814f6f8b8", + "x-ms-ratelimit-remaining-calls-per-second": "166.583333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo1ded4145\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:51 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo220636ca\u0026n=2\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": "224ea498-fd61-4bf9-9bb4-2a2d55faebdf" + }, + "ResponseBody": { + "repositories": [ + "repo1e243c5e", + "repo220636ca" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo220636ca\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:51 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "129c9032-60b4-42f3-9616-7b21a05cdb5d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:51 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "02a34308-75be-4a68-93e3-d28befa34359", + "x-ms-ratelimit-remaining-calls-per-second": "166.566667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo220636ca\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:51 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo2d863abf\u0026n=2\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": "a40987b1-a38e-4a44-a8d4-52fbe939b8a9" + }, + "ResponseBody": { + "repositories": [ + "repo23f64198", + "repo2d863abf" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2d863abf\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:51 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "03dcf972-9b35-4e28-bb3a-206526acb231" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:51 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "bbc9f787-171a-4319-9e3a-504750d1757b", + "x-ms-ratelimit-remaining-calls-per-second": "166.55" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2d863abf\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:51 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo3ea338e5\u0026n=2\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": "42c25b04-c231-401f-aa3f-cc30b3ab82f1" + }, + "ResponseBody": { + "repositories": [ + "repo2deb42ef", + "repo3ea338e5" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3ea338e5\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:51 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5e3fb522-bb3b-4fe9-a38f-8a02132fba48" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:51 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "71c627bf-8dc9-4517-ab2e-cc7b2aa05bb3", + "x-ms-ratelimit-remaining-calls-per-second": "166.533333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3ea338e5\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:51 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo5b014628\u0026n=2\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": "a6d54da9-efe0-4aa3-9dd0-c4d40420a5bf" + }, + "ResponseBody": { + "repositories": [ + "repo571f3e74", + "repo5b014628" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5b014628\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:51 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "50167c5b-9b4b-4b7e-82b7-3a64e0e36be7" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:51 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c8d524ad-27b8-4434-b2f9-be839acafe6f", + "x-ms-ratelimit-remaining-calls-per-second": "166.516667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5b014628\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:51 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo5c164001\u0026n=2\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": "c1d57bb7-1bc4-4346-bc51-61146c716914" + }, + "ResponseBody": { + "repositories": [ + "repo5b823eaa", + "repo5c164001" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5c164001\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:51 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "21cee9ca-e3c8-416a-ab7b-fc1a15257def" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:51 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c111531c-3acd-4243-9620-210c0bc71d3b", + "x-ms-ratelimit-remaining-calls-per-second": "166.5" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5c164001\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:51 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo605d41ad\u0026n=2\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": "83ed45e5-c6ad-4a9f-9518-1045e35af1ab" + }, + "ResponseBody": { + "repositories": [ + "repo5c6c3e66", + "repo605d41ad" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo605d41ad\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:51 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "0ac56061-f311-4a58-a2a9-65d43265eabd" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:51 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7bba4b30-fe29-49ff-85c3-15b5236f3192", + "x-ms-ratelimit-remaining-calls-per-second": "166.483333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo605d41ad\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:52 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo99f2408f\u0026n=2\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": "162406e0-c8ad-483b-aab6-31d32ab553c5" + }, + "ResponseBody": { + "repositories": [ + "repo8725450a", + "repo99f2408f" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo99f2408f\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:52 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "89c6f140-9038-4b42-9bce-769fc8f7f8c8" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:52 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c794770a-b248-454b-a905-c73254f3c76b", + "x-ms-ratelimit-remaining-calls-per-second": "166.466667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo99f2408f\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:52 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repoa4a73b86\u0026n=2\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": "81de9ec7-0349-40b7-b9a4-fd037cfcdf1d" + }, + "ResponseBody": { + "repositories": [ + "repo9a4c3ebe", + "repoa4a73b86" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa4a73b86\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:52 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "0fd0aa85-9804-41f6-a59e-71e99e4677e2" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:52 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f77ad5f6-843a-4251-ba9b-0a8a9c7a37f2", + "x-ms-ratelimit-remaining-calls-per-second": "166.45" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa4a73b86\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:52 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repoa81d3b45\u0026n=2\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": "4055f634-1c51-427b-9931-8d527b251987" + }, + "ResponseBody": { + "repositories": [ + "repoa693421c", + "repoa81d3b45" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa81d3b45\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:52 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c64a44c9-6296-4196-863c-6d53722e8ab8" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:52 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "73dcb449-e084-407e-8e28-ac8de5b526a7", + "x-ms-ratelimit-remaining-calls-per-second": "166.433333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa81d3b45\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:52 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repod29b3f2b\u0026n=2\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": "a8d2744e-c141-4e96-a94e-ba4433432012" + }, + "ResponseBody": { + "repositories": [ + "repob25d43a6", + "repod29b3f2b" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repod29b3f2b\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:52 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b1cd5b40-29e3-443a-b5a2-c764dc98f6aa" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:52 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "fc633ca9-0497-47ba-bc45-b7e7e143a016", + "x-ms-ratelimit-remaining-calls-per-second": "166.416667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repod29b3f2b\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:52 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repodb213d60\u0026n=2\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": "cb607571-2fc8-49af-b1cd-b953ed409fd1" + }, + "ResponseBody": { + "repositories": [ + "repod8bd3da1", + "repodb213d60" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repodb213d60\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:52 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c6cb2d23-3f4f-43e2-83a1-c90bc7b1da91" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:52 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c4ef0ab3-168b-4506-b46e-c76babf55d77", + "x-ms-ratelimit-remaining-calls-per-second": "166.4" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repodb213d60\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:52 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repode7a40d9\u0026n=2\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": "aa117821-2a89-468a-9a61-c1d961b67d6b" + }, + "ResponseBody": { + "repositories": [ + "repodbf03f3a", + "repode7a40d9" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repode7a40d9\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:52 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8ebd77db-f09b-4d6a-a095-ac009521343b" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:52 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5c793f35-87d5-4e3b-a02d-19ae9f1d1810", + "x-ms-ratelimit-remaining-calls-per-second": "166.383333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repode7a40d9\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:52 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repof04e3a43\u0026n=2\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": "15eac8b5-c4ff-4947-a35e-fb4b4369a386" + }, + "ResponseBody": { + "repositories": [ + "repoe63342a4", + "repof04e3a43" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repof04e3a43\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:52 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8bb2086c-2a18-4aa7-80ac-8c11b10564e7" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:52 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "bf6a89a9-d65d-4350-839d-4dbd969d49d1", + "x-ms-ratelimit-remaining-calls-per-second": "166.366667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repof04e3a43\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "35", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:52 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": "e0276802-a9be-45d6-ad76-c880d14b2492" + }, + "ResponseBody": { + "repositories": [ + "to_be_deleted" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_list_tag_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_list_tag_properties.json new file mode 100644 index 000000000000..46b4bf0e26f7 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_list_tag_properties.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:55 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "24be0b99-62e7-4bdd-86bd-26632d23a40f" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3e30e509-ae40-4a15-8cea-b212522a0e4f", + "x-ms-ratelimit-remaining-calls-per-second": "166.283333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1633", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:55 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": "5abaebb9-49b6-4d2a-8825-a23179e72ac4" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "tags": [ + { + "name": "latest", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:52:31.3066134Z", + "lastUpdateTime": "2022-07-08T21:52:31.3066134Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "v1", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:52:32.185416Z", + "lastUpdateTime": "2022-07-08T21:52:32.185416Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "v2", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:52:32.7961357Z", + "lastUpdateTime": "2022-07-08T21:52:32.7961357Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "v3", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:52:32.6048137Z", + "lastUpdateTime": "2022-07-08T21:52:32.6048137Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "v4", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:52:33.0460871Z", + "lastUpdateTime": "2022-07-08T21:52:33.0460871Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_update_manifest_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_update_manifest_properties.json new file mode 100644 index 000000000000..4bb6c378055c --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_update_manifest_properties.json @@ -0,0 +1,578 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:50: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "9637f388-1258-4aa0-972a-fa4ae0a2ad84" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:50:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6ad7462b-1dbd-4dfb-8214-308ce0fcb776", + "x-ms-ratelimit-remaining-calls-per-second": "166.65" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:50: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": "b8b3dd84-4816-4f18-aef4-b3ae618d14c1" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "latest", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T07:05:13.3334843Z", + "lastUpdateTime": "2022-07-28T07:05:13.3334843Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:50: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "034842ec-08a2-491a-9c6e-4439c1507d07" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:50:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5562596e-daf3-4ff1-82dd-4dd6d32ae0ec", + "x-ms-ratelimit-remaining-calls-per-second": "166.633333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1849", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:50: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": "070afd5b-b746-4687-afc6-1adbef5d6b78" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "manifest": { + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "imageSize": 61611, + "createdTime": "2022-07-28T07:05:13.1252228Z", + "lastUpdateTime": "2022-07-28T07:05:13.1252228Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest", + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:8377f36b3d74a8a4a95857a49d17a2969a2208eeb47a8af77bfa0136ef88e968", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:50: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d043b37b-74e5-4dc7-b262-303a3e9ba2a4" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:50:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6454663d-c2ad-467d-94ec-b8f13f7e804f", + "x-ms-ratelimit-remaining-calls-per-second": "166.616667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:50: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": "22b8c256-8944-41f4-8e8c-81fd6887671f" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "latest", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T07:05:13.3334843Z", + "lastUpdateTime": "2022-07-28T07:05:13.3334843Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:50: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "865f8cd0-bf44-4b34-b41f-8c471e186cfb" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "113", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:50:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "92358050-268f-4379-b676-b26fb3df0364", + "x-ms-ratelimit-remaining-calls-per-second": "166.6" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:50: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.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": "98b7f48e-70b6-4c94-9dbf-71937fff8ab6" + }, + "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/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_update_repository_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_update_repository_properties.json new file mode 100644 index 000000000000..c2dc9397e01b --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_update_repository_properties.json @@ -0,0 +1,263 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.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-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "fb00878e-eaed-4dc1-b11d-1b3cb3ea19a2" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:56 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6afa4221-3b7b-4a0a-a435-417d6169a9c2", + "x-ms-ratelimit-remaining-calls-per-second": "166.2" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.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-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "306", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:56 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": "5b6b6848-e567-4c77-b250-3acffebb2697" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "createdTime": "2022-07-08T21:52:31.1999242Z", + "lastUpdateTime": "2022-07-08T21:52:28.9476933Z", + "manifestCount": 12, + "tagCount": 5, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://fake_url.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": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b09bc7a6-a480-4100-974f-8878bb760e65" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "113", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:56 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "221cc142-22ef-4a5d-ab49-dcabd2176af8", + "x-ms-ratelimit-remaining-calls-per-second": "166.183333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.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": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.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": "e5293e75-041a-4a52-860f-e850faafb9e0" + }, + "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/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_update_tag_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_update_tag_properties.json new file mode 100644 index 000000000000..9e19e05aaeb1 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.pyTestContainerRegistryClienttest_update_tag_properties.json @@ -0,0 +1,266 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "284d1388-17ff-4bdb-a145-c2fcd4b235b8" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:56 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8078ab17-e99c-4d74-ab01-612ee7296805", + "x-ms-ratelimit-remaining-calls-per-second": "166.166667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43:56 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": "03e41fbc-4ede-4d6f-97f1-1793931a5824" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "latest", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:52:31.3066134Z", + "lastUpdateTime": "2022-07-08T21:52:31.3066134Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "27ac3944-ed6f-45ae-8f9e-8adad6a5113f" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "113", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:56 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4fdcaf3b-9a6d-4d7d-b14b-7d2dac03fd8f", + "x-ms-ratelimit-remaining-calls-per-second": "166.15" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.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": "8e69a632-b124-45bf-a3de-eca57c692e57" + }, + "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/azure-containerregistry/tests/recordings/test_anon_access.test_delete_manifest.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_delete_manifest.yaml deleted file mode 100644 index 3fe4dffdc2f1..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_delete_manifest.yaml +++ /dev/null @@ -1,266 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:48 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '112' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:48 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "tag": {"name": "latest", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-17T21:45:13.2242768Z", "lastUpdateTime": "2021-11-17T21:45:13.2242768Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:48 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/library%2Fhello-world/manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/hello-world", "Action": "delete"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:48 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Adelete&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '105' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:48 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.366667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/library%2Fhello-world/manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/hello-world", "Action": "delete"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:48 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_delete_repository.yaml deleted file mode 100644 index b6546765bc3d..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_delete_repository.yaml +++ /dev/null @@ -1,136 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/hello-world", "Action": "delete"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:48 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Adelete&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '105' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:49 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/hello-world", "Action": "delete"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:49 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_delete_tag.yaml deleted file mode 100644 index b074d6085d84..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_delete_tag.yaml +++ /dev/null @@ -1,136 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/hello-world", "Action": "delete"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:49 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Adelete&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '105' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:50 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/hello-world", "Action": "delete"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:50 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_manifest_properties.yaml deleted file mode 100644 index 9f8d0254851b..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_manifest_properties.yaml +++ /dev/null @@ -1,275 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:51 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '112' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:51 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "tag": {"name": "latest", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-17T21:45:13.2242768Z", "lastUpdateTime": "2021-11-17T21:45:13.2242768Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:51 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:51 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '112' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:51 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.333333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-17T21:45:12.4093699Z", "lastUpdateTime": - "2021-11-17T21:45:12.4093699Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest", "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1849' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:51 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_repository_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_repository_properties.yaml deleted file mode 100644 index 146dfcd1f6cf..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_get_repository_properties.yaml +++ /dev/null @@ -1,131 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:51 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '112' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:52 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.65' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "createdTime": "2021-11-17T21:45:12.0019042Z", "lastUpdateTime": "2021-11-17T21:45:09.8470312Z", - "manifestCount": 12, "tagCount": 5, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '306' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:52 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_manifest_properties.yaml deleted file mode 100644 index 2de78a435544..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_manifest_properties.yaml +++ /dev/null @@ -1,222 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:52 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '112' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:52 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.45' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184", - "imageSize": 5216, "createdTime": "2021-11-17T21:45:14.4588314Z", "lastUpdateTime": - "2021-11-17T21:45:14.4588314Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/17/2021 - 11:53:00 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", - "imageSize": 4727, "createdTime": "2021-11-17T21:45:12.4798717Z", "lastUpdateTime": - "2021-11-17T21:45:12.4798717Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/17/2021 - 11:53:02 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c", - "imageSize": 5691, "createdTime": "2021-11-17T21:45:12.0727486Z", "lastUpdateTime": - "2021-11-17T21:45:12.0727486Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/17/2021 - 11:53:00 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "imageSize": 5850, "createdTime": "2021-11-17T21:45:12.8350035Z", "lastUpdateTime": - "2021-11-17T21:45:12.8350035Z", "architecture": "amd64", "os": "windows", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/17/2021 - 11:53:05 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:98c9722322be649df94780d3fbe594fce7996234b259f27eac9428b84050c849", - "imageSize": 4996, "createdTime": "2021-11-17T21:45:12.6251163Z", "lastUpdateTime": - "2021-11-17T21:45:12.6251163Z", "architecture": "riscv64", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/17/2021 - 11:53:00 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b836bb24a270b9cc935962d8228517fde0f16990e88893d935efcb1b14c0017a", - "imageSize": 5925, "createdTime": "2021-11-17T21:45:12.1468322Z", "lastUpdateTime": - "2021-11-17T21:45:12.1468322Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/17/2021 - 11:53:02 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:c2f204d26b4ea353651385001bb6bc371d8c4edcd9daf61d00ad365d927e00c0", - "imageSize": 6088, "createdTime": "2021-11-17T21:45:16.4653587Z", "lastUpdateTime": - "2021-11-17T21:45:16.4653587Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/17/2021 - 11:53:04 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:c7b6944911848ce39b44ed660d95fb54d69bbd531de724c7ce6fc9f743c0b861", - "imageSize": 5270, "createdTime": "2021-11-17T21:45:13.2646659Z", "lastUpdateTime": - "2021-11-17T21:45:13.2646659Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/17/2021 - 11:53:00 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "imageSize": 5832, "createdTime": "2021-11-17T21:45:13.709065Z", "lastUpdateTime": - "2021-11-17T21:45:13.709065Z", "architecture": "amd64", "os": "windows", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/17/2021 - 11:53:00 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-17T21:45:12.4093699Z", "lastUpdateTime": - "2021-11-17T21:45:12.4093699Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest", "v1", "v2", "v3", "v4"], "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"digest": - "sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c", - "imageSize": 5000, "createdTime": "2021-11-17T21:45:12.0255835Z", "lastUpdateTime": - "2021-11-17T21:45:12.0255835Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/17/2021 - 11:53:07 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4", - "imageSize": 4473, "createdTime": "2021-11-17T21:45:12.8700075Z", "lastUpdateTime": - "2021-11-17T21:45:12.8700075Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/17/2021 - 11:53:00 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:53 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_manifests.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_manifests.yaml deleted file mode 100644 index 7b28406164ce..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_manifests.yaml +++ /dev/null @@ -1,188 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 19 May 2021 21:19: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=seankaneanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '108' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:19:10 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.65' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "manifests": [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "imageSize": 525, "createdTime": "2021-05-11T21:17:46.894001Z", "lastUpdateTime": - "2021-05-11T21:17:46.894001Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "imageSize": 525, "createdTime": "2021-05-11T21:17:47.5289051Z", "lastUpdateTime": - "2021-05-11T21:17:47.5289051Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "imageSize": 5325, "createdTime": "2021-05-13T16:00:26.4243258Z", "lastUpdateTime": - "2021-05-13T16:00:26.4243258Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest", "v1", "v2", "v3", "v4"], "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}, {"digest": - "sha256:7fed95756fe4ebeb6eb1d82c2176e0800a02807cc66fe48beb179e57c54ddcf1", - "imageSize": 1125, "createdTime": "2021-05-13T16:00:27.8207151Z", "lastUpdateTime": - "2021-05-13T16:00:27.8207151Z", "architecture": "amd64", "os": "windows", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "imageSize": 525, "createdTime": "2021-05-11T21:17:47.1680665Z", "lastUpdateTime": - "2021-05-11T21:17:47.1680665Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "imageSize": 525, "createdTime": "2021-05-11T21:17:46.4820084Z", "lastUpdateTime": - "2021-05-11T21:17:46.4820084Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "imageSize": 525, "createdTime": "2021-05-11T21:17:47.4688177Z", "lastUpdateTime": - "2021-05-11T21:17:47.4688177Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "imageSize": 525, "createdTime": "2021-05-11T21:17:47.6387006Z", "lastUpdateTime": - "2021-05-11T21:17:47.6387006Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "imageSize": 525, "createdTime": "2021-05-11T21:17:46.9385336Z", "lastUpdateTime": - "2021-05-11T21:17:46.9385336Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "imageSize": 525, "createdTime": "2021-05-11T21:17:46.3092689Z", "lastUpdateTime": - "2021-05-11T21:17:46.3092689Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:ea0cfb27fd41ea0405d3095880c1efa45710f5bcdddb7d7d5a7317ad4825ae14", - "imageSize": 1125, "createdTime": "2021-05-11T21:17:47.7429606Z", "lastUpdateTime": - "2021-05-11T21:17:47.7429606Z", "architecture": "amd64", "os": "windows", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:f2266cbfc127c960fd30e76b7c792dc23b588c0db76233517e1891a4e357d519", - "imageSize": 5325, "createdTime": "2021-05-11T21:17:46.7851308Z", "lastUpdateTime": - "2021-05-11T21:17:46.7851308Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}]}' - headers: - 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: - - Wed, 19 May 2021 21:19:11 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_repository_names.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_repository_names.yaml deleted file mode 100644 index 8fbe8cd39873..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_repository_names.yaml +++ /dev/null @@ -1,129 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:55 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=registry%3Acatalog%3A%2A&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '86' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:56 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2b381dc2", "repo63d41ad4"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:56 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_repository_names_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_repository_names_by_page.yaml deleted file mode 100644 index 26d4c7d09064..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_repository_names_by_page.yaml +++ /dev/null @@ -1,384 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=registry%3Acatalog%3A%2A&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '86' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:56 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.65' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 - response: - body: - string: '{"repositories": ["library/alpine", "library/busybox"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '54' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:56 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=registry%3Acatalog%3A%2A&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '86' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:56 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= - response: - body: - string: '{"repositories": ["library/hello-world", "repo2b381dc2"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '56' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:56 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2b381dc2&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=registry%3Acatalog%3A%2A&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '86' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:56 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2b381dc2&n=2&orderby= - response: - body: - string: '{"repositories": ["repo63d41ad4"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '34' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:56 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_tag_properties.yaml deleted file mode 100644 index 8fd89d8140af..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_tag_properties.yaml +++ /dev/null @@ -1,148 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '112' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:57 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.65' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "tags": [{"name": "latest", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-17T21:45:13.2242768Z", "lastUpdateTime": "2021-11-17T21:45:13.2242768Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v1", "digest": - "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-17T21:45:13.517791Z", "lastUpdateTime": "2021-11-17T21:45:13.517791Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v2", "digest": - "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-17T21:45:12.5265649Z", "lastUpdateTime": "2021-11-17T21:45:12.5265649Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v3", "digest": - "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-17T21:45:12.9883554Z", "lastUpdateTime": "2021-11-17T21:45:12.9883554Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v4", "digest": - "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-17T21:45:12.5646706Z", "lastUpdateTime": "2021-11-17T21:45:12.5646706Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1633' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:57 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_tags.yaml deleted file mode 100644 index 56d68788da5d..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_list_tags.yaml +++ /dev/null @@ -1,148 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 19 May 2021 21:19:24 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=seankaneanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '108' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:19:24 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/hello-world", - "tags": [{"name": "latest", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-11T21:17:46.0365675Z", "lastUpdateTime": "2021-05-13T16:00:26.9280451Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v1", "digest": - "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-11T21:17:48.0232569Z", "lastUpdateTime": "2021-05-13T16:00:27.4936591Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v2", "digest": - "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-11T21:17:47.2166815Z", "lastUpdateTime": "2021-05-13T16:00:27.2638444Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v3", "digest": - "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-11T21:17:48.5358052Z", "lastUpdateTime": "2021-05-13T16:00:27.4270294Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "v4", "digest": - "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-11T21:17:48.2377521Z", "lastUpdateTime": "2021-05-13T16:00:28.033089Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1630' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:19:24 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_update_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_update_manifest_properties.yaml deleted file mode 100644 index 6178bb4cf8ac..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_update_manifest_properties.yaml +++ /dev/null @@ -1,545 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '112' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:57 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.4' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "tag": {"name": "latest", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-17T21:45:13.2242768Z", "lastUpdateTime": "2021-11-17T21:45:13.2242768Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:57 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '112' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:57 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.383333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-17T21:45:12.4093699Z", "lastUpdateTime": - "2021-11-17T21:45:12.4093699Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest", "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1849' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:57 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '112' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:57 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.366667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "tag": {"name": "latest", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-17T21:45:13.2242768Z", "lastUpdateTime": "2021-11-17T21:45:13.2242768Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:57 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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '113' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:57 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.35' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_update_repository_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_update_repository_properties.yaml deleted file mode 100644 index 97ff231b6702..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_update_repository_properties.yaml +++ /dev/null @@ -1,271 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '112' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:57 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.65' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "createdTime": "2021-11-17T21:45:12.0019042Z", "lastUpdateTime": "2021-11-17T21:45:09.8470312Z", - "manifestCount": 12, "tagCount": 5, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '306' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:58 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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '113' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:58 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_update_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_update_tag_properties.yaml deleted file mode 100644 index 89b4fb040c91..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access.test_update_tag_properties.yaml +++ /dev/null @@ -1,272 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_read&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '112' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:58 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.65' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "tag": {"name": "latest", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-17T21:45:13.2242768Z", "lastUpdateTime": "2021-11-17T21:45:13.2242768Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Wed, 17 Nov 2021 23:53:58 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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=yallacrtestsanon.azurecr.io&scope=repository%3Alibrary%2Fhello-world%3Ametadata_write&grant_type=password - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '113' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:53:58 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_delete_manifest.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_delete_manifest.json new file mode 100644 index 000000000000..e4841e9657f7 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_delete_manifest.json @@ -0,0 +1,248 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "4b829afc-255d-4d06-a9e0-2a1c153da8b0" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "bbd46242-f593-4a20-a0b7-a13ce6c35cb9", + "x-ms-ratelimit-remaining-calls-per-second": "166.033333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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": "ecb59c15-293e-449e-8900-6205621d4000" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "latest", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:52:31.3066134Z", + "lastUpdateTime": "2022-07-08T21:52:31.3066134Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/library%2Fhello-world/manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c064ea1e-9747-45d2-ac4d-1e7f19908658" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "105", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Adelete\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e4dc9481-f309-45bc-ba30-53b2f0e7014b", + "x-ms-ratelimit-remaining-calls-per-second": "166.016667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/library%2Fhello-world/manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:delete\u0022,error=\u0022insufficient_scope\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "9c902b27-2842-4fb1-a0db-17f2dbae0aca" + }, + "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" + } + ] + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_delete_repository.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_delete_repository.json new file mode 100644 index 000000000000..dba5f2b7776b --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_delete_repository.json @@ -0,0 +1,127 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e9235224-36be-4be2-8f5f-eac5f7beb171" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "105", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Adelete\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "65ec727a-ed99-42ed-846d-ee3265d1613d", + "x-ms-ratelimit-remaining-calls-per-second": "166.066667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:delete\u0022,error=\u0022insufficient_scope\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c31bae63-d316-47fe-bf7f-4141b2490285" + }, + "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" + } + ] + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_delete_tag.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_delete_tag.json new file mode 100644 index 000000000000..9b5ed07f7f06 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_delete_tag.json @@ -0,0 +1,127 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b3dceed6-90f5-4a5d-83b4-454e98dd02ff" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "105", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Adelete\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "94641762-85eb-41dc-958d-ed42c289c45f", + "x-ms-ratelimit-remaining-calls-per-second": "166.05" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:delete\u0022,error=\u0022insufficient_scope\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "097633f5-b817-428e-8e7c-1eaeca6194d4" + }, + "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" + } + ] + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_get_manifest_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_get_manifest_properties.json new file mode 100644 index 000000000000..1080e0df288d --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_get_manifest_properties.json @@ -0,0 +1,287 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/alpine:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "3ff36195-203a-4acd-a5a3-7527e04dc78a" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/alpine", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "107", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Falpine%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:00 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2e555d3f-1e08-4449-b85c-07b91f72168e", + "x-ms-ratelimit-remaining-calls-per-second": "166.116667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44:00 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": "192bd4a9-0372-4c4a-8931-fd3e14c8849d" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/alpine", + "tag": { + "name": "latest", + "digest": "sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c", + "createdTime": "2022-07-08T21:52:52.9138775Z", + "lastUpdateTime": "2022-07-08T21:52:52.9138775Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine/_manifests/sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/alpine:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e9acc661-3eae-4ae5-9216-4a5db688f7e4" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/alpine", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "107", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Falpine%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d70e7362-c141-4250-84f1-f15e2f214ce1", + "x-ms-ratelimit-remaining-calls-per-second": "166.1" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine/_manifests/sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1334", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44: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": "7a856ab7-1d55-49e8-8d3e-24bc05e16254" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/alpine", + "manifest": { + "digest": "sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c", + "imageSize": 18698942, + "createdTime": "2022-07-08T21:52:52.8420545Z", + "lastUpdateTime": "2022-07-08T21:52:52.8420545Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + }, + "references": [ + { + "digest": "sha256:4ff3ca91275773af45cb4b0834e12b7eb47d1c18f770a0b151381cd227f4c253", + "architecture": "amd64", + "os": "linux" + }, + { + "digest": "sha256:3c66139adbd2513f9fc56eff206513ffc8356b282bed31a4e74c7eb926b850aa", + "architecture": "arm", + "os": "linux" + }, + { + "digest": "sha256:0615cdd745d0b78e7e6ac3a7b1f02e4daefa664eae0324120955f4e4c91bea3f", + "architecture": "arm", + "os": "linux" + }, + { + "digest": "sha256:c3c58223e2af75154c4a7852d6924b4cc51a00c821553bbd9b3319481131b2e0", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:72af6266bafde8c78d5f20a2a85d0576533ce1ecd6ed8bcf7baf62a743f3b24d", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:0f3aeb63bb71ccd3ba0020772f5617e50946a4f2713953c3f494203f1544ea03", + "architecture": "ppc64le", + "os": "linux" + }, + { + "digest": "sha256:83167bc8418071fc178d191ed604f44792c94ad3c3ac26350c29d2445f6a9644", + "architecture": "s390x", + "os": "linux" + } + ] + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_get_repository_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_get_repository_properties.json new file mode 100644 index 000000000000..535a7e8c0181 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_get_repository_properties.json @@ -0,0 +1,123 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/alpine:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "0aecc212-d5cd-410f-8018-74e984c64dd6" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/alpine", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "107", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Falpine%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:00 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "294a0c0b-8471-43a9-8022-4e4057505afa", + "x-ms-ratelimit-remaining-calls-per-second": "166.15" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "300", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:00 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": "7efeb7fb-c48e-4840-b4f3-e10b945c40fb" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/alpine", + "createdTime": "2022-07-08T21:52:52.8262435Z", + "lastUpdateTime": "2022-07-08T21:52:51.4345352Z", + "manifestCount": 8, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_list_manifest_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_list_manifest_properties.json new file mode 100644 index 000000000000..b82ee36ce9d9 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_list_manifest_properties.json @@ -0,0 +1,250 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine/_manifests", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/alpine:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "040fe910-221d-484c-8a4b-07aec3f4a7f6" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/alpine", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "107", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Falpine%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:00 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "747b606f-9a54-46c3-b12e-4e9ffc503d22", + "x-ms-ratelimit-remaining-calls-per-second": "166.133333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine/_manifests", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44:00 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": "8a695186-7587-48e3-9661-84ef73302a50" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/alpine", + "manifests": [ + { + "digest": "sha256:0615cdd745d0b78e7e6ac3a7b1f02e4daefa664eae0324120955f4e4c91bea3f", + "imageSize": 2413655, + "createdTime": "2022-07-08T21:52:54.4062721Z", + "lastUpdateTime": "2022-07-08T21:52:54.4062721Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0f3aeb63bb71ccd3ba0020772f5617e50946a4f2713953c3f494203f1544ea03", + "imageSize": 2791747, + "createdTime": "2022-07-08T21:52:54.306015Z", + "lastUpdateTime": "2022-07-08T21:52:54.306015Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:3c66139adbd2513f9fc56eff206513ffc8356b282bed31a4e74c7eb926b850aa", + "imageSize": 2608155, + "createdTime": "2022-07-08T21:52:54.0889246Z", + "lastUpdateTime": "2022-07-08T21:52:54.0889246Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:4ff3ca91275773af45cb4b0834e12b7eb47d1c18f770a0b151381cd227f4c253", + "imageSize": 2800889, + "createdTime": "2022-07-08T21:52:54.0094672Z", + "lastUpdateTime": "2022-07-08T21:52:54.0094672Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c", + "imageSize": 18698942, + "createdTime": "2022-07-08T21:52:52.8420545Z", + "lastUpdateTime": "2022-07-08T21:52:52.8420545Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:72af6266bafde8c78d5f20a2a85d0576533ce1ecd6ed8bcf7baf62a743f3b24d", + "imageSize": 2803885, + "createdTime": "2022-07-08T21:52:54.2757517Z", + "lastUpdateTime": "2022-07-08T21:52:54.2757517Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:83167bc8418071fc178d191ed604f44792c94ad3c3ac26350c29d2445f6a9644", + "imageSize": 2582494, + "createdTime": "2022-07-08T21:52:54.244063Z", + "lastUpdateTime": "2022-07-08T21:52:54.244063Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:c3c58223e2af75154c4a7852d6924b4cc51a00c821553bbd9b3319481131b2e0", + "imageSize": 2696479, + "createdTime": "2022-07-08T21:52:54.1974844Z", + "lastUpdateTime": "2022-07-08T21:52:54.1974844Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_list_repository_names.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_list_repository_names.json new file mode 100644 index 000000000000..54f1f2f69086 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_list_repository_names.json @@ -0,0 +1,146 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d2674116-bd63-421f-98d5-a65dfe1801c7" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:57 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "fff49396-16c6-4d43-ada1-4ad700d14430", + "x-ms-ratelimit-remaining-calls-per-second": "166.45" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "527", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:57 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": "9fe4b260-61d0-4064-9d83-79f49bf5d88b" + }, + "ResponseBody": { + "repositories": [ + "library/alpine", + "library/busybox", + "library/hello-world", + "repo141645c0", + "repo1a1f4613", + "repo1ded4145", + "repo1e243c5e", + "repo220636ca", + "repo23f64198", + "repo2d863abf", + "repo2deb42ef", + "repo3ea338e5", + "repo571f3e74", + "repo5b014628", + "repo5b823eaa", + "repo5c164001", + "repo5c6c3e66", + "repo605d41ad", + "repo8725450a", + "repo99f2408f", + "repo9a4c3ebe", + "repoa4a73b86", + "repoa693421c", + "repoa81d3b45", + "repob25d43a6", + "repod29b3f2b", + "repod8bd3da1", + "repodb213d60", + "repodbf03f3a", + "repode7a40d9", + "repoe63342a4", + "repof04e3a43", + "to_be_deleted" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_list_repository_names_by_page.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_list_repository_names_by_page.json new file mode 100644 index 000000000000..b2985ecf1828 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_list_repository_names_by_page.json @@ -0,0 +1,1890 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?n=2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "63d49e8e-fbf3-4da8-ab77-0cb1ae492ef5" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:57 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c28be749-0296-4714-93f1-650725cd4c47", + "x-ms-ratelimit-remaining-calls-per-second": "166.433333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?n=2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "54", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:57 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=library%2Fbusybox\u0026n=2\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": "6e0ef045-a666-431b-a74e-acdb26b20e7e" + }, + "ResponseBody": { + "repositories": [ + "library/alpine", + "library/busybox" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "26be7d0f-808f-453f-8547-cbe183b7be5b" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7bd251b6-86b8-4320-8b46-b56cf2b84960", + "x-ms-ratelimit-remaining-calls-per-second": "166.416667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "56", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo141645c0\u0026n=2\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": "9a6ee3ba-9f48-4a92-bfc3-67dc6311d4e0" + }, + "ResponseBody": { + "repositories": [ + "library/hello-world", + "repo141645c0" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo141645c0\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8096a0fb-ba11-4e31-97e6-1b83f7713986" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "81d3c4c3-f2ec-45c3-88ef-7a708528a550", + "x-ms-ratelimit-remaining-calls-per-second": "166.4" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo141645c0\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo1ded4145\u0026n=2\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": "81d969fc-d5ae-48ad-85f4-8501077d30ea" + }, + "ResponseBody": { + "repositories": [ + "repo1a1f4613", + "repo1ded4145" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo1ded4145\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "76580d04-6d61-47bf-8860-fdef6c51703b" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3ea3ec4e-de63-44c6-8d4e-c067a29bde18", + "x-ms-ratelimit-remaining-calls-per-second": "166.383333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo1ded4145\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo220636ca\u0026n=2\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": "6565bcd2-1efb-4408-8603-148624a34761" + }, + "ResponseBody": { + "repositories": [ + "repo1e243c5e", + "repo220636ca" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo220636ca\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a95b029d-dea1-4eae-94d5-38b85f531c73" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a0d794ca-47e6-46d5-ba05-d590b40f94f6", + "x-ms-ratelimit-remaining-calls-per-second": "166.366667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo220636ca\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo2d863abf\u0026n=2\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": "e7189831-8a7f-4fca-b842-2c9ecc3c4cf8" + }, + "ResponseBody": { + "repositories": [ + "repo23f64198", + "repo2d863abf" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2d863abf\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "9bae9280-d078-41dd-aac7-88b137487e9a" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "42aade4a-b964-43d2-b309-1c277c6e1d96", + "x-ms-ratelimit-remaining-calls-per-second": "166.35" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2d863abf\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo3ea338e5\u0026n=2\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": "d504215a-f1ab-4b17-a941-625003732241" + }, + "ResponseBody": { + "repositories": [ + "repo2deb42ef", + "repo3ea338e5" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3ea338e5\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ec66a2f1-945b-4950-98a6-4a424573612f" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "654f0817-5b6e-48aa-a84a-577e41611cf5", + "x-ms-ratelimit-remaining-calls-per-second": "166.333333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3ea338e5\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo5b014628\u0026n=2\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": "a3296b3d-2a74-4137-ba12-6cbb4a3204c5" + }, + "ResponseBody": { + "repositories": [ + "repo571f3e74", + "repo5b014628" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5b014628\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f3b76383-72f4-4001-be92-9f0f8697f6a9" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8da45eff-d56f-4629-9078-f1f34e3cfec4", + "x-ms-ratelimit-remaining-calls-per-second": "166.316667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5b014628\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo5c164001\u0026n=2\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": "9be7e8a9-2ae2-41d7-822c-a2823f6fe21e" + }, + "ResponseBody": { + "repositories": [ + "repo5b823eaa", + "repo5c164001" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5c164001\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "bd61cc63-455c-42a5-8921-dddb502e99fd" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "fe6f5956-1157-42c9-9ccd-debdd09a9163", + "x-ms-ratelimit-remaining-calls-per-second": "166.3" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5c164001\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo605d41ad\u0026n=2\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": "e2e247f3-477d-4363-8799-28fba292f88f" + }, + "ResponseBody": { + "repositories": [ + "repo5c6c3e66", + "repo605d41ad" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo605d41ad\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "0d416f8f-247d-463e-921f-8ca749cf4d50" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5e810374-ab9c-412f-bca9-b18af3eb2f20", + "x-ms-ratelimit-remaining-calls-per-second": "166.283333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo605d41ad\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:58 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo99f2408f\u0026n=2\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": "81826b6b-7f4c-4480-8a3a-81059309b22a" + }, + "ResponseBody": { + "repositories": [ + "repo8725450a", + "repo99f2408f" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo99f2408f\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "cc8c56d3-ace6-4996-9c50-4f84db613c1d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8188bcb1-d6c0-4d51-9854-8e7e495d0d43", + "x-ms-ratelimit-remaining-calls-per-second": "166.266667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo99f2408f\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:59 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repoa4a73b86\u0026n=2\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": "758320ad-6dd4-4763-9006-d6ae7567e95b" + }, + "ResponseBody": { + "repositories": [ + "repo9a4c3ebe", + "repoa4a73b86" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa4a73b86\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "255d7cad-14c7-4f60-894f-96e0512371e6" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "1661e1ee-b80c-4def-917c-80e85fe6b029", + "x-ms-ratelimit-remaining-calls-per-second": "166.25" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa4a73b86\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:59 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repoa81d3b45\u0026n=2\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": "85b2fab4-e875-4cd5-8575-17a169487edb" + }, + "ResponseBody": { + "repositories": [ + "repoa693421c", + "repoa81d3b45" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa81d3b45\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ad1c0aac-5577-406d-812a-2b9e977b8187" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3ff96b64-b886-48e3-8b50-d94c6766d705", + "x-ms-ratelimit-remaining-calls-per-second": "166.233333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa81d3b45\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:59 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repod29b3f2b\u0026n=2\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": "a278ad60-12f0-4d53-89c9-a5002e21eb85" + }, + "ResponseBody": { + "repositories": [ + "repob25d43a6", + "repod29b3f2b" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repod29b3f2b\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a9c25d9e-9b53-4ab0-8022-d1c7c6f211b2" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ac5a2924-b3c5-4a8b-925a-334bd46ebec6", + "x-ms-ratelimit-remaining-calls-per-second": "166.216667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repod29b3f2b\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:59 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repodb213d60\u0026n=2\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": "b9b4dc0c-7c59-4894-8cba-6f3971ea1636" + }, + "ResponseBody": { + "repositories": [ + "repod8bd3da1", + "repodb213d60" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repodb213d60\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "2982db54-dea5-44b5-9eb4-971205d260e4" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "cf28e798-0479-4003-8ec9-2c13b6bb29dc", + "x-ms-ratelimit-remaining-calls-per-second": "166.2" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repodb213d60\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:59 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repode7a40d9\u0026n=2\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": "35dc9754-37c9-4440-b2b4-d234de3c0817" + }, + "ResponseBody": { + "repositories": [ + "repodbf03f3a", + "repode7a40d9" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repode7a40d9\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "fd7419b3-3ba4-4bfd-9e0c-f8cedb96f40c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "19910c19-ec33-4cb8-938e-93e8d8983908", + "x-ms-ratelimit-remaining-calls-per-second": "166.183333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repode7a40d9\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:59 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repof04e3a43\u0026n=2\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": "2bd76bd4-5cb8-4731-9b91-9764157dd0fe" + }, + "ResponseBody": { + "repositories": [ + "repoe63342a4", + "repof04e3a43" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repof04e3a43\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:43: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b5f8d9bb-ee38-4b53-89f3-844a1d457539" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "86", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "79f9242c-5f8a-49a2-8cf6-69b4857f0cd4", + "x-ms-ratelimit-remaining-calls-per-second": "166.166667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repof04e3a43\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "35", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:43: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": "d5382423-341d-4b86-9791-47042e464ba3" + }, + "ResponseBody": { + "repositories": [ + "to_be_deleted" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_list_tag_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_list_tag_properties.json new file mode 100644 index 000000000000..f9e45a33725c --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_list_tag_properties.json @@ -0,0 +1,128 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine/_tags", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/alpine:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e2819df0-812c-465e-805c-4d181c50c167" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/alpine", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "107", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Falpine%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "226c6fda-54bc-43f4-aa8c-182adad604ee", + "x-ms-ratelimit-remaining-calls-per-second": "166.083333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine/_tags", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "394", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44: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": "8b1ffedb-4c86-4d1f-bd8a-f6e1868a5404" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/alpine", + "tags": [ + { + "name": "latest", + "digest": "sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c", + "createdTime": "2022-07-08T21:52:52.9138775Z", + "lastUpdateTime": "2022-07-08T21:52:52.9138775Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_update_manifest_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_update_manifest_properties.json new file mode 100644 index 000000000000..0b7d69c26839 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_update_manifest_properties.json @@ -0,0 +1,566 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f2f1aaa0-8f4d-429a-b128-f4e09f992990" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "close", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2853bae1-e5d9-4f4b-aa9d-5e081035946b", + "x-ms-ratelimit-remaining-calls-per-second": "165.933333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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": "f54b9bfc-8ab0-47f7-8a6d-f0c305ec2cfc" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "latest", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:52:31.3066134Z", + "lastUpdateTime": "2022-07-08T21:52:31.3066134Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "bb3320ec-a6e0-4047-a360-27e94950dc85" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ca30e9c0-e30c-46b0-a84e-ae1ae59f96f8", + "x-ms-ratelimit-remaining-calls-per-second": "166.516667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1849", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44: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": "b67c86be-3280-4eb0-be9b-516617b63745" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "manifest": { + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "imageSize": 61676, + "createdTime": "2022-07-08T21:52:31.2330082Z", + "lastUpdateTime": "2022-07-08T21:52:31.2330082Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest", + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:9ec668ee97c20731eb4f4f55f6248ac6b83a0d2e1add2110e6b5d62191f66dd7", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:fa36b268301e951714b69bb6db7680639cdc1b7381cfaac12e98e09f94fdc0d6", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "96a50775-1f68-4f53-81c9-1880807dfe52" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d420a4fd-2e36-4cff-9ae5-fdc5d7942851", + "x-ms-ratelimit-remaining-calls-per-second": "166.166667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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": "0ef87775-6dd6-43fb-aa02-e3e4a0e6d09c" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "latest", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:52:31.3066134Z", + "lastUpdateTime": "2022-07-08T21:52:31.3066134Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e31d8bb7-11fa-48f1-8712-a84552ae1eba" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "113", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3b37f25f-4917-4a0b-b17f-40a3cd01d7f2", + "x-ms-ratelimit-remaining-calls-per-second": "166.15" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.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": "b7700327-b847-4bb3-88e8-2cd2a96be2cd" + }, + "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/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_update_repository_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_update_repository_properties.json new file mode 100644 index 000000000000..fc12a12946d4 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_update_repository_properties.json @@ -0,0 +1,257 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7ec7c2ea-03f8-4a5b-8c94-6b47735d3542" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "89a839e9-7990-4534-a611-0aa67193ec53", + "x-ms-ratelimit-remaining-calls-per-second": "166" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "306", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44: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": "9de0f580-8959-48c5-a5d0-5c21ca4ca544" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "createdTime": "2022-07-08T21:52:31.1999242Z", + "lastUpdateTime": "2022-07-08T21:52:28.9476933Z", + "manifestCount": 12, + "tagCount": 5, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "624befa9-f60e-4e0c-a209-4973282120c1" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "113", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a8441786-c6a3-471a-ba5d-a56eeaccfb95", + "x-ms-ratelimit-remaining-calls-per-second": "165.983333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.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": "2c4164e2-8bb2-497b-88b6-d4ff2f53ad7a" + }, + "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/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_update_tag_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_update_tag_properties.json new file mode 100644 index 000000000000..9751b2687317 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.pyTestContainerRegistryClientAsynctest_update_tag_properties.json @@ -0,0 +1,260 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "509a369b-e512-4ff3-8adb-83bfe066cae5" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "112", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_read\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d2f4035b-1bde-403a-8c56-c409d8ef7d8c", + "x-ms-ratelimit-remaining-calls-per-second": "165.966667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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": "1aa1e337-f193-4bab-9fe1-826ec254ec3d" + }, + "ResponseBody": { + "registry": "yallacrtestsanon.azurecr.io", + "imageName": "library/hello-world", + "tag": { + "name": "latest", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:52:31.3066134Z", + "lastUpdateTime": "2022-07-08T21:52:31.3066134Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c935ed67-2fb5-438c-b3e2-294b76ead59a" + }, + "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://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "113", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtestsanon.azurecr.io\u0026scope=repository%3Alibrary%2Fhello-world%3Ametadata_write\u0026grant_type=password", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "256cf8e5-938c-4963-a103-e3013807a2fc", + "x-ms-ratelimit-remaining-calls-per-second": "165.95" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtestsanon.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": "7cb63a99-ca5c-4b06-9ca4-ddd81d6880cc" + }, + "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/azure-containerregistry/tests/recordings/test_anon_access_async.test_delete_manifest.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_delete_manifest.yaml deleted file mode 100644 index 92aeb51b0268..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_delete_manifest.yaml +++ /dev/null @@ -1,179 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '222' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:17 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/hello-world:metadata_read - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:17 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "tag": {"name": "latest", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T20:43:42.6193188Z", "lastUpdateTime": "2021-11-11T20:43:42.6193188Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '396' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/library%2Fhello-world/manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/hello-world", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/v2/library%2Fhello-world/manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/hello-world:delete - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/library%2Fhello-world/manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/hello-world", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/v2/library%2Fhello-world/manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_delete_repository.yaml deleted file mode 100644 index e3ffadffab1b..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_delete_repository.yaml +++ /dev/null @@ -1,90 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/hello-world", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/hello-world:delete - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/hello-world", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_delete_tag.yaml deleted file mode 100644 index d388b7f120c5..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_delete_tag.yaml +++ /dev/null @@ -1,90 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/hello-world", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/hello-world:delete - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/hello-world", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_manifest_properties.yaml deleted file mode 100644 index c50ed920f7e2..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_manifest_properties.yaml +++ /dev/null @@ -1,189 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/alpine", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '217' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Falpine/_tags/latest?api-version=2021-07-01 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/alpine:metadata_read - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/alpine", - "tag": {"name": "latest", "digest": "sha256:00abeca57ca04b7672955453580fd51ab9ad1b4c5571b1e7643becaadb81b749", - "createdTime": "2021-11-11T20:44:04.4470641Z", "lastUpdateTime": "2021-11-12T21:33:16.9852008Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '391' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Falpine/_tags/latest?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine/_manifests/sha256:00abeca57ca04b7672955453580fd51ab9ad1b4c5571b1e7643becaadb81b749?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/alpine", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '217' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Falpine/_manifests/sha256:00abeca57ca04b7672955453580fd51ab9ad1b4c5571b1e7643becaadb81b749?api-version=2021-07-01 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/alpine:metadata_read - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine/_manifests/sha256:00abeca57ca04b7672955453580fd51ab9ad1b4c5571b1e7643becaadb81b749?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/alpine", - "manifest": {"digest": "sha256:00abeca57ca04b7672955453580fd51ab9ad1b4c5571b1e7643becaadb81b749", - "imageSize": 18882873, "createdTime": "2021-11-12T21:33:17.0287892Z", "lastUpdateTime": - "2021-11-12T21:33:17.0287892Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}, "references": [{"digest": - "sha256:5e604d3358ab7b6b734402ce2e19ddd822a354dc14843f34d36c603521dbb4f9", - "architecture": "amd64", "os": "linux"}, {"digest": "sha256:07bf76961aa4c7d4b6648087563dc15d5374e1ca10b16f1643d70c6d7d541ee6", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:8595fe2e98735305ca7cbc68399d428d8bf1857daf13511db56a43e079ef960b", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:b4da1299e77c63f8706427cd39154e726a9b7646d29e2fc05d65b513373f9f5e", - "architecture": "arm64", "os": "linux"}, {"digest": "sha256:40868330fd6034ce9c0ae903ac4e8161ac47cf6c58e4c440f22323ebab51dcba", - "architecture": "386", "os": "linux"}, {"digest": "sha256:9bea59997a84beb47a8cc7ddb11abc957b141e8160852aa93b4cf60659016b53", - "architecture": "ppc64le", "os": "linux"}, {"digest": "sha256:55b73afffff94e6e4a1cf03df25007e867f02b1a59ad0e1bd7f444615d173192", - "architecture": "s390x", "os": "linux"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1334' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:18 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Falpine/_manifests/sha256:00abeca57ca04b7672955453580fd51ab9ad1b4c5571b1e7643becaadb81b749?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_repository_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_repository_properties.yaml deleted file mode 100644 index ea567f0e3395..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_get_repository_properties.yaml +++ /dev/null @@ -1,90 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/alpine", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '217' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:19 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/alpine:metadata_read - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:19 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/alpine", - "createdTime": "2021-11-11T20:44:04.3156636Z", "lastUpdateTime": "2021-11-12T21:33:14.9110154Z", - "manifestCount": 15, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '301' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:19 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_manifest_properties.yaml deleted file mode 100644 index 0a8f963cbaa9..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_manifest_properties.yaml +++ /dev/null @@ -1,188 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine/_manifests - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/alpine", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '217' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:19 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Falpine/_manifests -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/alpine:metadata_read - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:19 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine/_manifests - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/alpine", - "manifests": [{"digest": "sha256:00abeca57ca04b7672955453580fd51ab9ad1b4c5571b1e7643becaadb81b749", - "imageSize": 18882873, "createdTime": "2021-11-12T21:33:17.0287892Z", "lastUpdateTime": - "2021-11-12T21:33:17.0287892Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:07bf76961aa4c7d4b6648087563dc15d5374e1ca10b16f1643d70c6d7d541ee6", - "imageSize": 2637404, "createdTime": "2021-11-12T21:33:18.9704597Z", "lastUpdateTime": - "2021-11-12T21:33:18.9704597Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:18c29393a090ba5cde8a5f00926e9e419f47cfcfd206cc3f7f590e91b19adfe9", - "imageSize": 2629459, "createdTime": "2021-11-11T20:44:05.90856Z", "lastUpdateTime": - "2021-11-11T20:44:05.90856Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:40868330fd6034ce9c0ae903ac4e8161ac47cf6c58e4c440f22323ebab51dcba", - "imageSize": 2832945, "createdTime": "2021-11-12T21:33:18.206197Z", "lastUpdateTime": - "2021-11-12T21:33:18.206197Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:55b73afffff94e6e4a1cf03df25007e867f02b1a59ad0e1bd7f444615d173192", - "imageSize": 2611277, "createdTime": "2021-11-12T21:33:18.0496024Z", "lastUpdateTime": - "2021-11-12T21:33:18.0496024Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:5e604d3358ab7b6b734402ce2e19ddd822a354dc14843f34d36c603521dbb4f9", - "imageSize": 2824980, "createdTime": "2021-11-12T21:33:17.9624898Z", "lastUpdateTime": - "2021-11-12T21:33:17.9624898Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:69704ef328d05a9f806b6b8502915e6a0a4faa4d72018dc42343f511490daf8a", - "imageSize": 2816445, "createdTime": "2021-11-11T20:44:06.2243633Z", "lastUpdateTime": - "2021-11-11T20:44:06.2243633Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:8595fe2e98735305ca7cbc68399d428d8bf1857daf13511db56a43e079ef960b", - "imageSize": 2440630, "createdTime": "2021-11-12T21:33:17.7551396Z", "lastUpdateTime": - "2021-11-12T21:33:17.7551396Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:9bea59997a84beb47a8cc7ddb11abc957b141e8160852aa93b4cf60659016b53", - "imageSize": 2814285, "createdTime": "2021-11-11T20:44:05.7868361Z", "lastUpdateTime": - "2021-11-11T20:44:05.7868361Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:a77adef9f69751add61080617e15e67aba9aa7a5fd5414b9fae84143210ee0ad", - "imageSize": 2824854, "createdTime": "2021-11-11T20:44:05.8800643Z", "lastUpdateTime": - "2021-11-11T20:44:05.8800643Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b06a5cf61b2956088722c4f1b9a6f71dfe95f0b1fe285d44195452b8a1627de7", - "imageSize": 2713841, "createdTime": "2021-11-11T20:44:05.9620845Z", "lastUpdateTime": - "2021-11-11T20:44:05.9620845Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b4da1299e77c63f8706427cd39154e726a9b7646d29e2fc05d65b513373f9f5e", - "imageSize": 2719714, "createdTime": "2021-11-12T21:33:17.6669923Z", "lastUpdateTime": - "2021-11-12T21:33:17.6669923Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/12/2021 - 9:33:21 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e12ff876f0075740ed3d7bdf788107ae84c1b3dd6dc98b3baea41088aba5236f", - "imageSize": 2432431, "createdTime": "2021-11-11T20:44:05.6834373Z", "lastUpdateTime": - "2021-11-11T20:44:05.6834373Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e1c082e3d3c45cccac829840a25941e679c25d438cc8412c2fa221cf1a824e6a", - "imageSize": 18838416, "createdTime": "2021-11-11T20:44:04.3319975Z", "lastUpdateTime": - "2021-11-11T20:44:04.3319975Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}, {"digest": "sha256:e841d0f0881ea22080e84088337646ada15871abbc3ce19b3219e8fc2cb0cc22", - "imageSize": 2605463, "createdTime": "2021-11-11T20:44:05.7567217Z", "lastUpdateTime": - "2021-11-11T20:44:05.7567217Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:20 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Falpine/_manifests -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_manifests.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_manifests.yaml deleted file mode 100644 index d2ab017f09fc..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_manifests.yaml +++ /dev/null @@ -1,125 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine/_manifests - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/alpine", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '217' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:19:27 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://seankaneanon.azurecr.io/acr/v1/library%2Falpine/_manifests -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/alpine:metadata_read - service: seankaneanon.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:19:27 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://seankaneanon.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine/_manifests - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/alpine", - "manifests": [{"digest": "sha256:5de788243acadd50526e70868b86d12ad79f3793619719ae22e0d09e8c873a66", - "imageSize": 528, "createdTime": "2021-05-11T21:18:11.0755473Z", "lastUpdateTime": - "2021-05-11T21:18:11.0755473Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:69e70a79f2d41ab5d637de98c1e0b055206ba40a8145e7bddb55ccc04e13cf8f", - "imageSize": 3696, "createdTime": "2021-05-11T21:18:10.4807811Z", "lastUpdateTime": - "2021-05-11T21:18:10.4807811Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:827525365ff718681b0688621e09912af49a17611701ee4d421ba50d57c13f7e", - "imageSize": 528, "createdTime": "2021-05-11T21:18:11.1394935Z", "lastUpdateTime": - "2021-05-11T21:18:11.1394935Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:8f18fae117ec6e5777cc62ba78cbb3be10a8a38639ccfb949521abd95c8301a4", - "imageSize": 528, "createdTime": "2021-05-11T21:18:11.5663537Z", "lastUpdateTime": - "2021-05-11T21:18:11.5663537Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:9663906b1c3bf891618ebcac857961531357525b25493ef717bca0f86f581ad6", - "imageSize": 528, "createdTime": "2021-05-11T21:18:11.4125673Z", "lastUpdateTime": - "2021-05-11T21:18:11.4125673Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:a090d7c93c8e9ab88946367500756c5f50cd660e09deb4c57494989c1f23fa5a", - "imageSize": 528, "createdTime": "2021-05-11T21:18:11.8312059Z", "lastUpdateTime": - "2021-05-11T21:18:11.8312059Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:def822f9851ca422481ec6fee59a9966f12b351c62ccb9aca841526ffaa9f748", - "imageSize": 528, "createdTime": "2021-05-11T21:18:10.2778252Z", "lastUpdateTime": - "2021-05-11T21:18:10.2778252Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}, {"digest": "sha256:ea73ecf48cd45e250f65eb731dd35808175ae37d70cca5d41f9ef57210737f04", - "imageSize": 528, "createdTime": "2021-05-11T21:18:11.6546011Z", "lastUpdateTime": - "2021-05-11T21:18:11.6546011Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineState": "Passed"}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:19:28 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://seankaneanon.azurecr.io/acr/v1/library%2Falpine/_manifests -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_repository_names.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_repository_names.yaml deleted file mode 100644 index 394a41225013..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_repository_names.yaml +++ /dev/null @@ -1,91 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:20 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: registry:catalog:* - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:20 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo26ab150f", "repo27741d6f", "repo2b381dc2", "repo2bef19cb", "repo45431dd7", - "repo60eb1a9e", "repo63d41ad4", "repo6969166d", "repo80c61ece", "repo816516e9", - "repo93d41b55", "repoaf8317b0", "repoc1b812f4", "repodf771888", "repoec051cb9", - "to_be_deleted"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '317' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:20 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_repository_names_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_repository_names_by_page.yaml deleted file mode 100644 index 599392fc9a84..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_repository_names_by_page.yaml +++ /dev/null @@ -1,861 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:20 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?n=2 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: registry:catalog:* - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:20 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.55' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 - response: - body: - string: '{"repositories": ["library/alpine", "library/busybox"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '54' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:20 GMT - docker-distribution-api-version: registry/2.0 - link: ; rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?n=2 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:20 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: registry:catalog:* - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:20 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.533333' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= - response: - body: - string: '{"repositories": ["library/hello-world", "repo26ab150f"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '56' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:20 GMT - docker-distribution-api-version: registry/2.0 - link: ; rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo26ab150f&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:20 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repo26ab150f&n=2&orderby= -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: registry:catalog:* - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:20 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.516667' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo26ab150f&n=2&orderby= - response: - body: - string: '{"repositories": ["repo27741d6f", "repo2b381dc2"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:20 GMT - docker-distribution-api-version: registry/2.0 - link: ; rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repo26ab150f&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2b381dc2&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repo2b381dc2&n=2&orderby= -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: registry:catalog:* - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.5' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2b381dc2&n=2&orderby= - response: - body: - string: '{"repositories": ["repo2bef19cb", "repo45431dd7"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - link: ; rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repo2b381dc2&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo45431dd7&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repo45431dd7&n=2&orderby= -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: registry:catalog:* - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.483333' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo45431dd7&n=2&orderby= - response: - body: - string: '{"repositories": ["repo60eb1a9e", "repo63d41ad4"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - link: ; rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repo45431dd7&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo63d41ad4&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repo63d41ad4&n=2&orderby= -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: registry:catalog:* - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.466667' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo63d41ad4&n=2&orderby= - response: - body: - string: '{"repositories": ["repo6969166d", "repo80c61ece"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - link: ; rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repo63d41ad4&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo80c61ece&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repo80c61ece&n=2&orderby= -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: registry:catalog:* - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.45' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo80c61ece&n=2&orderby= - response: - body: - string: '{"repositories": ["repo816516e9", "repo93d41b55"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - link: ; rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repo80c61ece&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo93d41b55&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repo93d41b55&n=2&orderby= -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: registry:catalog:* - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.433333' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo93d41b55&n=2&orderby= - response: - body: - string: '{"repositories": ["repoaf8317b0", "repoc1b812f4"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - link: ; rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repo93d41b55&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b812f4&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repoc1b812f4&n=2&orderby= -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: registry:catalog:* - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.416667' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b812f4&n=2&orderby= - response: - body: - string: '{"repositories": ["repodf771888", "repoec051cb9"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - link: ; rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repoc1b812f4&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoec051cb9&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repoec051cb9&n=2&orderby= -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: registry:catalog:* - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.4' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoec051cb9&n=2&orderby= - response: - body: - string: '{"repositories": ["to_be_deleted"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '35' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/_catalog?last=repoec051cb9&n=2&orderby= -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_tag_properties.yaml deleted file mode 100644 index c80c7cfaec88..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_tag_properties.yaml +++ /dev/null @@ -1,91 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine/_tags - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/alpine", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '217' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Falpine/_tags -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/alpine:metadata_read - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine/_tags - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/alpine", - "tags": [{"name": "latest", "digest": "sha256:00abeca57ca04b7672955453580fd51ab9ad1b4c5571b1e7643becaadb81b749", - "createdTime": "2021-11-11T20:44:04.4470641Z", "lastUpdateTime": "2021-11-12T21:33:16.9852008Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '394' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:21 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Falpine/_tags -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_tags.yaml deleted file mode 100644 index 94ddcf68ff21..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_list_tags.yaml +++ /dev/null @@ -1,89 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine/_tags - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/alpine", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '217' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:19:39 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://seankaneanon.azurecr.io/acr/v1/library%2Falpine/_tags -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/alpine:metadata_read - service: seankaneanon.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:19:40 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.55' - status: - code: 200 - message: OK - url: https://seankaneanon.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine/_tags - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "library/alpine", - "tags": [{"name": "latest", "digest": "sha256:69e70a79f2d41ab5d637de98c1e0b055206ba40a8145e7bddb55ccc04e13cf8f", - "createdTime": "2021-05-11T21:18:10.1680148Z", "lastUpdateTime": "2021-05-11T21:18:10.1680148Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:19:40 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://seankaneanon.azurecr.io/acr/v1/library%2Falpine/_tags -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_update_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_update_manifest_properties.yaml deleted file mode 100644 index b0052e765124..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_update_manifest_properties.yaml +++ /dev/null @@ -1,380 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '222' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:22 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/hello-world:metadata_read - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:22 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "tag": {"name": "latest", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T20:43:42.6193188Z", "lastUpdateTime": "2021-11-11T20:43:42.6193188Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '396' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:22 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '222' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:22 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/hello-world:metadata_read - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:22 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-11T20:43:42.5166971Z", "lastUpdateTime": - "2021-11-11T20:43:42.5166971Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest", "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1849' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:22 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '222' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:22 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/hello-world:metadata_read - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:22 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "tag": {"name": "latest", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T20:43:42.6193188Z", "lastUpdateTime": "2021-11-11T20:43:42.6193188Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '396' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:22 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '223' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:22 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/hello-world:metadata_write - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:22 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '223' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:22 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_update_repository_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_update_repository_properties.yaml deleted file mode 100644 index 8098ea7e9b61..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_update_repository_properties.yaml +++ /dev/null @@ -1,188 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '222' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:48:23 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/hello-world:metadata_read - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:48:23 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.35' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "createdTime": "2021-11-17T21:45:12.0019042Z", "lastUpdateTime": "2021-11-17T21:45:09.8470312Z", - "manifestCount": 12, "tagCount": 5, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '306' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:48:23 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '223' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:48:23 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/hello-world:metadata_write - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:48:23 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.333333' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '223' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:48:23 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_update_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_update_tag_properties.yaml deleted file mode 100644 index 77fd82fb73ab..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_anon_access_async.test_update_tag_properties.yaml +++ /dev/null @@ -1,189 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '222' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:22 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/hello-world:metadata_read - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:23 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtestsanon.azurecr.io", "imageName": "library/hello-world", - "tag": {"name": "latest", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T20:43:42.6193188Z", "lastUpdateTime": "2021-11-11T20:43:42.6193188Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '396' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:23 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '223' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:23 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 -- request: - body: - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.TokenGrantType - - password - scope: repository:library/hello-world:metadata_write - service: yallacrtestsanon.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:23 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://yallacrtestsanon.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '223' - content-type: application/json; charset=utf-8 - date: Fri, 12 Nov 2021 21:35:23 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtestsanon.azurecr.io/acr/v1/library%2Fhello-world/_tags/latest?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_construct_container_registry_client.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_construct_container_registry_client.json new file mode 100644 index 000000000000..b2c6ed8aa5f0 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_construct_container_registry_client.json @@ -0,0 +1,312 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.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-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:50: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ade3a0a0-6472-490c-8a8f-25dcf23aae3f" + }, + "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://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-cohLPU2OMkXV7zITOs6mkA\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:36 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:50:37 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-boqDMM9eb7j5l0hiYg-mBw\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:36 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:50:37 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "1da87959-e5c9-4b88-a86c-3dec665df34c", + "Connection": "keep-alive", + "Content-Length": "231", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmicrosoft.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "1da87959-e5c9-4b88-a86c-3dec665df34c", + "Content-Length": "114", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-RNf3HKq4tHz-V_Yof5zl8g\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:37 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:50:37 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 401, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Length": "78", + "Content-Type": "application/json", + "Date": "Fri, 08 Jul 2022 22:50:37 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Ms-Correlation-Request-Id": "ea282077-d9f1-4af4-be4a-ba7724f6551c", + "x-ms-ratelimit-remaining-calls-per-second": "166.4" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "retrieving permissions failed" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_manifest.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_manifest.json new file mode 100644 index 000000000000..fbaa6c05534e --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_manifest.json @@ -0,0 +1,1028 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:40 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAAGCrWtoOAAAAjvjTdAkAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:49:41 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAAGCrWtoOAAAAjvjTdAkAAABkq1raDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:41 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAAGCrWtoOAAAAjvjTdAkAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:49:41 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "95266220-f52e-441c-96f4-f2919c2cd864", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAAGCrWtoOAAAAjvjTdAkAAABkq1raDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "95266220-f52e-441c-96f4-f2919c2cd864", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:41 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAAGCrWtoOAAAAjvjTdAoAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:49:41 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo3ea338e5:tag3ea338e5" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-415e0452-ff10-11ec-97ee-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f4b6bbd8-d5f1-40fb-bc1f-ebe956312c0a", + "x-ms-ratelimit-remaining-subscription-writes": "1170", + "x-ms-routing-request-id": "WESTUS:20220708T224942Z:f4b6bbd8-d5f1-40fb-bc1f-ebe956312c0a" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-415e0452-ff10-11ec-97ee-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "04bbedaa-b220-47eb-bbcf-60a36508c5bb", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-routing-request-id": "WESTUS:20220708T224952Z:04bbedaa-b220-47eb-bbcf-60a36508c5bb" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo3ea338e5:tag3ea338e5" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-47d17d92-ff10-11ec-85b7-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5ca62df0-d3d8-4069-b89f-479ab33fa452", + "x-ms-ratelimit-remaining-subscription-writes": "1169", + "x-ms-routing-request-id": "WESTUS:20220708T224952Z:5ca62df0-d3d8-4069-b89f-479ab33fa452" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-47d17d92-ff10-11ec-85b7-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6f4fe676-477d-4624-acf8-aaa8e943f57b", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-routing-request-id": "WESTUS:20220708T225002Z:6f4fe676-477d-4624-acf8-aaa8e943f57b" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo3ea338e5/_tags/tag3ea338e5?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:50: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo3ea338e5:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "00cf95ee-baec-41a3-9623-43d7db41803d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo3ea338e5", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-c66ATSc6xoaeeogBVgRU3Q\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:02 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAAGCrWtoOAAAAjvjTdAoAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:50:02 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAAGCrWtoOAAAAjvjTdAoAAABkq1raDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:02 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAAGCrWtoOAAAAjvjTdAoAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:50:02 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "9604e67d-6925-4bde-a2de-d0db5b812a5f", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAAGCrWtoOAAAAjvjTdAoAAABkq1raDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "9604e67d-6925-4bde-a2de-d0db5b812a5f", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:02 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEwAAAGCrWtoOAAAAjvjTdAoAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:50:03 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2ebdee48-9dfe-43f0-8812-296daf2b016b", + "x-ms-ratelimit-remaining-calls-per-second": "166.483333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo3ea338e5%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "223a4be6-d55d-471e-917c-c12ebe02dd7b", + "x-ms-ratelimit-remaining-calls-per-second": "166.466667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo3ea338e5/_tags/tag3ea338e5?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:50: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": "e62c3982-e084-415b-b767-eebb1d2fa4b1" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo3ea338e5", + "tag": { + "name": "tag3ea338e5", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:49:45.3488926Z", + "lastUpdateTime": "2022-07-08T22:49:45.3488926Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo3ea338e5/manifests/sha256%3A13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "208", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo3ea338e5:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b6acc2df-b90c-43bd-a09a-da5555768477" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo3ea338e5", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3d1df3a0-21d8-4cdb-b71c-6d025d06a3d8", + "x-ms-ratelimit-remaining-calls-per-second": "166.45" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo3ea338e5%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "68b4127f-d1d6-4ee2-9cb4-014656dd9036", + "x-ms-ratelimit-remaining-calls-per-second": "166.433333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo3ea338e5/manifests/sha256%3A13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:50: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": "5b448eb0-1147-4cc9-ae72-ca4298a64769", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo3ea338e5/_tags/tag3ea338e5?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:50: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo3ea338e5:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "6551cc32-0aeb-4644-9d60-96ef542c29af" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo3ea338e5", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:13 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "bf789fd9-4557-42dc-ab47-c3debf1f10a5", + "x-ms-ratelimit-remaining-calls-per-second": "166.416667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo3ea338e5%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:13 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "aff20565-2c11-4bb8-a5cb-4dd339ccfa58", + "x-ms-ratelimit-remaining-calls-per-second": "166.4" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo3ea338e5/_tags/tag3ea338e5?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:50: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": "dcc9bcaf-267d-49d2-b2b5-ebd0e5d27fb0" + }, + "ResponseBody": { + "errors": [ + { + "code": "TAG_UNKNOWN", + "message": "the specified tag does not exist" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_manifest_does_not_exist.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_manifest_does_not_exist.json new file mode 100644 index 000000000000..37df707038b8 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_manifest_does_not_exist.json @@ -0,0 +1,1107 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:04:55 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AnVGpMbaQEtDvwCrLCCqQCQ; expires=Sat, 27-Aug-2022 09:04:55 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrgISt0qyTsSHV1TfFZ-BmjhxXQlzxeSPRP-shk2qCT7pgauQfd3Rq24U3yuyKTc-t1CujSb8-I-bZGuvmwFY7avgWpdMaZB0ZHTKGrj5IYwY9YfBwPZxdpualDaM_1zd00B-tvRdhgb1dd0WIUhwiFq4ChVdh0p4MrIZfPBfyFSggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AnVGpMbaQEtDvwCrLCCqQCQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-g318QSWewGb6gzafjOTtMQ\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:04:55 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AnVGpMbaQEtDvwCrLCCqQCQ; expires=Sat, 27-Aug-2022 09:04:55 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "ab2380f5-d21a-4321-94c8-caf0016eb24a", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AnVGpMbaQEtDvwCrLCCqQCQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "ab2380f5-d21a-4321-94c8-caf0016eb24a", + "Content-Length": "114", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-hZJMY7Rn_KG71-R6aKSBnA\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:04:55 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AnVGpMbaQEtDvwCrLCCqQCQf2L3jAQAAADdIdNoOAAAA; expires=Sat, 27-Aug-2022 09:04:56 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repod29b3f2b:tagd29b3f2b" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:04:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-5a2911cd-0e54-11ed-a85e-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2da2fd23-38b5-4f71-8bb6-c152e56d4881", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-routing-request-id": "WESTUS:20220728T090456Z:2da2fd23-38b5-4f71-8bb6-c152e56d4881" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-5a2911cd-0e54-11ed-a85e-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:05:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cc8d7c72-ce1f-48d9-bc6e-7cc17becc2ba", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "WESTUS:20220728T090506Z:cc8d7c72-ce1f-48d9-bc6e-7cc17becc2ba" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repod29b3f2b:tagd29b3f2b" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:05:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-6106453f-0e54-11ed-b77b-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1064db93-5485-4e93-807b-88d3ccb05655", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-routing-request-id": "WESTUS:20220728T090506Z:1064db93-5485-4e93-807b-88d3ccb05655" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-6106453f-0e54-11ed-b77b-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:05:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d0b98dea-3684-4462-bae3-a4f4c638ef28", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "WESTUS:20220728T090517Z:d0b98dea-3684-4462-bae3-a4f4c638ef28" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod29b3f2b/_tags/tagd29b3f2b?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:05: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod29b3f2b:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e6b4fa4f-ae57-4650-946e-8343e78256e5" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod29b3f2b", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:05:16 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AnVGpMbaQEtDvwCrLCCqQCQf2L3jAQAAADdIdNoOAAAA; expires=Sat, 27-Aug-2022 09:05:17 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AnVGpMbaQEtDvwCrLCCqQCQf2L3jAQAAADdIdNoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:05:16 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AnVGpMbaQEtDvwCrLCCqQCQf2L3jAQAAADdIdNoOAAAA; expires=Sat, 27-Aug-2022 09:05:17 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "0a09605a-fc7f-4f47-9d51-9cf40527c188", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AnVGpMbaQEtDvwCrLCCqQCQf2L3jAQAAADdIdNoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "0a09605a-fc7f-4f47-9d51-9cf40527c188", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:05:17 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AnVGpMbaQEtDvwCrLCCqQCQf2L3jAQAAADdIdNoOAAAAoQVBHgEAAABNSHTaDgAAAA; expires=Sat, 27-Aug-2022 09:05:17 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:05:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c5104acc-67d3-404a-a72d-b21c2a18264b", + "x-ms-ratelimit-remaining-calls-per-second": "166.583333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod29b3f2b%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:05:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "1de7ab49-bada-45c9-9df0-dab4984845b1", + "x-ms-ratelimit-remaining-calls-per-second": "166.566667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod29b3f2b/_tags/tagd29b3f2b?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:05: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": "7852777d-432c-49ef-8ab9-a580765b5b6a" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repod29b3f2b", + "tag": { + "name": "tagd29b3f2b", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T09:05:00.8842926Z", + "lastUpdateTime": "2022-07-28T09:05:00.8842926Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod29b3f2b/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:05: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod29b3f2b:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "76488ec4-16cb-4b98-9d2e-cb46fcc849bf" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod29b3f2b", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:05:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a5c59e68-f229-4312-afcd-b9fa28fa35f4", + "x-ms-ratelimit-remaining-calls-per-second": "166.55" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod29b3f2b%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:05:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "96b055d4-f728-4f38-b1c2-49b1caa0bc02", + "x-ms-ratelimit-remaining-calls-per-second": "166.533333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod29b3f2b/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1823", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:05: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": "68fe30f3-5891-46ff-8c1c-55898bdc3a4c" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repod29b3f2b", + "manifest": { + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "imageSize": 61611, + "createdTime": "2022-07-28T09:05:00.9894448Z", + "lastUpdateTime": "2022-07-28T09:05:00.9894448Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tagd29b3f2b" + ], + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:8377f36b3d74a8a4a95857a49d17a2969a2208eeb47a8af77bfa0136ef88e968", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod29b3f2b/manifests/sha256_encoded_stream", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "208", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:05: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod29b3f2b:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "33d0c0e8-b8ec-4bcf-83d5-69b766a3066c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod29b3f2b", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:05:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "276c35a5-fb0b-42f3-aa5d-e7e32da933b4", + "x-ms-ratelimit-remaining-calls-per-second": "166.516667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod29b3f2b%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:05:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5339dc9d-32d6-4370-800a-905b8797d682", + "x-ms-ratelimit-remaining-calls-per-second": "166.5" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod29b3f2b/manifests/sha256_encoded_stream", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "147", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:05: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": "57690fc4-0bf9-4e9a-ae75-f67bbeec56fd", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": { + "errors": [ + { + "code": "MANIFEST_UNKNOWN", + "message": "manifest sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecaaaaaaaaaa is not found" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_repository.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_repository.json new file mode 100644 index 000000000000..03e126f97d3f --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_repository.json @@ -0,0 +1,923 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:08 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAgAAADSqWtoOAAAA; expires=Sun, 07-Aug-2022 22:44:08 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAgAAADSqWtoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:08 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAgAAADSqWtoOAAAA; expires=Sun, 07-Aug-2022 22:44:08 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "39d8d5ea-9d73-4520-81b1-f80b3ae0a8b8", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAgAAADSqWtoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "39d8d5ea-9d73-4520-81b1-f80b3ae0a8b8", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:08 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAgAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:08 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "142", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "to_be_deleted" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-7af0c3a1-ff0f-11ec-ab82-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "989a3061-ada3-4204-b619-6e27a6452fbb", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-routing-request-id": "WESTUS:20220708T224409Z:989a3061-ada3-4204-b619-6e27a6452fbb" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-7af0c3a1-ff0f-11ec-ab82-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b5ac1649-e2f2-4f0b-b19f-4bdda623b9d0", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "WESTUS:20220708T224419Z:b5ac1649-e2f2-4f0b-b19f-4bdda623b9d0" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "142", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "to_be_deleted" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:19 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-819caa09-ff0f-11ec-a2f2-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "306cfdce-ebdf-4bef-8cf9-a545c1f3a620", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-routing-request-id": "WESTUS:20220708T224420Z:306cfdce-ebdf-4bef-8cf9-a545c1f3a620" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-819caa09-ff0f-11ec-a2f2-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fd6c20ba-e261-4a1b-8dad-3c182d1defc8", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "WESTUS:20220708T224430Z:fd6c20ba-e261-4a1b-8dad-3c182d1defc8" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/to_be_deleted?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "209", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:30 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:to_be_deleted:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "69bb858a-cf33-49e4-aef5-808ad4abd860" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "to_be_deleted", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:30 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAgAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:30 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAgAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:30 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAgAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:30 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "4172563b-a7f0-4fde-aee2-e4a62cd1cd21", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAgAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "4172563b-a7f0-4fde-aee2-e4a62cd1cd21", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:30 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAwAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:31 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:31 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "18ba80c8-fb42-4268-af94-428510daf1f1", + "x-ms-ratelimit-remaining-calls-per-second": "166.083333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "126", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Ato_be_deleted%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:31 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "cdf48fe4-bcd0-48a2-aff9-b7248e0683f6", + "x-ms-ratelimit-remaining-calls-per-second": "165.966667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/to_be_deleted?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "936", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:32 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": "a7d453d3-9803-4a8b-b44b-3d8e86da8a1a", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": { + "manifestsDeleted": [ + "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "sha256:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c", + "sha256:98c9722322be649df94780d3fbe594fce7996234b259f27eac9428b84050c849", + "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "sha256:9ec668ee97c20731eb4f4f55f6248ac6b83a0d2e1add2110e6b5d62191f66dd7", + "sha256:b836bb24a270b9cc935962d8228517fde0f16990e88893d935efcb1b14c0017a", + "sha256:c7b6944911848ce39b44ed660d95fb54d69bbd531de724c7ce6fc9f743c0b861", + "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c", + "sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4", + "sha256:fa36b268301e951714b69bb6db7680639cdc1b7381cfaac12e98e09f94fdc0d6" + ], + "tagsDeleted": [ + "latest" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44:32 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "aded59d3-8fb2-43d8-b93e-1c53f3d7dd5f" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:32 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "293cd52a-ac84-4b2a-b700-7411a3c85af9", + "x-ms-ratelimit-remaining-calls-per-second": "165.95" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:32 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "05c8cddb-03ce-43f4-b0e1-0880004534a3", + "x-ms-ratelimit-remaining-calls-per-second": "165.933333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "511", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:32 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": "4eb46981-dfd8-4a1a-9b4a-a8a88a5b82eb" + }, + "ResponseBody": { + "repositories": [ + "library/alpine", + "library/busybox", + "library/hello-world", + "repo141645c0", + "repo1a1f4613", + "repo1ded4145", + "repo1e243c5e", + "repo220636ca", + "repo23f64198", + "repo2d863abf", + "repo2deb42ef", + "repo3ea338e5", + "repo571f3e74", + "repo5b014628", + "repo5b823eaa", + "repo5c164001", + "repo5c6c3e66", + "repo605d41ad", + "repo8725450a", + "repo99f2408f", + "repo9a4c3ebe", + "repoa4a73b86", + "repoa693421c", + "repoa81d3b45", + "repob25d43a6", + "repod29b3f2b", + "repod8bd3da1", + "repodb213d60", + "repodbf03f3a", + "repode7a40d9", + "repoe63342a4", + "repof04e3a43" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_repository_does_not_exist.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_repository_does_not_exist.json new file mode 100644 index 000000000000..63a2760a0892 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_repository_does_not_exist.json @@ -0,0 +1,377 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/not_real_repo?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "209", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:not_real_repo:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e748281a-c039-414b-b1d4-558cab319565" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "not_real_repo", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:32 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAwAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:33 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAwAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:32 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAwAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:33 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "1d450275-6fee-4197-b310-658ea1e7afcb", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAwAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "1d450275-6fee-4197-b310-658ea1e7afcb", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:32 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBAAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:33 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:33 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "bc93dc97-d426-45df-a486-2d28d44d135d", + "x-ms-ratelimit-remaining-calls-per-second": "165.916667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "126", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Anot_real_repo%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:33 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a4361c8b-7e14-4593-a35f-d7edafa6c556", + "x-ms-ratelimit-remaining-calls-per-second": "165.9" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/not_real_repo?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "121", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:33 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": "06be7a69-2fc9-45ae-ba28-2569f74c03f5", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": { + "errors": [ + { + "code": "NAME_UNKNOWN", + "message": "repository name not known to registry", + "detail": { + "name": "not_real_repo" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_tag.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_tag.json new file mode 100644 index 000000000000..406856b535ed --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_tag.json @@ -0,0 +1,923 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-VZsMcg8pNW3DvznSQ1QGJQ\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:17 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAAGCrWtoOAAAAjvjTdA0AAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:49:18 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAAGCrWtoOAAAAjvjTdA0AAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-Z5Huf0eDfyxpRtU-5dayRg\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:17 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAAGCrWtoOAAAAjvjTdA0AAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:49:18 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "6b2b75db-dd50-4bbb-a7aa-fd48938222bc", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAAGCrWtoOAAAAjvjTdA0AAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "6b2b75db-dd50-4bbb-a7aa-fd48938222bc", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:17 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAAGCrWtoOAAAAjvjTdAkAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:49:18 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo220636ca:tag220636ca0", + "repo220636ca:tag220636ca1", + "repo220636ca:tag220636ca2", + "repo220636ca:tag220636ca3" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-338357f6-ff10-11ec-ad1e-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ac116677-9ddf-4c38-9b25-3556cc4ec064", + "x-ms-ratelimit-remaining-subscription-writes": "1172", + "x-ms-routing-request-id": "WESTUS:20220708T224918Z:ac116677-9ddf-4c38-9b25-3556cc4ec064" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-338357f6-ff10-11ec-ad1e-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "71ed907c-6568-49c6-a56f-0efd9557a93f", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-routing-request-id": "WESTUS:20220708T224928Z:71ed907c-6568-49c6-a56f-0efd9557a93f" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo220636ca:tag220636ca0", + "repo220636ca:tag220636ca1", + "repo220636ca:tag220636ca2", + "repo220636ca:tag220636ca3" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-39e516b1-ff10-11ec-9a23-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a610ab1c-089c-4010-b8af-0b0b8d9a968e", + "x-ms-ratelimit-remaining-subscription-writes": "1171", + "x-ms-routing-request-id": "WESTUS:20220708T224929Z:a610ab1c-089c-4010-b8af-0b0b8d9a968e" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-39e516b1-ff10-11ec-9a23-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c7d4d827-784e-470e-ae57-9def85d672f4", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-routing-request-id": "WESTUS:20220708T224939Z:c7d4d827-784e-470e-ae57-9def85d672f4" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo220636ca/_tags/tag220636ca0?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "208", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo220636ca:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8568687b-7424-4e8a-9641-dc723a11c6d3" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo220636ca", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:38 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAAGCrWtoOAAAAjvjTdAkAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:49:39 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAAGCrWtoOAAAAjvjTdAkAAABkq1raDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-S_5uKo6de_-k_az6uczOTw\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:38 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAAGCrWtoOAAAAjvjTdAkAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:49:39 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "6533f359-805e-4e1e-b8e6-7999d9269501", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAAGCrWtoOAAAAjvjTdAkAAABkq1raDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "6533f359-805e-4e1e-b8e6-7999d9269501", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:39 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAAGCrWtoOAAAAjvjTdAkAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:49:39 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:39 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c0584b5d-f129-4251-acdf-b08653c29355", + "x-ms-ratelimit-remaining-calls-per-second": "166.483333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo220636ca%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:39 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8cd2de05-50c5-4e3b-ba63-e647c0626d87", + "x-ms-ratelimit-remaining-calls-per-second": "166.466667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo220636ca/_tags/tag220636ca0?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:49: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": "ac5968e4-78d1-4919-8e4c-9fa29ddc970b", + "X-Ms-Int-Docker-Content-Digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo220636ca/_tags", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:49: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo220636ca:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "809102bf-4c7b-461f-948a-ff89e931402e" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo220636ca", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:40 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "700f9eb8-748d-42d1-b4d6-99f1f2505aa8", + "x-ms-ratelimit-remaining-calls-per-second": "166.45" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo220636ca%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:40 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "50e53548-4a9a-4e92-b051-19e5c34f7eb5", + "x-ms-ratelimit-remaining-calls-per-second": "166.433333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo220636ca/_tags", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1032", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49: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": "dcbb3363-08aa-45cc-a8bb-c6d22e9a70fd" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo220636ca", + "tags": [ + { + "name": "tag220636ca1", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:58:45.1880796Z", + "lastUpdateTime": "2022-07-08T21:58:45.1880796Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag220636ca2", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:58:46.1414315Z", + "lastUpdateTime": "2022-07-08T21:58:46.1414315Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag220636ca3", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:58:45.4116321Z", + "lastUpdateTime": "2022-07-08T21:58:45.4116321Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_tag_does_not_exist.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_tag_does_not_exist.json new file mode 100644 index 000000000000..611998a566e4 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_delete_tag_does_not_exist.json @@ -0,0 +1,374 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/does_not_exist/_tags/does_not_exist?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "210", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:does_not_exist:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8698d92c-18af-4d62-813e-523a33eed30a" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "does_not_exist", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:40 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAAGCrWtoOAAAAjvjTdAkAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:49:40 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAAGCrWtoOAAAAjvjTdAkAAABkq1raDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:40 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAAGCrWtoOAAAAjvjTdAkAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:49:40 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "688f09cd-7caf-4410-86d7-98540675439d", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAAGCrWtoOAAAAjvjTdAkAAABkq1raDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "688f09cd-7caf-4410-86d7-98540675439d", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:40 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAAGCrWtoOAAAAjvjTdAkAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:49:40 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:41 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8c4b59a4-c044-419c-b5bb-411cba30359f", + "x-ms-ratelimit-remaining-calls-per-second": "166.416667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "127", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Adoes_not_exist%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:41 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2a623c51-6543-40dd-a5da-3079f7fc3e61", + "x-ms-ratelimit-remaining-calls-per-second": "166.4" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/does_not_exist/_tags/does_not_exist?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:49: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": "97a1a7dc-07b8-4f04-a4ec-aa17717c578c", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": { + "errors": [ + { + "code": "TAG_UNKNOWN", + "message": "the specified tag does not exist" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_expiration_time_parsing.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_expiration_time_parsing.json new file mode 100644 index 000000000000..8832f8b30387 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_expiration_time_parsing.json @@ -0,0 +1,545 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:50: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "0fb017ec-12b2-4955-85a7-923cf821c9f1" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-dapCgtOvcie1N1PUMUKmCw\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:36 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:50:36 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-RjK0Hi-w1ly82DuBhbb8fQ\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:36 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:50:36 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "67f5376e-4771-4851-ad14-a477e8e3fd9a", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "67f5376e-4771-4851-ad14-a477e8e3fd9a", + "Content-Length": "114", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-MvkQapl172fBk8btWEkOow\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:36 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAA; expires=Sun, 07-Aug-2022 22:50:36 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:37 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "9203a171-abb3-4c78-b402-4b487fbe446d", + "x-ms-ratelimit-remaining-calls-per-second": "166.45" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:37 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "08efb255-ec16-48bd-a018-78b97b77aee7", + "x-ms-ratelimit-remaining-calls-per-second": "166.433333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "511", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50: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": "bc65b1b9-050a-41eb-9ccb-885bed273595" + }, + "ResponseBody": { + "repositories": [ + "library/alpine", + "library/busybox", + "library/hello-world", + "repo141645c0", + "repo1a1f4613", + "repo1ded4145", + "repo1e243c5e", + "repo220636ca", + "repo23f64198", + "repo2d863abf", + "repo2deb42ef", + "repo3ea338e5", + "repo571f3e74", + "repo5b014628", + "repo5b823eaa", + "repo5c164001", + "repo5c6c3e66", + "repo605d41ad", + "repo8725450a", + "repo99f2408f", + "repo9a4c3ebe", + "repoa4a73b86", + "repoa693421c", + "repoa81d3b45", + "repob25d43a6", + "repod29b3f2b", + "repod8bd3da1", + "repodb213d60", + "repodbf03f3a", + "repode7a40d9", + "repoe63342a4", + "repof04e3a43" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:50: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b73c7ac2-3598-497a-b9c5-cc6bbbef338d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:37 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "830610c0-e6c5-4edb-b2e5-9de9b58cab15", + "x-ms-ratelimit-remaining-calls-per-second": "166.416667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "511", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50: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": "290754ec-536c-490a-9257-59d7fc92eba0" + }, + "ResponseBody": { + "repositories": [ + "library/alpine", + "library/busybox", + "library/hello-world", + "repo141645c0", + "repo1a1f4613", + "repo1ded4145", + "repo1e243c5e", + "repo220636ca", + "repo23f64198", + "repo2d863abf", + "repo2deb42ef", + "repo3ea338e5", + "repo571f3e74", + "repo5b014628", + "repo5b823eaa", + "repo5c164001", + "repo5c6c3e66", + "repo605d41ad", + "repo8725450a", + "repo99f2408f", + "repo9a4c3ebe", + "repoa4a73b86", + "repoa693421c", + "repoa81d3b45", + "repob25d43a6", + "repod29b3f2b", + "repod8bd3da1", + "repodb213d60", + "repodbf03f3a", + "repode7a40d9", + "repoe63342a4", + "repof04e3a43" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_manifest_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_manifest_properties.json new file mode 100644 index 000000000000..0bf4f0143208 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_manifest_properties.json @@ -0,0 +1,960 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:55:57 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Ai7uJZ6vbYNNgvLKw6582L8; expires=Sat, 27-Aug-2022 08:55:57 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrpBWGZCG3I1vU7pnc0boVXSjsOAqlfbDLe1tH6uEe9w8mjR379u3ZmeVjyVG36zHrnhuCJ_GH-JDbEL1vbZgaHVWGvJ87yegb_1l8y0bTw3bH_Vx0fxZ3NMYZWyWBKWT1F5FhxwoTcnFTtcu9Konv1XhE6HBEYmP_Gw9fQNL5EvogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=Ai7uJZ6vbYNNgvLKw6582L8; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:55:57 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Ai7uJZ6vbYNNgvLKw6582L8; expires=Sat, 27-Aug-2022 08:55:57 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13315.8 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "943a913d-6573-4f39-a482-050a548b0171", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=Ai7uJZ6vbYNNgvLKw6582L8; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "943a913d-6573-4f39-a482-050a548b0171", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:55:57 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAQAAAB1GdNoOAAAA; expires=Sat, 27-Aug-2022 08:55:58 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo1e243c5e:tag1e243c5e" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:55:57 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-19845aee-0e53-11ed-9ae7-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d32e913b-0b93-4858-ac4c-3fc08b2ef236", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-routing-request-id": "WESTUS:20220728T085558Z:d32e913b-0b93-4858-ac4c-3fc08b2ef236" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-19845aee-0e53-11ed-9ae7-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4286d89a-d891-4dc8-ae93-aeb853bb155b", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "WESTUS:20220728T085608Z:4286d89a-d891-4dc8-ae93-aeb853bb155b" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo1e243c5e:tag1e243c5e" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-206e8f51-0e53-11ed-904e-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b8ea3ba0-4847-466a-97e1-0aa01dd0db04", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-routing-request-id": "WESTUS:20220728T085609Z:b8ea3ba0-4847-466a-97e1-0aa01dd0db04" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-206e8f51-0e53-11ed-904e-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb767a46-75db-44a0-bc9e-7bc599ba4031", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "WESTUS:20220728T085619Z:bb767a46-75db-44a0-bc9e-7bc599ba4031" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1e243c5e/_tags/tag1e243c5e?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:56: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1e243c5e:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "1af67dfd-561a-44d1-bc9d-689c23ecef54" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1e243c5e", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:19 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAQAAAB1GdNoOAAAA; expires=Sat, 27-Aug-2022 08:56:19 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAQAAAB1GdNoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:19 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAQAAAB1GdNoOAAAA; expires=Sat, 27-Aug-2022 08:56:19 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13315.8 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "b5441e5e-29a8-415c-b5a3-63ed57926816", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAQAAAB1GdNoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "b5441e5e-29a8-415c-b5a3-63ed57926816", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:19 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAQAAAB1GdNoOAAAAoQVBHgEAAAAzRnTaDgAAAA; expires=Sat, 27-Aug-2022 08:56:19 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "06517483-b663-4018-ab4b-0d7c7da37384", + "x-ms-ratelimit-remaining-calls-per-second": "166.616667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1e243c5e%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "922e2ab7-77cd-4284-8ebc-35064b46a2ff", + "x-ms-ratelimit-remaining-calls-per-second": "166.333333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1e243c5e/_tags/tag1e243c5e?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:56: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": "520eda16-cc8f-41b7-bc52-82a4f150e689" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo1e243c5e", + "tag": { + "name": "tag1e243c5e", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T08:56:02.9435605Z", + "lastUpdateTime": "2022-07-28T08:56:02.9435605Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1e243c5e/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:56: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1e243c5e:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "0cab356b-66f3-4fbd-bd35-77929a3e91fb" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1e243c5e", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "376131e8-6869-47c8-b09e-40b85d823247", + "x-ms-ratelimit-remaining-calls-per-second": "166.316667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1e243c5e%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "13c377fd-661f-4a6c-bfa1-f1956e5dadf1", + "x-ms-ratelimit-remaining-calls-per-second": "166.3" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1e243c5e/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1823", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56: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": "d075b180-cad3-48eb-af91-7055edc1ef90" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo1e243c5e", + "manifest": { + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "imageSize": 61611, + "createdTime": "2022-07-28T08:56:02.8103646Z", + "lastUpdateTime": "2022-07-28T08:56:02.8103646Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tag1e243c5e" + ], + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:8377f36b3d74a8a4a95857a49d17a2969a2208eeb47a8af77bfa0136ef88e968", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_manifest_properties_does_not_exist.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_manifest_properties_does_not_exist.json new file mode 100644 index 000000000000..835b36d657bc --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_manifest_properties_does_not_exist.json @@ -0,0 +1,1101 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:20 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAQAAAB1GdNoOAAAAoQVBHgEAAAAzRnTaDgAAAA; expires=Sat, 27-Aug-2022 08:56:21 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAQAAAB1GdNoOAAAAoQVBHgEAAAAzRnTaDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:20 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAQAAAB1GdNoOAAAAoQVBHgEAAAAzRnTaDgAAAA; expires=Sat, 27-Aug-2022 08:56:21 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13315.8 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "d6308201-6410-4953-938a-53feddafd8d6", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAQAAAB1GdNoOAAAAoQVBHgEAAAAzRnTaDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "d6308201-6410-4953-938a-53feddafd8d6", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:21 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAgAAAB1GdNoOAAAAoQVBHgEAAAAzRnTaDgAAAA; expires=Sat, 27-Aug-2022 08:56:21 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repoe63342a4:tage63342a4" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-27a43529-0e53-11ed-84c5-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "498d3deb-d43a-4cd8-89b7-c52d799faadf", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-routing-request-id": "WESTUS:20220728T085621Z:498d3deb-d43a-4cd8-89b7-c52d799faadf" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-27a43529-0e53-11ed-84c5-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4761a577-8b46-4439-adf4-cdc3ccaf5d26", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-routing-request-id": "WESTUS:20220728T085631Z:4761a577-8b46-4439-adf4-cdc3ccaf5d26" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repoe63342a4:tage63342a4" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-2e12e2cc-0e53-11ed-82b7-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5e0052e2-ab9a-4653-a485-3fc9180432d9", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-routing-request-id": "WESTUS:20220728T085631Z:5e0052e2-ab9a-4653-a485-3fc9180432d9" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-2e12e2cc-0e53-11ed-82b7-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "67313bfb-0a10-467a-b7f0-62f7a9059f9a", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-routing-request-id": "WESTUS:20220728T085642Z:67313bfb-0a10-467a-b7f0-62f7a9059f9a" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoe63342a4/_tags/tage63342a4?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:56: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repoe63342a4:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c8a3cb67-860e-42be-839c-2b7b476217e7" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repoe63342a4", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:41 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAgAAAB1GdNoOAAAAoQVBHgEAAAAzRnTaDgAAAA; expires=Sat, 27-Aug-2022 08:56:42 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAgAAAB1GdNoOAAAAoQVBHgEAAAAzRnTaDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:42 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAgAAAB1GdNoOAAAAoQVBHgEAAAAzRnTaDgAAAA; expires=Sat, 27-Aug-2022 08:56:42 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "f5c526e1-e810-426f-bed3-4bb003971671", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAgAAAB1GdNoOAAAAoQVBHgEAAAAzRnTaDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "f5c526e1-e810-426f-bed3-4bb003971671", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:42 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=Ai7uJZ6vbYNNgvLKw6582L8f2L3jAgAAAB1GdNoOAAAAoQVBHgIAAAAzRnTaDgAAAA; expires=Sat, 27-Aug-2022 08:56:42 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:42 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8a5791dd-edbc-4faa-9f30-f1350443123c", + "x-ms-ratelimit-remaining-calls-per-second": "165.983333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepoe63342a4%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:42 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ce4070cd-f089-4ede-bd9e-949b74cc3514", + "x-ms-ratelimit-remaining-calls-per-second": "165.966667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoe63342a4/_tags/tage63342a4?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:56: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": "04bc0426-1ce7-45ed-ab0f-912d7831c14f" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repoe63342a4", + "tag": { + "name": "tage63342a4", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T08:56:26.5605771Z", + "lastUpdateTime": "2022-07-28T08:56:26.5605771Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoe63342a4/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:56: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repoe63342a4:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "52ceb036-5654-470c-8802-47d907deb783" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repoe63342a4", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:43 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b924a8d7-96d3-473e-81d6-56c569861198", + "x-ms-ratelimit-remaining-calls-per-second": "165.95" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepoe63342a4%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:43 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7393ee33-730e-470c-ba61-b53893d0b308", + "x-ms-ratelimit-remaining-calls-per-second": "165.933333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoe63342a4/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1823", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56: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": "2864b0df-4764-4be7-803f-ab38fae3cacc" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repoe63342a4", + "manifest": { + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "imageSize": 61611, + "createdTime": "2022-07-28T08:56:25.5541951Z", + "lastUpdateTime": "2022-07-28T08:56:25.5541951Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tage63342a4" + ], + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:8377f36b3d74a8a4a95857a49d17a2969a2208eeb47a8af77bfa0136ef88e968", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoe63342a4/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:56: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repoe63342a4:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c65b4ba7-773a-4534-b26f-6a1a7f9f0310" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repoe63342a4", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:43 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ebb6f211-579a-44dc-ae73-8c15a1de78a3", + "x-ms-ratelimit-remaining-calls-per-second": "165.916667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepoe63342a4%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56:43 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e780caf9-d198-49d4-949c-f0ee03c0a7ec", + "x-ms-ratelimit-remaining-calls-per-second": "165.9" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoe63342a4/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "70", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:56: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": "1fea9c0d-dd8b-4635-82a3-7d02b2315ccf" + }, + "ResponseBody": { + "errors": [ + { + "code": "MANIFEST_UNKNOWN", + "message": "manifest unknown" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_misspell_property.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_misspell_property.json new file mode 100644 index 000000000000..a39d4017be02 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_misspell_property.json @@ -0,0 +1,377 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/alpine:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "1c05e035-58a2-47d2-9ecb-cd8846b15e84" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/alpine", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:37 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:50:38 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:37 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:50:38 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "ee689725-16ba-4900-abb3-6a72726d385f", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "ee689725-16ba-4900-abb3-6a72726d385f", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:37 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:50:38 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:38 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c0661e3f-56d3-4a8f-b133-e7bd2f98a5c2", + "x-ms-ratelimit-remaining-calls-per-second": "166.383333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "136", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Falpine%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50:38 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "124c42eb-c6ed-4019-b320-b18e78c659e5", + "x-ms-ratelimit-remaining-calls-per-second": "166.366667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "296", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:50: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": "a6e2aab1-1abd-4f75-87da-7fd7b45daf69" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/alpine", + "createdTime": "2022-07-08T21:52:42.4733653Z", + "lastUpdateTime": "2022-07-08T21:52:40.7511312Z", + "manifestCount": 8, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_repository_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_repository_properties.json new file mode 100644 index 000000000000..728ad32de867 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_repository_properties.json @@ -0,0 +1,377 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/alpine:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "06b81048-b35f-4449-8bd3-b52043af37fe" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/alpine", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:33 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBAAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:34 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBAAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:33 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBAAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:34 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "bf2b7375-5df1-4619-a072-5924fef300c9", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBAAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "bf2b7375-5df1-4619-a072-5924fef300c9", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:33 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBQAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:34 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:34 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7ecf1955-b0a2-4dc2-81e2-29e00f363fe1", + "x-ms-ratelimit-remaining-calls-per-second": "165.883333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "136", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Falpine%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:34 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "df372ed9-abe9-4db0-85e5-4bc283d7230c", + "x-ms-ratelimit-remaining-calls-per-second": "165.866667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "296", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:34 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": "fed5d27b-fa41-4228-9973-e44ad1b45931" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/alpine", + "createdTime": "2022-07-08T21:52:42.4733653Z", + "lastUpdateTime": "2022-07-08T21:52:40.7511312Z", + "manifestCount": 8, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_tag_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_tag_properties.json new file mode 100644 index 000000000000..9ce1b6d0251a --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_tag_properties.json @@ -0,0 +1,748 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:02 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZDwAAADSqWtoOAAAAjvjTdAcAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:47:02 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZDwAAADSqWtoOAAAAjvjTdAcAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:02 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZDwAAADSqWtoOAAAAjvjTdAcAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:47:03 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "c1618c97-8c3a-4b15-9113-9d2a81ceccb0", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZDwAAADSqWtoOAAAAjvjTdAcAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "c1618c97-8c3a-4b15-9113-9d2a81ceccb0", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:02 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZDwAAADSqWtoOAAAAjvjTdAgAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:47:03 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repof04e3a43:tagf04e3a43" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:03 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e2d3a424-ff0f-11ec-b2aa-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "90ec44c7-517a-4c21-aa78-7427f0c5fdac", + "x-ms-ratelimit-remaining-subscription-writes": "1184", + "x-ms-routing-request-id": "WESTUS:20220708T224703Z:90ec44c7-517a-4c21-aa78-7427f0c5fdac" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e2d3a424-ff0f-11ec-b2aa-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "95f9bfc7-ec6f-4fc3-8e5c-a53c3ee4bb09", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-routing-request-id": "WESTUS:20220708T224713Z:95f9bfc7-ec6f-4fc3-8e5c-a53c3ee4bb09" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repof04e3a43:tagf04e3a43" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e9633f77-ff0f-11ec-ad3e-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7db0fe2f-adad-44cf-82a8-7ce0ef78a7cc", + "x-ms-ratelimit-remaining-subscription-writes": "1183", + "x-ms-routing-request-id": "WESTUS:20220708T224714Z:7db0fe2f-adad-44cf-82a8-7ce0ef78a7cc" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-e9633f77-ff0f-11ec-ad3e-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f063318a-3535-4af3-bd89-786b92bf5ade", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-routing-request-id": "WESTUS:20220708T224724Z:f063318a-3535-4af3-bd89-786b92bf5ade" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repof04e3a43/_tags/tagf04e3a43?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:47:24 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repof04e3a43:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e57f13b0-ccc3-43ec-ab0c-a9a614f5ec1e" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repof04e3a43", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:23 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZDwAAADSqWtoOAAAAjvjTdAgAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:47:24 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZDwAAADSqWtoOAAAAjvjTdAgAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:24 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZDwAAADSqWtoOAAAAjvjTdAgAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:47:24 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "5e4d505e-3b43-4309-b33d-0821eaac5690", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZDwAAADSqWtoOAAAAjvjTdAgAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "5e4d505e-3b43-4309-b33d-0821eaac5690", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:24 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAADSqWtoOAAAAjvjTdAgAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:47:24 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:24 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5104a006-7e70-4ed1-82d4-06e2f46f566c", + "x-ms-ratelimit-remaining-calls-per-second": "165.9" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepof04e3a43%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:24 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c9d6f53a-6c67-4e84-8c22-611b24d29e77", + "x-ms-ratelimit-remaining-calls-per-second": "165.883333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repof04e3a43/_tags/tagf04e3a43?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:47:24 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": "7f784f86-1ede-4aa4-9a8b-c5b800d8e4d2" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repof04e3a43", + "tag": { + "name": "tagf04e3a43", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:56:26.4163141Z", + "lastUpdateTime": "2022-07-08T21:56:26.4163141Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_tag_properties_does_not_exist.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_tag_properties_does_not_exist.json new file mode 100644 index 000000000000..21623fb6a6e7 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_get_tag_properties_does_not_exist.json @@ -0,0 +1,34 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/Nonexistent/_tags/Nonexistent?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Length": "19", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:25 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": "a3f4c3b6-d7ee-4694-a46d-92a944c3fc8b" + }, + "ResponseBody": [ + "404 page not found\n" + ] + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_registry_artifacts.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_registry_artifacts.json new file mode 100644 index 000000000000..c445f6453e8d --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_registry_artifacts.json @@ -0,0 +1,555 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:22 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "620abc59-a3a2-4b76-9540-46b0006e7a95" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:22 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBwAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:45:22 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBwAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:22 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBwAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:45:22 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "16d7e4a1-fbbc-439a-966a-e22d457d05f6", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBwAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "16d7e4a1-fbbc-439a-966a-e22d457d05f6", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:22 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZCAAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:45:22 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:23 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "99fd9c95-43c5-459e-8b6e-2a818b68dc67", + "x-ms-ratelimit-remaining-calls-per-second": "165.916667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:23 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "58ec95d4-debe-441a-8d90-85c7c63ac5c7", + "x-ms-ratelimit-remaining-calls-per-second": "165.9" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:45:23 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": "96b5d1e8-8113-4762-8424-25269e1673f3" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:0d4b25aec0a40382a3eaea29e3af360f2c5908c91b3b12ded5492fdc5e74050c", + "imageSize": 2486114, + "createdTime": "2022-07-08T21:53:06.3308049Z", + "lastUpdateTime": "2022-07-08T21:53:06.3308049Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933", + "imageSize": 738673, + "createdTime": "2022-07-08T21:53:05.6499271Z", + "lastUpdateTime": "2022-07-08T21:53:05.6499271Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:2c5e2045f35086c019e80c86880fd5b7c7a619878b59e3b7592711e1781df51a", + "imageSize": 830677, + "createdTime": "2022-07-08T21:53:05.8122977Z", + "lastUpdateTime": "2022-07-08T21:53:05.8122977Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83", + "imageSize": 11153203, + "createdTime": "2022-07-08T21:53:04.5650787Z", + "lastUpdateTime": "2022-07-08T21:53:04.5650787Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132", + "imageSize": 907419, + "createdTime": "2022-07-08T21:53:06.8092888Z", + "lastUpdateTime": "2022-07-08T21:53:06.8092888Z", + "architecture": "riscv64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d", + "imageSize": 758548, + "createdTime": "2022-07-08T21:53:05.3273324Z", + "lastUpdateTime": "2022-07-08T21:53:05.3273324Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:ac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc", + "imageSize": 2008986, + "createdTime": "2022-07-08T21:53:05.8878865Z", + "lastUpdateTime": "2022-07-08T21:53:05.8878865Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc", + "imageSize": 726504, + "createdTime": "2022-07-08T21:53:05.4032016Z", + "lastUpdateTime": "2022-07-08T21:53:05.4032016Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:d339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea", + "imageSize": 963052, + "createdTime": "2022-07-08T21:53:06.0420451Z", + "lastUpdateTime": "2022-07-08T21:53:06.0420451Z", + "architecture": "mips64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan InProgress\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992", + "imageSize": 955694, + "createdTime": "2022-07-08T21:53:05.5846508Z", + "lastUpdateTime": "2022-07-08T21:53:05.5846508Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52", + "imageSize": 775241, + "createdTime": "2022-07-08T21:53:05.2285625Z", + "lastUpdateTime": "2022-07-08T21:53:05.2285625Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_registry_artifacts_ascending.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_registry_artifacts_ascending.json new file mode 100644 index 000000000000..3c484d9b21b5 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_registry_artifacts_ascending.json @@ -0,0 +1,882 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8a09333d-9986-468c-b254-24eff3751be7" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:27 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZCgAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:45:27 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZCgAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-huq4eLPKlaV_HMIyhVpfFw\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:27 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZCgAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:45:27 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "4b4b3e37-9803-473a-8b95-ecc59b46fe2c", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZCgAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "4b4b3e37-9803-473a-8b95-ecc59b46fe2c", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:27 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZCwAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:45:27 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:28 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "9e9fc1c8-20c4-4889-be8b-5f825c28d215", + "x-ms-ratelimit-remaining-calls-per-second": "165.616667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:28 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "cbdbdac0-97e1-453e-aaef-75c968ae755f", + "x-ms-ratelimit-remaining-calls-per-second": "165.6" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:45:28 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": "960d2b1a-50d0-4358-9487-0bec35022825" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83", + "imageSize": 11153203, + "createdTime": "2022-07-08T21:53:04.5650787Z", + "lastUpdateTime": "2022-07-08T21:53:04.5650787Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52", + "imageSize": 775241, + "createdTime": "2022-07-08T21:53:05.2285625Z", + "lastUpdateTime": "2022-07-08T21:53:05.2285625Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d", + "imageSize": 758548, + "createdTime": "2022-07-08T21:53:05.3273324Z", + "lastUpdateTime": "2022-07-08T21:53:05.3273324Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc", + "imageSize": 726504, + "createdTime": "2022-07-08T21:53:05.4032016Z", + "lastUpdateTime": "2022-07-08T21:53:05.4032016Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992", + "imageSize": 955694, + "createdTime": "2022-07-08T21:53:05.5846508Z", + "lastUpdateTime": "2022-07-08T21:53:05.5846508Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933", + "imageSize": 738673, + "createdTime": "2022-07-08T21:53:05.6499271Z", + "lastUpdateTime": "2022-07-08T21:53:05.6499271Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:2c5e2045f35086c019e80c86880fd5b7c7a619878b59e3b7592711e1781df51a", + "imageSize": 830677, + "createdTime": "2022-07-08T21:53:05.8122977Z", + "lastUpdateTime": "2022-07-08T21:53:05.8122977Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:ac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc", + "imageSize": 2008986, + "createdTime": "2022-07-08T21:53:05.8878865Z", + "lastUpdateTime": "2022-07-08T21:53:05.8878865Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:d339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea", + "imageSize": 963052, + "createdTime": "2022-07-08T21:53:06.0420451Z", + "lastUpdateTime": "2022-07-08T21:53:06.0420451Z", + "architecture": "mips64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan InProgress\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0d4b25aec0a40382a3eaea29e3af360f2c5908c91b3b12ded5492fdc5e74050c", + "imageSize": 2486114, + "createdTime": "2022-07-08T21:53:06.3308049Z", + "lastUpdateTime": "2022-07-08T21:53:06.3308049Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132", + "imageSize": 907419, + "createdTime": "2022-07-08T21:53:06.8092888Z", + "lastUpdateTime": "2022-07-08T21:53:06.8092888Z", + "architecture": "riscv64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:28 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ffdca79b-4eda-4eef-9340-a22e86ac7ea0" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:28 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5f33fe3d-a2f7-40c5-a005-bebefb81cecc", + "x-ms-ratelimit-remaining-calls-per-second": "165.583333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:28 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8a6fce1b-0298-45b1-9a83-648099666670", + "x-ms-ratelimit-remaining-calls-per-second": "165.566667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:45:28 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": "1d91fbb8-ac7a-42fa-b28b-c2017bd2873d" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83", + "imageSize": 11153203, + "createdTime": "2022-07-08T21:53:04.5650787Z", + "lastUpdateTime": "2022-07-08T21:53:04.5650787Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52", + "imageSize": 775241, + "createdTime": "2022-07-08T21:53:05.2285625Z", + "lastUpdateTime": "2022-07-08T21:53:05.2285625Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d", + "imageSize": 758548, + "createdTime": "2022-07-08T21:53:05.3273324Z", + "lastUpdateTime": "2022-07-08T21:53:05.3273324Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc", + "imageSize": 726504, + "createdTime": "2022-07-08T21:53:05.4032016Z", + "lastUpdateTime": "2022-07-08T21:53:05.4032016Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992", + "imageSize": 955694, + "createdTime": "2022-07-08T21:53:05.5846508Z", + "lastUpdateTime": "2022-07-08T21:53:05.5846508Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933", + "imageSize": 738673, + "createdTime": "2022-07-08T21:53:05.6499271Z", + "lastUpdateTime": "2022-07-08T21:53:05.6499271Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:2c5e2045f35086c019e80c86880fd5b7c7a619878b59e3b7592711e1781df51a", + "imageSize": 830677, + "createdTime": "2022-07-08T21:53:05.8122977Z", + "lastUpdateTime": "2022-07-08T21:53:05.8122977Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:ac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc", + "imageSize": 2008986, + "createdTime": "2022-07-08T21:53:05.8878865Z", + "lastUpdateTime": "2022-07-08T21:53:05.8878865Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:d339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea", + "imageSize": 963052, + "createdTime": "2022-07-08T21:53:06.0420451Z", + "lastUpdateTime": "2022-07-08T21:53:06.0420451Z", + "architecture": "mips64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan InProgress\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0d4b25aec0a40382a3eaea29e3af360f2c5908c91b3b12ded5492fdc5e74050c", + "imageSize": 2486114, + "createdTime": "2022-07-08T21:53:06.3308049Z", + "lastUpdateTime": "2022-07-08T21:53:06.3308049Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132", + "imageSize": 907419, + "createdTime": "2022-07-08T21:53:06.8092888Z", + "lastUpdateTime": "2022-07-08T21:53:06.8092888Z", + "architecture": "riscv64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_registry_artifacts_by_page.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_registry_artifacts_by_page.json new file mode 100644 index 000000000000..831ac0ac4596 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_registry_artifacts_by_page.json @@ -0,0 +1,1261 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "46312844-4f6b-4eed-8ca9-2ffda09efecb" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:17 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Ahcl8Gas91lEsVMuSMmmAZk; expires=Sat, 27-Aug-2022 08:53:17 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJXlyt9YD0g7qVEearWC8awlh5p087esIT8QF1qVdqZM7rn-T6pItk6ew0rSPChAH_0e_9xGn6U_EjSKAAADV7j-SMp0zkW9fUnKG_4VhmjabLruysBogwDdpT6mZ2waX9kR56TyRbhZkpJNeM02kA2yB0wLK0pEkneInqu5LU1QgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=Ahcl8Gas91lEsVMuSMmmAZk; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:17 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Ahcl8Gas91lEsVMuSMmmAZk; expires=Sat, 27-Aug-2022 08:53:17 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13315.8 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "0056d262-dc66-4327-91df-1405b6096d1c", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=Ahcl8Gas91lEsVMuSMmmAZk; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "0056d262-dc66-4327-91df-1405b6096d1c", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:17 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=Ahcl8Gas91lEsVMuSMmmAZmhBUEeAQAAAH1FdNoOAAAA; expires=Sat, 27-Aug-2022 08:53:18 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "9e043ca0-f4c8-4444-a18a-497262e1cde4", + "x-ms-ratelimit-remaining-calls-per-second": "166.65" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "035699f3-857d-414e-a882-85a744d36d04", + "x-ms-ratelimit-remaining-calls-per-second": "166.633333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1588", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:18 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933\u0026n=2\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": "b813c22b-00a8-466c-b59a-905ec908f2bb" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:0d4b25aec0a40382a3eaea29e3af360f2c5908c91b3b12ded5492fdc5e74050c", + "imageSize": 2486114, + "createdTime": "2022-07-28T07:05:46.8474425Z", + "lastUpdateTime": "2022-07-28T07:05:46.8474425Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-28T01:52:38.2172085Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933", + "imageSize": 738673, + "createdTime": "2022-07-28T07:05:46.6105838Z", + "lastUpdateTime": "2022-07-28T07:05:46.6105838Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-28T01:52:38.2172085Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d4eb02f2-7f19-42aa-b487-d3f32be212b1" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7284f326-6c33-4b25-9b63-dc3c0227b621", + "x-ms-ratelimit-remaining-calls-per-second": "166.616667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3c7735e0-b397-4439-8c08-ac57920ed728", + "x-ms-ratelimit-remaining-calls-per-second": "166.6" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1581", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:19 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132\u0026n=2\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": "67698868-eeb3-4ef3-8d9e-11aed1b262ac" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:2c5e2045f35086c019e80c86880fd5b7c7a619878b59e3b7592711e1781df51a", + "imageSize": 830677, + "createdTime": "2022-07-28T07:05:46.7102818Z", + "lastUpdateTime": "2022-07-28T07:05:46.7102818Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-28T01:52:38.2172085Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132", + "imageSize": 907419, + "createdTime": "2022-07-28T07:05:46.9294838Z", + "lastUpdateTime": "2022-07-28T07:05:46.9294838Z", + "architecture": "riscv64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/28/2022 8:52:58 AM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ff1606af-1137-4d61-aa9f-0a5e27ec3354" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:19 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d6308360-4d88-405f-b332-ec8963238129", + "x-ms-ratelimit-remaining-calls-per-second": "166.583333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:19 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b4975824-70f8-4ab1-b223-147fe4d3d916", + "x-ms-ratelimit-remaining-calls-per-second": "166.566667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1586", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:19 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Aac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc\u0026n=2\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": "b0c8b6d6-6092-4b87-b765-7f96c2ccdfdc" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d", + "imageSize": 758548, + "createdTime": "2022-07-28T07:05:46.2615335Z", + "lastUpdateTime": "2022-07-28T07:05:46.2615335Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-28T01:52:38.2172085Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:ac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc", + "imageSize": 2008986, + "createdTime": "2022-07-28T07:05:49.5710259Z", + "lastUpdateTime": "2022-07-28T07:05:49.5710259Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-28T01:52:38.2172085Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "3db3b62d-4e15-4d5f-949a-8c2bcc3c031f" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:19 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "fbbd4072-d85a-46d2-88b4-3ca3b47e095f", + "x-ms-ratelimit-remaining-calls-per-second": "166.55" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:19 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3c862d84-accc-4b4c-9622-7920cb12fa0b", + "x-ms-ratelimit-remaining-calls-per-second": "166.533333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1576", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:19 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ad339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea\u0026n=2\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": "2a91d9ac-dbff-4ef4-b455-0be36855cf01" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc", + "imageSize": 726504, + "createdTime": "2022-07-28T07:05:46.4363455Z", + "lastUpdateTime": "2022-07-28T07:05:46.4363455Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan InProgress\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/28/2022 8:45:04 AM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:d339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea", + "imageSize": 963052, + "createdTime": "2022-07-28T07:05:47.0322819Z", + "lastUpdateTime": "2022-07-28T07:05:47.0322819Z", + "architecture": "mips64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/28/2022 8:53:00 AM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "4baad12d-7616-4b86-a098-9861fa5c1ba0" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "94ee9870-f81c-4259-a8b1-f65a2109ec18", + "x-ms-ratelimit-remaining-calls-per-second": "166.516667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4ff0218b-97fa-4be3-a78b-d3743a75ff57", + "x-ms-ratelimit-remaining-calls-per-second": "166.5" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:20 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae63286d6bf23acce079c38cd9f63ec19dd1ad4da0e3e942e39f2a08050b50534\u0026n=2\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": "6be50c29-858a-48a6-bdce-dfc3c087c139" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52", + "imageSize": 775241, + "createdTime": "2022-07-28T07:05:46.3516791Z", + "lastUpdateTime": "2022-07-28T07:05:46.3516791Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-28T01:52:38.2172085Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:e63286d6bf23acce079c38cd9f63ec19dd1ad4da0e3e942e39f2a08050b50534", + "imageSize": 11153204, + "createdTime": "2022-07-28T07:05:45.9313739Z", + "lastUpdateTime": "2022-07-28T07:05:45.9313739Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "95b86dbf-4763-4fb7-8906-2e0819e8f9ba" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f045ee44-7234-403a-8647-b32b7cf971a6", + "x-ms-ratelimit-remaining-calls-per-second": "166.483333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "750bfcc6-d37d-463f-b839-02f883f0e7b9", + "x-ms-ratelimit-remaining-calls-per-second": "166.466667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "833", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:53: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": "7a1dd587-c45a-44cd-92ad-e24315070ec9" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:f58ec2aa47dc681153be306d8034fba65f961796c5605473eabe4bfc7f9254b0", + "imageSize": 955695, + "createdTime": "2022-07-28T07:05:46.4767396Z", + "lastUpdateTime": "2022-07-28T07:05:46.4767396Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-28T01:52:38.2172085Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_registry_artifacts_descending.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_registry_artifacts_descending.json new file mode 100644 index 000000000000..a4c75daaf060 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_registry_artifacts_descending.json @@ -0,0 +1,882 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b42e3831-8911-4545-bd2b-63758e7ef50b" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-ezY2w-Vw3sF_4xkgdTd33w\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:25 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZCQAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:45:26 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZCQAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:25 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZCQAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:45:26 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "839e9769-d430-4edd-9a31-9a9337987f6c", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZCQAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "839e9769-d430-4edd-9a31-9a9337987f6c", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:25 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZCgAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:45:26 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:26 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "bdb86224-d57e-4107-bcba-053c1044eb89", + "x-ms-ratelimit-remaining-calls-per-second": "165.683333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:26 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ec3ba223-dcf7-41e1-b20e-f40fb0979fdb", + "x-ms-ratelimit-remaining-calls-per-second": "165.666667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:45:26 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": "6673d1f7-a1e7-420a-b406-88f1149e3756" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132", + "imageSize": 907419, + "createdTime": "2022-07-08T21:53:06.8092888Z", + "lastUpdateTime": "2022-07-08T21:53:06.8092888Z", + "architecture": "riscv64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0d4b25aec0a40382a3eaea29e3af360f2c5908c91b3b12ded5492fdc5e74050c", + "imageSize": 2486114, + "createdTime": "2022-07-08T21:53:06.3308049Z", + "lastUpdateTime": "2022-07-08T21:53:06.3308049Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:d339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea", + "imageSize": 963052, + "createdTime": "2022-07-08T21:53:06.0420451Z", + "lastUpdateTime": "2022-07-08T21:53:06.0420451Z", + "architecture": "mips64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan InProgress\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:ac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc", + "imageSize": 2008986, + "createdTime": "2022-07-08T21:53:05.8878865Z", + "lastUpdateTime": "2022-07-08T21:53:05.8878865Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:2c5e2045f35086c019e80c86880fd5b7c7a619878b59e3b7592711e1781df51a", + "imageSize": 830677, + "createdTime": "2022-07-08T21:53:05.8122977Z", + "lastUpdateTime": "2022-07-08T21:53:05.8122977Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933", + "imageSize": 738673, + "createdTime": "2022-07-08T21:53:05.6499271Z", + "lastUpdateTime": "2022-07-08T21:53:05.6499271Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992", + "imageSize": 955694, + "createdTime": "2022-07-08T21:53:05.5846508Z", + "lastUpdateTime": "2022-07-08T21:53:05.5846508Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc", + "imageSize": 726504, + "createdTime": "2022-07-08T21:53:05.4032016Z", + "lastUpdateTime": "2022-07-08T21:53:05.4032016Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d", + "imageSize": 758548, + "createdTime": "2022-07-08T21:53:05.3273324Z", + "lastUpdateTime": "2022-07-08T21:53:05.3273324Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52", + "imageSize": 775241, + "createdTime": "2022-07-08T21:53:05.2285625Z", + "lastUpdateTime": "2022-07-08T21:53:05.2285625Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83", + "imageSize": 11153203, + "createdTime": "2022-07-08T21:53:04.5650787Z", + "lastUpdateTime": "2022-07-08T21:53:04.5650787Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "9a4ecf07-4dd6-4d5e-a9a8-522bd3f80110" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:26 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4196240c-3654-4705-aba8-3df1e3e60e49", + "x-ms-ratelimit-remaining-calls-per-second": "165.65" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:26 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "daab047b-8b39-466a-8c0d-a693c6793d32", + "x-ms-ratelimit-remaining-calls-per-second": "165.633333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:45:27 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": "f554ecca-8519-4c05-b13a-5fccc92723f9" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132", + "imageSize": 907419, + "createdTime": "2022-07-08T21:53:06.8092888Z", + "lastUpdateTime": "2022-07-08T21:53:06.8092888Z", + "architecture": "riscv64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0d4b25aec0a40382a3eaea29e3af360f2c5908c91b3b12ded5492fdc5e74050c", + "imageSize": 2486114, + "createdTime": "2022-07-08T21:53:06.3308049Z", + "lastUpdateTime": "2022-07-08T21:53:06.3308049Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:d339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea", + "imageSize": 963052, + "createdTime": "2022-07-08T21:53:06.0420451Z", + "lastUpdateTime": "2022-07-08T21:53:06.0420451Z", + "architecture": "mips64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan InProgress\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:ac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc", + "imageSize": 2008986, + "createdTime": "2022-07-08T21:53:05.8878865Z", + "lastUpdateTime": "2022-07-08T21:53:05.8878865Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:2c5e2045f35086c019e80c86880fd5b7c7a619878b59e3b7592711e1781df51a", + "imageSize": 830677, + "createdTime": "2022-07-08T21:53:05.8122977Z", + "lastUpdateTime": "2022-07-08T21:53:05.8122977Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933", + "imageSize": 738673, + "createdTime": "2022-07-08T21:53:05.6499271Z", + "lastUpdateTime": "2022-07-08T21:53:05.6499271Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992", + "imageSize": 955694, + "createdTime": "2022-07-08T21:53:05.5846508Z", + "lastUpdateTime": "2022-07-08T21:53:05.5846508Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc", + "imageSize": 726504, + "createdTime": "2022-07-08T21:53:05.4032016Z", + "lastUpdateTime": "2022-07-08T21:53:05.4032016Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d", + "imageSize": 758548, + "createdTime": "2022-07-08T21:53:05.3273324Z", + "lastUpdateTime": "2022-07-08T21:53:05.3273324Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52", + "imageSize": 775241, + "createdTime": "2022-07-08T21:53:05.2285625Z", + "lastUpdateTime": "2022-07-08T21:53:05.2285625Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83", + "imageSize": 11153203, + "createdTime": "2022-07-08T21:53:04.5650787Z", + "lastUpdateTime": "2022-07-08T21:53:04.5650787Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_repository_names.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_repository_names.json new file mode 100644 index 000000000000..ad24eb8d00dc --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_repository_names.json @@ -0,0 +1,401 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c5d5bba7-611d-43bb-9468-35a8fa558f8d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:03 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMs; expires=Sun, 07-Aug-2022 22:44:03 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrh3eVZQlLGNIwPpIvq7cTT96Cx9JwD3IO6A7n7c2P5SMqSwvoO-sBRPtUICdP5DG1kqJfgpAfBgqGEUek2Q5DRZAfJF4c49o9h4C8CxHBZH_cz7tcwbVYIgNmov1Tp1TR_ddhh0DTjBmbckbhkiidCI1_WyjTh619SGbH-b2kAf0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMs; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:03 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMs; expires=Sun, 07-Aug-2022 22:44:04 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "d740a374-ff64-4acc-8d57-3d4d366cbed7", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMs; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "d740a374-ff64-4acc-8d57-3d4d366cbed7", + "Content-Length": "114", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-71shpnGgI8oG5O0tDU3sCg\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:03 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAQAAADSqWtoOAAAA; expires=Sun, 07-Aug-2022 22:44:04 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:04 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "459b232f-8da7-41be-94f5-ff27e3eec562", + "x-ms-ratelimit-remaining-calls-per-second": "166.65" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:04 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8cdb2ffb-aa34-4cba-9a92-0dbcc1ff05d0", + "x-ms-ratelimit-remaining-calls-per-second": "166.633333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "511", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44: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": "07be4613-294d-4e9c-9cf1-53c614b84647" + }, + "ResponseBody": { + "repositories": [ + "library/alpine", + "library/busybox", + "library/hello-world", + "repo141645c0", + "repo1a1f4613", + "repo1ded4145", + "repo1e243c5e", + "repo220636ca", + "repo23f64198", + "repo2d863abf", + "repo2deb42ef", + "repo3ea338e5", + "repo571f3e74", + "repo5b014628", + "repo5b823eaa", + "repo5c164001", + "repo5c6c3e66", + "repo605d41ad", + "repo8725450a", + "repo99f2408f", + "repo9a4c3ebe", + "repoa4a73b86", + "repoa693421c", + "repoa81d3b45", + "repob25d43a6", + "repod29b3f2b", + "repod8bd3da1", + "repodb213d60", + "repodbf03f3a", + "repode7a40d9", + "repoe63342a4", + "repof04e3a43" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_repository_names_by_page.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_repository_names_by_page.json new file mode 100644 index 000000000000..a62f4ba07b20 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_repository_names_by_page.json @@ -0,0 +1,2485 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?n=2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "35879629-91aa-4a6b-a26a-09e853e94a85" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:04 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAQAAADSqWtoOAAAA; expires=Sun, 07-Aug-2022 22:44:04 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAQAAADSqWtoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:04 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAQAAADSqWtoOAAAA; expires=Sun, 07-Aug-2022 22:44:04 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "b9e7f461-c302-4040-8396-0b595c55ff5c", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAQAAADSqWtoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "b9e7f461-c302-4040-8396-0b595c55ff5c", + "Content-Length": "114", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-UylGuZ78st__WS7C6eD4bA\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:04 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZAgAAADSqWtoOAAAA; expires=Sun, 07-Aug-2022 22:44:05 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "27ffb703-4042-4fb0-9172-ffd6ef830258", + "x-ms-ratelimit-remaining-calls-per-second": "166.616667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "dc55068b-0ba5-4742-b5b1-f066757ac731", + "x-ms-ratelimit-remaining-calls-per-second": "166.6" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?n=2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "54", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:05 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=library%2Fbusybox\u0026n=2\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": "635e1e82-3e24-45f8-bcea-57504f6d28c9" + }, + "ResponseBody": { + "repositories": [ + "library/alpine", + "library/busybox" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b88fd502-9218-4818-8af6-3f7dc0fde632" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4883d754-8ecc-456b-a19f-31ce11d76e52", + "x-ms-ratelimit-remaining-calls-per-second": "166.583333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "53f690e1-787e-49bf-9714-51e51ab521ca", + "x-ms-ratelimit-remaining-calls-per-second": "166.566667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "56", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:05 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo141645c0\u0026n=2\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": "125b2c5e-aa49-4a26-9447-dba3b4d66830" + }, + "ResponseBody": { + "repositories": [ + "library/hello-world", + "repo141645c0" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo141645c0\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e2995b34-c0be-4891-8271-dc245489ba01" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7cb6ef9b-5e69-4ef2-b3d0-fa1a11333369", + "x-ms-ratelimit-remaining-calls-per-second": "166.55" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7b12ff6a-3da3-453d-a114-c9183738901c", + "x-ms-ratelimit-remaining-calls-per-second": "166.533333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo141645c0\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:05 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo1ded4145\u0026n=2\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": "c112ace7-1f54-4c9f-997f-68c51f6328b3" + }, + "ResponseBody": { + "repositories": [ + "repo1a1f4613", + "repo1ded4145" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo1ded4145\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d369059d-2738-447b-aae9-af221fb7cfce" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "203df7df-7d44-4222-b042-38ca10aafd12", + "x-ms-ratelimit-remaining-calls-per-second": "166.516667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "fb66ecb9-2d0a-400b-b6a9-22c552707718", + "x-ms-ratelimit-remaining-calls-per-second": "166.5" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo1ded4145\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:05 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo220636ca\u0026n=2\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": "29ef6289-6e5c-45ce-abdd-8b2406166b34" + }, + "ResponseBody": { + "repositories": [ + "repo1e243c5e", + "repo220636ca" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo220636ca\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ce48e306-af91-4c2e-82f0-7886b65e4115" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8bd3d3fc-8322-4f43-826e-451d36ce6f40", + "x-ms-ratelimit-remaining-calls-per-second": "166.483333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6a29da20-3a29-414d-9f9d-dab34d198f34", + "x-ms-ratelimit-remaining-calls-per-second": "166.466667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo220636ca\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo2d863abf\u0026n=2\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": "25dd7367-2c60-4087-b566-c66f7ee47f53" + }, + "ResponseBody": { + "repositories": [ + "repo23f64198", + "repo2d863abf" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2d863abf\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f0b6095d-5893-43b3-946b-afb82eaf5748" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8e55c278-9c39-4ffa-94f8-ac5ea0789ba5", + "x-ms-ratelimit-remaining-calls-per-second": "166.45" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "744adbbf-6d72-4686-8ffd-6eda1e29d45d", + "x-ms-ratelimit-remaining-calls-per-second": "166.433333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2d863abf\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo3ea338e5\u0026n=2\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": "e99a7f9a-f941-47ca-9d56-5bf40c6aae2d" + }, + "ResponseBody": { + "repositories": [ + "repo2deb42ef", + "repo3ea338e5" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3ea338e5\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5d6d6a42-8152-4bac-9bf6-1737310a7354" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3868458e-6727-4315-bff9-0805a69171f8", + "x-ms-ratelimit-remaining-calls-per-second": "166.416667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5330009d-f0ee-4e33-a6da-e182a545714c", + "x-ms-ratelimit-remaining-calls-per-second": "166.4" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3ea338e5\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo5b014628\u0026n=2\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": "85fc8203-bcd7-43dd-a5cf-d5f953f3c4f6" + }, + "ResponseBody": { + "repositories": [ + "repo571f3e74", + "repo5b014628" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5b014628\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "4f84818d-d238-447d-a044-315e5c13a979" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5a871fb0-413c-4c93-8514-1c01b5e1a240", + "x-ms-ratelimit-remaining-calls-per-second": "166.383333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ef576ec8-a716-4c8d-b4da-016157283d4a", + "x-ms-ratelimit-remaining-calls-per-second": "166.366667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5b014628\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo5c164001\u0026n=2\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": "dba350c2-e934-44fc-bc4b-b259ed904056" + }, + "ResponseBody": { + "repositories": [ + "repo5b823eaa", + "repo5c164001" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5c164001\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e058ce4a-58f3-461d-a88d-8ca3687ad87a" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f6dd1778-c287-48f5-ba80-77cd845084f0", + "x-ms-ratelimit-remaining-calls-per-second": "166.35" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0560ffeb-58e7-4210-9e2f-137f0777e72e", + "x-ms-ratelimit-remaining-calls-per-second": "166.333333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5c164001\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo605d41ad\u0026n=2\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": "3eda0266-0e15-4d4a-9a72-b94a75dbc85f" + }, + "ResponseBody": { + "repositories": [ + "repo5c6c3e66", + "repo605d41ad" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo605d41ad\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "6467512c-8814-4b79-8252-f85cef43a811" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f7252be0-9058-45e0-81ee-525e312ff534", + "x-ms-ratelimit-remaining-calls-per-second": "166.316667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e12d9236-9f84-42a1-a123-eff14f779fde", + "x-ms-ratelimit-remaining-calls-per-second": "166.3" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo605d41ad\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo99f2408f\u0026n=2\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": "d298f83b-19ba-4c6a-9a15-04e920f9dc95" + }, + "ResponseBody": { + "repositories": [ + "repo8725450a", + "repo99f2408f" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo99f2408f\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b913fc16-c3d8-4fd2-a79e-6d5fe89d460c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b3c2224c-1e16-4660-aa68-6318aa77ec0c", + "x-ms-ratelimit-remaining-calls-per-second": "166.283333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "70889089-01d4-44b7-97e6-fde6681369d8", + "x-ms-ratelimit-remaining-calls-per-second": "166.266667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo99f2408f\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repoa4a73b86\u0026n=2\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": "421adade-ced6-4246-b775-e943a7e17032" + }, + "ResponseBody": { + "repositories": [ + "repo9a4c3ebe", + "repoa4a73b86" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa4a73b86\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e1fb2165-7c63-44f6-bf9e-16218ef422cc" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5f18ed16-3a31-49be-9b07-162bc6e8e300", + "x-ms-ratelimit-remaining-calls-per-second": "166.25" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4c46c431-75d1-4e1f-b4ed-1dee0528e842", + "x-ms-ratelimit-remaining-calls-per-second": "166.233333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa4a73b86\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repoa81d3b45\u0026n=2\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": "71fd2b01-2828-4bc7-8206-92079f49708c" + }, + "ResponseBody": { + "repositories": [ + "repoa693421c", + "repoa81d3b45" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa81d3b45\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "2cf3838d-7846-46a3-acb4-bc613c47f25f" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d5b09a3a-6c88-4488-bee4-903766a0e396", + "x-ms-ratelimit-remaining-calls-per-second": "166.216667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "83c19a1a-7cb0-4b8e-bd3f-a0180564a227", + "x-ms-ratelimit-remaining-calls-per-second": "166.2" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa81d3b45\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repod29b3f2b\u0026n=2\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": "30ae7338-88c6-43ff-9ca4-29b453e30b01" + }, + "ResponseBody": { + "repositories": [ + "repob25d43a6", + "repod29b3f2b" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repod29b3f2b\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "9401fd0f-d1aa-4208-8a94-0d98c146d738" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "58a01504-401e-4f7c-929e-81af5fb6b11e", + "x-ms-ratelimit-remaining-calls-per-second": "166.183333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "be1ccde6-85a2-47e0-b907-49043e078f3b", + "x-ms-ratelimit-remaining-calls-per-second": "166.166667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repod29b3f2b\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repodb213d60\u0026n=2\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": "59e456cf-3368-42ec-9668-c52a11cea212" + }, + "ResponseBody": { + "repositories": [ + "repod8bd3da1", + "repodb213d60" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repodb213d60\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a9f6c800-acee-4acb-84b1-85e25db9c924" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "596582e0-64b0-485c-9bf2-e93ac84b7b8e", + "x-ms-ratelimit-remaining-calls-per-second": "166.15" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f5bd32ea-e4df-470f-8889-8e9dfb22971c", + "x-ms-ratelimit-remaining-calls-per-second": "166.133333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repodb213d60\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:07 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repode7a40d9\u0026n=2\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": "20d17d6f-fc7f-461d-8990-ac6dcc9cfe99" + }, + "ResponseBody": { + "repositories": [ + "repodbf03f3a", + "repode7a40d9" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repode7a40d9\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7db781fc-8a46-497c-b5f5-498990c7ac0c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:08 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "95bdc3aa-999e-4b6f-b834-3b8de13f6f44", + "x-ms-ratelimit-remaining-calls-per-second": "166.116667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:08 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b099bf9e-8e99-4a2a-9b77-22475734f778", + "x-ms-ratelimit-remaining-calls-per-second": "166.1" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repode7a40d9\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44: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": "adce738e-ffea-4add-a0a9-5347e81cf35e" + }, + "ResponseBody": { + "repositories": [ + "repoe63342a4", + "repof04e3a43" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_tag_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_tag_properties.json new file mode 100644 index 000000000000..04e3603f2730 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_tag_properties.json @@ -0,0 +1,798 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:10 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAADSqWtoOAAAAjvjTdAoAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:11 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAADSqWtoOAAAAjvjTdAoAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-eCop21WFJnC2vj8EVANIDQ\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:10 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAADSqWtoOAAAAjvjTdAoAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:11 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "25a4f74e-e688-42f5-8475-348f44c10fe6", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAADSqWtoOAAAAjvjTdAoAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "25a4f74e-e688-42f5-8475-348f44c10fe6", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:11 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAADSqWtoOAAAAjvjTdAsAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:11 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo2d863abf:tag2d863abf0", + "repo2d863abf:tag2d863abf1", + "repo2d863abf:tag2d863abf2", + "repo2d863abf:tag2d863abf3" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0badea70-ff10-11ec-a97e-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6f39d174-5c9f-4975-868b-d56e452ee674", + "x-ms-ratelimit-remaining-subscription-writes": "1178", + "x-ms-routing-request-id": "WESTUS:20220708T224812Z:6f39d174-5c9f-4975-868b-d56e452ee674" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-0badea70-ff10-11ec-a97e-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "429e58e7-bc01-4fec-9b8a-b6fb577c2656", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-routing-request-id": "WESTUS:20220708T224822Z:429e58e7-bc01-4fec-9b8a-b6fb577c2656" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo2d863abf:tag2d863abf0", + "repo2d863abf:tag2d863abf1", + "repo2d863abf:tag2d863abf2", + "repo2d863abf:tag2d863abf3" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-12319ce7-ff10-11ec-8a19-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fc1e5cd5-3d41-42c1-9e7f-ea96790a7140", + "x-ms-ratelimit-remaining-subscription-writes": "1177", + "x-ms-routing-request-id": "WESTUS:20220708T224822Z:fc1e5cd5-3d41-42c1-9e7f-ea96790a7140" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-12319ce7-ff10-11ec-8a19-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "aa72e2cf-e400-4fc4-be9f-b5656c8b7095", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-routing-request-id": "WESTUS:20220708T224832Z:aa72e2cf-e400-4fc4-be9f-b5656c8b7095" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo2d863abf/_tags", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:48:32 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2d863abf:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d011ec0e-e477-447c-9662-58b16a933c58" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2d863abf", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-rMASIr9Ws7-VsxanWImn3Q\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:32 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAADSqWtoOAAAAjvjTdAsAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:32 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAADSqWtoOAAAAjvjTdAsAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:32 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAADSqWtoOAAAAjvjTdAsAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:32 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "ad409088-97f7-4db8-afce-082a75fa6e7d", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAADSqWtoOAAAAjvjTdAsAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "ad409088-97f7-4db8-afce-082a75fa6e7d", + "Content-Length": "114", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-Gpa2EndDiG_kf1tzzKsv8w\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:32 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEwAAADSqWtoOAAAAjvjTdAsAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:33 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:33 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "43d6b353-0eee-4af6-a3b8-9a02f678d7f0", + "x-ms-ratelimit-remaining-calls-per-second": "166.65" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2d863abf%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:33 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "728507e8-d7f3-4d61-8ed3-d6f56cf793ad", + "x-ms-ratelimit-remaining-calls-per-second": "166.633333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo2d863abf/_tags", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1349", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:33 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": "80076ed8-8028-4961-9047-6f7d8b456b8e" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo2d863abf", + "tags": [ + { + "name": "tag2d863abf0", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:36.6729748Z", + "lastUpdateTime": "2022-07-08T21:57:36.6729748Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag2d863abf1", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:38.7583107Z", + "lastUpdateTime": "2022-07-08T21:57:38.7583107Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag2d863abf2", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:38.303965Z", + "lastUpdateTime": "2022-07-08T21:57:38.303965Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag2d863abf3", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:37.8062576Z", + "lastUpdateTime": "2022-07-08T21:57:37.8062576Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_tag_properties_order_ascending.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_tag_properties_order_ascending.json new file mode 100644 index 000000000000..fc94a4cd258d --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_tag_properties_order_ascending.json @@ -0,0 +1,990 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-UfAF3pSLjM0hD7jOzd-jug\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:55 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAADSqWtoOAAAAjvjTdAwAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:56 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAADSqWtoOAAAAjvjTdAwAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-Fv5xngg5fiVby7-zlDnMeg\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:55 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAADSqWtoOAAAAjvjTdAwAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:56 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "2e215343-9077-4caa-8950-45d9c66d62e8", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAADSqWtoOAAAAjvjTdAwAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "2e215343-9077-4caa-8950-45d9c66d62e8", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:55 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAADSqWtoOAAAAjvjTdA0AAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:56 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo1ded4145:tag1ded41450", + "repo1ded4145:tag1ded41451", + "repo1ded4145:tag1ded41452", + "repo1ded4145:tag1ded41453" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-264af017-ff10-11ec-b14c-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "111dbf25-3e4f-41b2-8fa6-513f08bcb5eb", + "x-ms-ratelimit-remaining-subscription-writes": "1174", + "x-ms-routing-request-id": "WESTUS:20220708T224856Z:111dbf25-3e4f-41b2-8fa6-513f08bcb5eb" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-264af017-ff10-11ec-b14c-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "938dfec6-c14d-40d7-9f9d-3a1c9e70d813", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-routing-request-id": "WESTUS:20220708T224906Z:938dfec6-c14d-40d7-9f9d-3a1c9e70d813" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo1ded4145:tag1ded41450", + "repo1ded4145:tag1ded41451", + "repo1ded4145:tag1ded41452", + "repo1ded4145:tag1ded41453" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-2caafa4d-ff10-11ec-84b8-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1267d1af-0aac-40d4-a295-9f6271730eed", + "x-ms-ratelimit-remaining-subscription-writes": "1173", + "x-ms-routing-request-id": "WESTUS:20220708T224906Z:1267d1af-0aac-40d4-a295-9f6271730eed" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-2caafa4d-ff10-11ec-84b8-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b6048465-abc5-4c82-b768-1022b4a57d3e", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-routing-request-id": "WESTUS:20220708T224917Z:b6048465-abc5-4c82-b768-1022b4a57d3e" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1ded4145/_tags?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:49: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1ded4145:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "807c25f4-1d40-4579-a53d-34caeacd71e8" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1ded4145", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:16 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAADSqWtoOAAAAjvjTdA0AAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:49:17 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAADSqWtoOAAAAjvjTdA0AAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:16 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAADSqWtoOAAAAjvjTdA0AAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:49:17 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "6780fad8-8e71-40bc-b847-b0dec8fef947", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAADSqWtoOAAAAjvjTdA0AAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "6780fad8-8e71-40bc-b847-b0dec8fef947", + "Content-Length": "114", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-IQXs98Xr1a56_g3sktPwGw\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:16 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAAGCrWtoOAAAAjvjTdA0AAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:49:17 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "fb1f072e-b45a-46fb-9caa-5bb68dc1775b", + "x-ms-ratelimit-remaining-calls-per-second": "166.516667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1ded4145%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ad24eb6f-932d-4c1e-a155-eac0496c71f6", + "x-ms-ratelimit-remaining-calls-per-second": "166.466667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1ded4145/_tags?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1351", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49: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": "5de591fe-e84b-4481-a110-86840588e716" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo1ded4145", + "tags": [ + { + "name": "tag1ded41453", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:58:22.3420184Z", + "lastUpdateTime": "2022-07-08T21:58:22.3420184Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag1ded41451", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:58:22.5029344Z", + "lastUpdateTime": "2022-07-08T21:58:22.5029344Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag1ded41450", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:58:22.6431764Z", + "lastUpdateTime": "2022-07-08T21:58:22.6431764Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag1ded41452", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:58:24.4710318Z", + "lastUpdateTime": "2022-07-08T21:58:24.4710318Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1ded4145/_tags?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:49: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1ded4145:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "36889503-c4af-494c-9b59-ca747135b67e" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1ded4145", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f842af80-c6f9-43c0-826b-77d66bb21aee", + "x-ms-ratelimit-remaining-calls-per-second": "166.45" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1ded4145%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "75ed4c04-bd30-4708-a647-04c97ad71b02", + "x-ms-ratelimit-remaining-calls-per-second": "166.433333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1ded4145/_tags?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1351", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:49: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": "2897f330-757f-45d8-b571-6328c0d69c76" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo1ded4145", + "tags": [ + { + "name": "tag1ded41453", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:58:22.3420184Z", + "lastUpdateTime": "2022-07-08T21:58:22.3420184Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag1ded41451", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:58:22.5029344Z", + "lastUpdateTime": "2022-07-08T21:58:22.5029344Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag1ded41450", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:58:22.6431764Z", + "lastUpdateTime": "2022-07-08T21:58:22.6431764Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag1ded41452", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:58:24.4710318Z", + "lastUpdateTime": "2022-07-08T21:58:24.4710318Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_tag_properties_order_descending.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_tag_properties_order_descending.json new file mode 100644 index 000000000000..1f7f75ead5d7 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_list_tag_properties_order_descending.json @@ -0,0 +1,987 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:33 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEwAAADSqWtoOAAAAjvjTdAsAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:33 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEwAAADSqWtoOAAAAjvjTdAsAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:33 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEwAAADSqWtoOAAAAjvjTdAsAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:33 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "10174182-1d6d-4be8-8852-bb8d0e6e8192", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEwAAADSqWtoOAAAAjvjTdAsAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "10174182-1d6d-4be8-8852-bb8d0e6e8192", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:33 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEwAAADSqWtoOAAAAjvjTdAwAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:33 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo605d41ad:tag605d41ad0", + "repo605d41ad:tag605d41ad1", + "repo605d41ad:tag605d41ad2", + "repo605d41ad:tag605d41ad3" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-18e25528-ff10-11ec-ba21-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f3e1786b-1d63-4ebe-bff7-07cfef626cd0", + "x-ms-ratelimit-remaining-subscription-writes": "1176", + "x-ms-routing-request-id": "WESTUS:20220708T224834Z:f3e1786b-1d63-4ebe-bff7-07cfef626cd0" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-18e25528-ff10-11ec-ba21-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "08a4c970-e19c-40bf-8264-e54ea737d2c1", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-routing-request-id": "WESTUS:20220708T224844Z:08a4c970-e19c-40bf-8264-e54ea737d2c1" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo605d41ad:tag605d41ad0", + "repo605d41ad:tag605d41ad1", + "repo605d41ad:tag605d41ad2", + "repo605d41ad:tag605d41ad3" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-1f777723-ff10-11ec-a3d2-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8ea88e80-e21c-4c0c-b7e3-394aca4086da", + "x-ms-ratelimit-remaining-subscription-writes": "1175", + "x-ms-routing-request-id": "WESTUS:20220708T224844Z:8ea88e80-e21c-4c0c-b7e3-394aca4086da" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-1f777723-ff10-11ec-a3d2-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d2c1bf96-0e0f-4bd4-821c-388abd66fe3f", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-routing-request-id": "WESTUS:20220708T224854Z:d2c1bf96-0e0f-4bd4-821c-388abd66fe3f" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo605d41ad/_tags?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:48:55 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo605d41ad:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e762599e-c222-4208-98b6-11f33f06befc" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo605d41ad", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:54 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEwAAADSqWtoOAAAAjvjTdAwAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:55 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEwAAADSqWtoOAAAAjvjTdAwAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:54 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEwAAADSqWtoOAAAAjvjTdAwAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:55 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "2c314cc4-d68a-4aa6-bb19-95ef4ea1dbb0", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEwAAADSqWtoOAAAAjvjTdAwAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "2c314cc4-d68a-4aa6-bb19-95ef4ea1dbb0", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:54 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAADSqWtoOAAAAjvjTdAwAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:55 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "765a7959-4ec8-4e49-8bc6-6572c300cab6", + "x-ms-ratelimit-remaining-calls-per-second": "166.616667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo605d41ad%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0a635126-3df0-4ead-b03d-99f904166194", + "x-ms-ratelimit-remaining-calls-per-second": "166.566667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo605d41ad/_tags?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1351", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:55 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": "d45a3d99-96c7-449e-9d79-6bc3a57c7aa4" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo605d41ad", + "tags": [ + { + "name": "tag605d41ad3", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:58:00.2957363Z", + "lastUpdateTime": "2022-07-08T21:58:00.2957363Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag605d41ad1", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:59.7464942Z", + "lastUpdateTime": "2022-07-08T21:57:59.7464942Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag605d41ad2", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:59.5520096Z", + "lastUpdateTime": "2022-07-08T21:57:59.5520096Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag605d41ad0", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:59.0340298Z", + "lastUpdateTime": "2022-07-08T21:57:59.0340298Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo605d41ad/_tags?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:48:55 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo605d41ad:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7916162a-eefe-4ee1-b9d1-ee372fb04a38" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo605d41ad", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c33f0e15-9a5a-4ea0-a4f6-73866f81cfc8", + "x-ms-ratelimit-remaining-calls-per-second": "166.55" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo605d41ad%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b9e33e13-0f4b-43de-a532-830c189c44a7", + "x-ms-ratelimit-remaining-calls-per-second": "166.533333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo605d41ad/_tags?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1351", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:55 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": "8375fff4-eb8d-4f9d-ad39-4e07ecb25e25" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo605d41ad", + "tags": [ + { + "name": "tag605d41ad3", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:58:00.2957363Z", + "lastUpdateTime": "2022-07-08T21:58:00.2957363Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag605d41ad1", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:59.7464942Z", + "lastUpdateTime": "2022-07-08T21:57:59.7464942Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag605d41ad2", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:59.5520096Z", + "lastUpdateTime": "2022-07-08T21:57:59.5520096Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag605d41ad0", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:59.0340298Z", + "lastUpdateTime": "2022-07-08T21:57:59.0340298Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_manifest_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_manifest_properties.json new file mode 100644 index 000000000000..981e4624f390 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_manifest_properties.json @@ -0,0 +1,1712 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:36 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AmYUs-NNCvxFty3K3cZjqPI; expires=Sat, 27-Aug-2022 09:01:36 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJf1sptzv0fOToacJO-UNTz4WwReHQlX0Z0z_nvJKEFMaG4_lVYwz7leqeNt6D7fXNyAapqE_hTSQ2lXVQWEA_i5yPIGVzdNbNqPyMHgCAqWAf4HvmfkJlFKtJ6F3r4ju1wxCDs2qPJsDKyXfUdzxYx4Gvem9nUdR1HmrTYB0dRggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AmYUs-NNCvxFty3K3cZjqPI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:36 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AmYUs-NNCvxFty3K3cZjqPI; expires=Sat, 27-Aug-2022 09:01:36 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "fa05cbee-ce82-4edc-b30d-5faf1127f8eb", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AmYUs-NNCvxFty3K3cZjqPI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "fa05cbee-ce82-4edc-b30d-5faf1127f8eb", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:36 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAQAAAG9HdNoOAAAA; expires=Sat, 27-Aug-2022 09:01:36 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repod8bd3da1:tagd8bd3da1" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-e3b75e99-0e53-11ed-9c17-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9fe03d65-50e3-4ccc-9a28-125b74ed06bc", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-routing-request-id": "WESTUS:20220728T090137Z:9fe03d65-50e3-4ccc-9a28-125b74ed06bc" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-e3b75e99-0e53-11ed-9c17-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "aa7c34e8-d6f8-4b51-82ca-7ad038eab243", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "WESTUS:20220728T090147Z:aa7c34e8-d6f8-4b51-82ca-7ad038eab243" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repod8bd3da1:tagd8bd3da1" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-ea52d410-0e53-11ed-a8d0-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5895d998-b6ed-4ca2-9588-52799c2f90c1", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-routing-request-id": "WESTUS:20220728T090147Z:5895d998-b6ed-4ca2-9588-52799c2f90c1" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-ea52d410-0e53-11ed-a8d0-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "017fc444-aab0-4815-a7f4-f8ea0aa86d04", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "WESTUS:20220728T090157Z:017fc444-aab0-4815-a7f4-f8ea0aa86d04" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod8bd3da1/_tags/tagd8bd3da1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:01: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod8bd3da1:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "390c0fcc-dcd9-43a3-a23c-f283e2f1eccd" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod8bd3da1", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:57 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAQAAAG9HdNoOAAAA; expires=Sat, 27-Aug-2022 09:01:58 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAQAAAG9HdNoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:57 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAQAAAG9HdNoOAAAA; expires=Sat, 27-Aug-2022 09:01:58 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "75116e39-7cc7-4fd9-a04c-c3f709661c42", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAQAAAG9HdNoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "75116e39-7cc7-4fd9-a04c-c3f709661c42", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:57 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAQAAAG9HdNoOAAAAoQVBHgEAAACFR3TaDgAAAA; expires=Sat, 27-Aug-2022 09:01:58 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5a72226a-3e46-43b0-b7c5-ea43fd1457c2", + "x-ms-ratelimit-remaining-calls-per-second": "166.616667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod8bd3da1%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8f003713-2af2-4ac1-a32d-4c3529d40801", + "x-ms-ratelimit-remaining-calls-per-second": "166.6" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod8bd3da1/_tags/tagd8bd3da1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:01:58 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": "68719b9c-63be-4720-a121-51c3d34da376" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repod8bd3da1", + "tag": { + "name": "tagd8bd3da1", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T09:01:41.0221933Z", + "lastUpdateTime": "2022-07-28T09:01:41.0221933Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod8bd3da1/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:01: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod8bd3da1:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "014e4ee2-fbe5-497b-8047-627912e4f5cd" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod8bd3da1", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7e5857a5-e931-4c73-8620-fca851b02145", + "x-ms-ratelimit-remaining-calls-per-second": "166.583333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod8bd3da1%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "70a9fe21-a1a9-4791-9eb1-c44df007ca98", + "x-ms-ratelimit-remaining-calls-per-second": "166.566667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod8bd3da1/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1823", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01: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": "5d9a58e5-a41e-47d7-8d49-bcd6c5a4c09d" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repod8bd3da1", + "manifest": { + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "imageSize": 61611, + "createdTime": "2022-07-28T09:01:40.9158101Z", + "lastUpdateTime": "2022-07-28T09:01:40.9158101Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tagd8bd3da1" + ], + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:8377f36b3d74a8a4a95857a49d17a2969a2208eeb47a8af77bfa0136ef88e968", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod8bd3da1/_tags/tagd8bd3da1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:01: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod8bd3da1:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b8bf0f7e-2099-4950-b964-3af11536196f" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod8bd3da1", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6e7853ca-c93b-49cb-aad9-02c55c26417f", + "x-ms-ratelimit-remaining-calls-per-second": "166.55" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod8bd3da1%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "fa175043-96d7-4ac7-83b9-f23cca8cd8be", + "x-ms-ratelimit-remaining-calls-per-second": "166.533333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod8bd3da1/_tags/tagd8bd3da1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:01: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": "8d04011a-ee38-4f46-a973-ca43ca80f29e" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repod8bd3da1", + "tag": { + "name": "tagd8bd3da1", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T09:01:41.0221933Z", + "lastUpdateTime": "2022-07-28T09:01:41.0221933Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod8bd3da1/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "91", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod8bd3da1:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5926f6bf-4265-4446-8d04-d23a568c2d2d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod8bd3da1", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ec829bfa-4b8f-456e-bbeb-fdd2dfdc55bb", + "x-ms-ratelimit-remaining-calls-per-second": "166.516667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod8bd3da1%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b1b1a547-bec1-465c-94ab-3d747a219de7", + "x-ms-ratelimit-remaining-calls-per-second": "166.5" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod8bd3da1/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "91", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1827", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01: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": "99aefc8b-75a1-4db1-93fb-9fc1a214721f" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repod8bd3da1", + "manifest": { + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "imageSize": 61611, + "createdTime": "2022-07-28T09:01:40.9158101Z", + "lastUpdateTime": "2022-07-28T09:01:40.9158101Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tagd8bd3da1" + ], + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + }, + "references": [ + { + "digest": "sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4", + "architecture": "amd64", + "os": "linux" + }, + { + "digest": "sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c", + "architecture": "arm", + "os": "linux" + }, + { + "digest": "sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c", + "architecture": "arm", + "os": "linux" + }, + { + "digest": "sha256:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:8377f36b3d74a8a4a95857a49d17a2969a2208eeb47a8af77bfa0136ef88e968", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod8bd3da1/_tags/tagd8bd3da1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:01: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod8bd3da1:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a39064cc-853c-489c-8750-50e99362f4be" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod8bd3da1", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "15b1d952-b4c4-443a-8808-2ac5a43cc6e9", + "x-ms-ratelimit-remaining-calls-per-second": "166.483333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod8bd3da1%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:01:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "317ef6bd-1e2c-4235-ba75-934641347245", + "x-ms-ratelimit-remaining-calls-per-second": "166.466667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod8bd3da1/_tags/tagd8bd3da1?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:01: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": "6f97bd66-299c-4d41-a893-72d7b534d966" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repod8bd3da1", + "tag": { + "name": "tagd8bd3da1", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T09:01:41.0221933Z", + "lastUpdateTime": "2022-07-28T09:01:41.0221933Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod8bd3da1/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:02: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod8bd3da1:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c2b898d0-0453-45f1-89fb-62e464152715" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod8bd3da1", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:02:00 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "cdcf317f-6760-477f-be26-697411012228", + "x-ms-ratelimit-remaining-calls-per-second": "166.45" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod8bd3da1%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:02:00 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0147c614-e5bd-4018-99c4-53d7fe112552", + "x-ms-ratelimit-remaining-calls-per-second": "166.433333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repod8bd3da1/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1823", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:02:00 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": "553d5f12-171e-49ad-9477-128f96af3064" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repod8bd3da1", + "manifest": { + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "imageSize": 61611, + "createdTime": "2022-07-28T09:01:40.9158101Z", + "lastUpdateTime": "2022-07-28T09:01:40.9158101Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tagd8bd3da1" + ], + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:8377f36b3d74a8a4a95857a49d17a2969a2208eeb47a8af77bfa0136ef88e968", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_manifest_properties_kwargs.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_manifest_properties_kwargs.json new file mode 100644 index 000000000000..ea6c44417309 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_manifest_properties_kwargs.json @@ -0,0 +1,2977 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:02:00 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAQAAAG9HdNoOAAAAoQVBHgEAAACFR3TaDgAAAA; expires=Sat, 27-Aug-2022 09:02:00 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAQAAAG9HdNoOAAAAoQVBHgEAAACFR3TaDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-JAvEzhAZbiSRAZuYFVsneQ\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:02:00 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAQAAAG9HdNoOAAAAoQVBHgEAAACFR3TaDgAAAA; expires=Sat, 27-Aug-2022 09:02:00 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "9e1dab93-eeaa-443e-9f80-48e1993a5ede", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAQAAAG9HdNoOAAAAoQVBHgEAAACFR3TaDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "9e1dab93-eeaa-443e-9f80-48e1993a5ede", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:02:00 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAgAAAG9HdNoOAAAAoQVBHgEAAACFR3TaDgAAAA; expires=Sat, 27-Aug-2022 09:02:00 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo99f2408f:tag99f2408f" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:02:00 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-f2232154-0e53-11ed-97a4-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4b8f1e17-a5b3-4d6d-9dad-821a0eff5b48", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-routing-request-id": "WESTUS:20220728T090201Z:4b8f1e17-a5b3-4d6d-9dad-821a0eff5b48" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-f2232154-0e53-11ed-97a4-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "58", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:02:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-f2232154-0e53-11ed-97a4-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e1047ad8-40be-485f-b31a-8e518be765c6", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-routing-request-id": "WESTUS:20220728T090211Z:e1047ad8-40be-485f-b31a-8e518be765c6" + }, + "ResponseBody": { + "repo99f2408f:tag99f2408f": "Pending", + "status": "Accepted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-f2232154-0e53-11ed-97a4-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "58", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:02:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-f2232154-0e53-11ed-97a4-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ce5b249b-a4ef-4de4-8a59-8621c411c88a", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-routing-request-id": "WESTUS:20220728T090221Z:ce5b249b-a4ef-4de4-8a59-8621c411c88a" + }, + "ResponseBody": { + "repo99f2408f:tag99f2408f": "Pending", + "status": "Accepted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-f2232154-0e53-11ed-97a4-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:02:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5147d60c-1547-4592-9461-bae4972b9b1e", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-routing-request-id": "WESTUS:20220728T090231Z:5147d60c-1547-4592-9461-bae4972b9b1e" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo99f2408f:tag99f2408f" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:02:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-04a1893c-0e54-11ed-8d73-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "11124725-0b97-47be-ace4-807ec417cfff", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-routing-request-id": "WESTUS:20220728T090231Z:11124725-0b97-47be-ace4-807ec417cfff" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-04a1893c-0e54-11ed-8d73-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "118", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:02:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-04a1893c-0e54-11ed-8d73-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9b654f62-a63e-4539-88b2-05ef2da568e2", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-routing-request-id": "WESTUS:20220728T090242Z:9b654f62-a63e-4539-88b2-05ef2da568e2" + }, + "ResponseBody": { + "repo99f2408f@sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503": "Pending", + "status": "Accepted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-04a1893c-0e54-11ed-8d73-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "118", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:02:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-04a1893c-0e54-11ed-8d73-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "830df2a4-8e6e-4610-bfcb-17af995fbceb", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-routing-request-id": "WESTUS:20220728T090252Z:830df2a4-8e6e-4610-bfcb-17af995fbceb" + }, + "ResponseBody": { + "repo99f2408f@sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503": "Pending", + "status": "Accepted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-04a1893c-0e54-11ed-8d73-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "118", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-04a1893c-0e54-11ed-8d73-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "91c54ab4-8120-42af-ad9c-d15f244a21f3", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-routing-request-id": "WESTUS:20220728T090302Z:91c54ab4-8120-42af-ad9c-d15f244a21f3" + }, + "ResponseBody": { + "repo99f2408f@sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503": "Pending", + "status": "Accepted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS/operationResults/registries-04a1893c-0e54-11ed-8d73-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "235b129a-2b1d-4788-aa6d-98534efee99d", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-routing-request-id": "WESTUS:20220728T090312Z:235b129a-2b1d-4788-aa6d-98534efee99d" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_tags/tag99f2408f?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:03: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo99f2408f:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "40a078f1-6cf4-4efc-8eff-695352baf7d1" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo99f2408f", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:12 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAgAAAG9HdNoOAAAAoQVBHgEAAACFR3TaDgAAAA; expires=Sat, 27-Aug-2022 09:03:13 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAgAAAG9HdNoOAAAAoQVBHgEAAACFR3TaDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:12 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAgAAAG9HdNoOAAAAoQVBHgEAAACFR3TaDgAAAA; expires=Sat, 27-Aug-2022 09:03:13 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "17c449e8-b8a8-4636-bd26-f192beb07ca4", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAgAAAG9HdNoOAAAAoQVBHgEAAACFR3TaDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "17c449e8-b8a8-4636-bd26-f192beb07ca4", + "Content-Length": "114", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-cgaphkYaXLUsFdMzEQOMGA\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:12 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AmYUs-NNCvxFty3K3cZjqPIf2L3jAgAAAG9HdNoOAAAAoQVBHgIAAACFR3TaDgAAAA; expires=Sat, 27-Aug-2022 09:03:13 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:14 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "27c2f400-9476-46f8-9c4d-e7660dc72b9b", + "x-ms-ratelimit-remaining-calls-per-second": "166.65" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo99f2408f%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:14 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b7506c5b-0f5c-4f72-990d-d73b335d2ef4", + "x-ms-ratelimit-remaining-calls-per-second": "166.633333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_tags/tag99f2408f?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:03: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": "224c98f1-5b0e-4620-94fd-d8ab7b64080a" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo99f2408f", + "tag": { + "name": "tag99f2408f", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T09:02:25.7119803Z", + "lastUpdateTime": "2022-07-28T09:02:25.7119803Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:03: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo99f2408f:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "90385a6b-c837-4187-8247-386c4b52d368" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo99f2408f", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:14 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "da2dabef-1c65-4b65-927d-0d34756630c5", + "x-ms-ratelimit-remaining-calls-per-second": "166.616667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo99f2408f%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:14 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "351e008d-5608-4980-adab-b904d5fa432c", + "x-ms-ratelimit-remaining-calls-per-second": "166.6" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1823", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03: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": "15f768c6-802a-4f48-ba42-ef5cd888fc17" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo99f2408f", + "manifest": { + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "imageSize": 61611, + "createdTime": "2022-07-28T09:02:25.7972422Z", + "lastUpdateTime": "2022-07-28T09:02:25.7972422Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tag99f2408f" + ], + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:8377f36b3d74a8a4a95857a49d17a2969a2208eeb47a8af77bfa0136ef88e968", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_tags/tag99f2408f?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:03: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo99f2408f:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f5b24ff2-8360-44c5-84f6-170bc8c8929c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo99f2408f", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:14 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ad21d98d-b5f5-46cf-b7ca-81e085cb415f", + "x-ms-ratelimit-remaining-calls-per-second": "166.583333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo99f2408f%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:14 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "bcb34389-9363-41a7-bb8d-3c6687cf336e", + "x-ms-ratelimit-remaining-calls-per-second": "166.566667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_tags/tag99f2408f?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:03: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": "56723047-773c-4225-ac59-2fa3d3839ee5" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo99f2408f", + "tag": { + "name": "tag99f2408f", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T09:02:25.7119803Z", + "lastUpdateTime": "2022-07-28T09:02:25.7119803Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "24", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo99f2408f:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a2b8e91e-e166-48bb-be3d-e002c8a450c9" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo99f2408f", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:15 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "621cbb28-4d97-4660-9cb9-7cfd8edb01ea", + "x-ms-ratelimit-remaining-calls-per-second": "166.55" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo99f2408f%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:15 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3948beb5-b7d8-4e3c-ad13-5088a93cec8f", + "x-ms-ratelimit-remaining-calls-per-second": "166.533333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "24", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "deleteEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "1824", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03: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": "78711f60-3932-4bb4-80ce-f1506b2e1a18" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo99f2408f", + "manifest": { + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "imageSize": 61611, + "createdTime": "2022-07-28T09:02:25.7972422Z", + "lastUpdateTime": "2022-07-28T09:02:25.7972422Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tag99f2408f" + ], + "changeableAttributes": { + "deleteEnabled": false, + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:8377f36b3d74a8a4a95857a49d17a2969a2208eeb47a8af77bfa0136ef88e968", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_tags/tag99f2408f?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:03: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo99f2408f:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "878a90c5-ce59-4d08-bef5-0affd2c7f55d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo99f2408f", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:15 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b10486ed-a0bc-40db-af57-eb92fc121243", + "x-ms-ratelimit-remaining-calls-per-second": "166.516667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo99f2408f%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:15 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "9643757e-3ed2-41cb-9f7f-64ad79a6eb66", + "x-ms-ratelimit-remaining-calls-per-second": "166.5" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_tags/tag99f2408f?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:03: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": "83b3c508-8756-43fe-971c-4af08ab2014d" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo99f2408f", + "tag": { + "name": "tag99f2408f", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T09:02:25.7119803Z", + "lastUpdateTime": "2022-07-28T09:02:25.7119803Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo99f2408f:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "bd98073e-edd0-47d5-b076-f9888642744e" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo99f2408f", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:15 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "440e6bda-cb7c-4c5c-a709-f071dd534f8b", + "x-ms-ratelimit-remaining-calls-per-second": "166.483333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo99f2408f%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:15 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7b8502ca-1ecc-47f9-8485-a01ec1b6f213", + "x-ms-ratelimit-remaining-calls-per-second": "166.466667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "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": "1825", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03: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": "135ffca2-3b23-4551-80e9-a6a7a5753aee" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo99f2408f", + "manifest": { + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "imageSize": 61611, + "createdTime": "2022-07-28T09:02:25.7972422Z", + "lastUpdateTime": "2022-07-28T09:02:25.7972422Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tag99f2408f" + ], + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": true, + "readEnabled": false, + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:8377f36b3d74a8a4a95857a49d17a2969a2208eeb47a8af77bfa0136ef88e968", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_tags/tag99f2408f?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:03: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo99f2408f:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "33713d16-cf48-469b-ab2d-719fdbce2825" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo99f2408f", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:16 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e2bd896c-e672-46b7-a872-a5a0c64e5524", + "x-ms-ratelimit-remaining-calls-per-second": "166.45" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo99f2408f%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:16 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "08008d4d-51eb-4c4f-99ef-98d27efd85d4", + "x-ms-ratelimit-remaining-calls-per-second": "166.433333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_tags/tag99f2408f?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:03: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": "51f8385b-a7a0-4791-90a5-1b898dc83a25" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo99f2408f", + "tag": { + "name": "tag99f2408f", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T09:02:25.7119803Z", + "lastUpdateTime": "2022-07-28T09:02:25.7119803Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "23", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "writeEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo99f2408f:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "dd73a3cf-c291-4a66-a318-94b6050ecc56" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo99f2408f", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:16 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e11cf930-bc9f-4d65-ae67-9ce88f9f4ee4", + "x-ms-ratelimit-remaining-calls-per-second": "166.416667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo99f2408f%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:16 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5ee20a06-b677-45bb-9e3b-529b171bcb76", + "x-ms-ratelimit-remaining-calls-per-second": "166.4" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "23", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "writeEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "1826", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03: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": "94cb601a-d9cb-4266-94ad-3684d9016ad4" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo99f2408f", + "manifest": { + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "imageSize": 61611, + "createdTime": "2022-07-28T09:02:25.7972422Z", + "lastUpdateTime": "2022-07-28T09:02:25.7972422Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tag99f2408f" + ], + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:8377f36b3d74a8a4a95857a49d17a2969a2208eeb47a8af77bfa0136ef88e968", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_tags/tag99f2408f?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:03: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo99f2408f:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "59076b62-e385-4f34-b941-7dad9955bd5c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo99f2408f", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "252cd6ff-1750-44e5-a59d-e1eece266ffe", + "x-ms-ratelimit-remaining-calls-per-second": "166.383333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo99f2408f%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5808d89a-025a-4288-b198-e00536951f98", + "x-ms-ratelimit-remaining-calls-per-second": "166.366667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_tags/tag99f2408f?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:03: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": "3621d8b9-f1d6-482f-92bd-cb781dd8fd6f" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo99f2408f", + "tag": { + "name": "tag99f2408f", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T09:02:25.7119803Z", + "lastUpdateTime": "2022-07-28T09:02:25.7119803Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "listEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo99f2408f:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "98ba7e76-62fe-482b-a7fa-501544ee969c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo99f2408f", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "1dfafc7e-54c3-49c0-9d4b-ba8264e6b216", + "x-ms-ratelimit-remaining-calls-per-second": "166.35" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo99f2408f%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6007f561-2b60-479e-93d0-bf9c8d6db528", + "x-ms-ratelimit-remaining-calls-per-second": "166.333333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "listEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "1827", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03: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": "341d5dfc-d06c-43d5-b609-853ce4918459" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo99f2408f", + "manifest": { + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "imageSize": 61611, + "createdTime": "2022-07-28T09:02:25.7972422Z", + "lastUpdateTime": "2022-07-28T09:02:25.7972422Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tag99f2408f" + ], + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + }, + "references": [ + { + "digest": "sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4", + "architecture": "amd64", + "os": "linux" + }, + { + "digest": "sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c", + "architecture": "arm", + "os": "linux" + }, + { + "digest": "sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c", + "architecture": "arm", + "os": "linux" + }, + { + "digest": "sha256:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:8377f36b3d74a8a4a95857a49d17a2969a2208eeb47a8af77bfa0136ef88e968", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_tags/tag99f2408f?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:03: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo99f2408f:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "1494b92b-e93e-4333-b37b-41fe6c29a418" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo99f2408f", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "525c5c98-88b1-4dcb-907d-d29ef0be3181", + "x-ms-ratelimit-remaining-calls-per-second": "166.316667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo99f2408f%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "1614aa3a-c053-451d-a772-4feb494aebf8", + "x-ms-ratelimit-remaining-calls-per-second": "166.3" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_tags/tag99f2408f?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 09:03: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": "9d479e4b-3c28-42a7-ab50-1b8680704809" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo99f2408f", + "tag": { + "name": "tag99f2408f", + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "createdTime": "2022-07-28T09:02:25.7119803Z", + "lastUpdateTime": "2022-07-28T09:02:25.7119803Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo99f2408f:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "0fc45118-3ca0-402b-86ab-e43c7810338a" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo99f2408f", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a263ae61-3e4b-4769-ab5d-b2fc7020598f", + "x-ms-ratelimit-remaining-calls-per-second": "166.283333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo99f2408f%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ad3286c2-2bf0-44b6-824d-101bdadb069e", + "x-ms-ratelimit-remaining-calls-per-second": "166.266667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo99f2408f/_manifests/sha256_encoded_stream", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1823", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 09:03: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": "467ca7df-65e2-4007-9ce9-6ad4720b086a" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo99f2408f", + "manifest": { + "digest": "sha256:53f1bbee2f52c39e41682ee1d388285290c5c8a76cc92b42687eecf38e0af3f0", + "imageSize": 61611, + "createdTime": "2022-07-28T09:02:25.7972422Z", + "lastUpdateTime": "2022-07-28T09:02:25.7972422Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tag99f2408f" + ], + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:8377f36b3d74a8a4a95857a49d17a2969a2208eeb47a8af77bfa0136ef88e968", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:90baaa24dd546f7d73c33830e849c1d9298d3699c150eb823d13737a49de6503", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_repository_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_repository_properties.json new file mode 100644 index 000000000000..e76c1341a6ac --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_repository_properties.json @@ -0,0 +1,1072 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-jQ_6tzYozmMU79E-WQ12bA\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:34 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBQAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:34 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBQAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:34 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBQAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:34 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "5ae04a60-3e25-478e-91f2-ff2c9823de45", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBQAAADSqWtoOAAAAjvjTdAEAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "5ae04a60-3e25-478e-91f2-ff2c9823de45", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:34 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBQAAADSqWtoOAAAAjvjTdAIAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:35 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo5b823eaa:tag5b823eaa" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-8a928ff2-ff0f-11ec-867d-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "19631ec2-0a62-4910-8864-1c62c6ef79ef", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-routing-request-id": "WESTUS:20220708T224435Z:19631ec2-0a62-4910-8864-1c62c6ef79ef" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-8a928ff2-ff0f-11ec-867d-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c68ed683-9178-4ea1-a620-e75a8d9e64d3", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-routing-request-id": "WESTUS:20220708T224445Z:c68ed683-9178-4ea1-a620-e75a8d9e64d3" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo5b823eaa:tag5b823eaa" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-90fd0dd7-ff0f-11ec-908e-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f988d0f1-ce9d-4e74-87f0-4a9bcf39c110", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-routing-request-id": "WESTUS:20220708T224445Z:f988d0f1-ce9d-4e74-87f0-4a9bcf39c110" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-90fd0dd7-ff0f-11ec-908e-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a2d8f191-c566-4751-a672-c8f6359141e7", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-routing-request-id": "WESTUS:20220708T224456Z:a2d8f191-c566-4751-a672-c8f6359141e7" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5b823eaa?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5b823eaa:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a338867a-06f3-49f0-9b54-fa76679f27af" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5b823eaa", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-3UOxfU6RrQM-RqtsQwd9Xg\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:55 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBQAAADSqWtoOAAAAjvjTdAIAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:56 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBQAAADSqWtoOAAAAjvjTdAIAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:55 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBQAAADSqWtoOAAAAjvjTdAIAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:56 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "d36e9bd4-5e5b-492a-b8a7-9783d3097281", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBQAAADSqWtoOAAAAjvjTdAIAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "d36e9bd4-5e5b-492a-b8a7-9783d3097281", + "Content-Length": "114", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-trrBg_CKdEplSprlHe6MTA\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:55 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBgAAADSqWtoOAAAAjvjTdAIAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:56 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:56 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d40ed3b3-e611-47ca-acee-41921c37efc6", + "x-ms-ratelimit-remaining-calls-per-second": "165.85" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5b823eaa%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:56 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "23a29eff-5192-4c7b-8d0d-35da83c94c97", + "x-ms-ratelimit-remaining-calls-per-second": "165.833333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5b823eaa?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "295", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:56 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": "80e3afee-5bbf-41a8-9cb1-479090d7ed23" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo5b823eaa", + "createdTime": "2022-07-08T21:53:59.6072425Z", + "lastUpdateTime": "2022-07-08T21:53:58.2225581Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5b823eaa?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "91", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5b823eaa:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "562d0e96-5127-48a2-a30c-a1e165ec9ab3" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5b823eaa", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:56 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "314ec71d-361e-467f-9c83-0d110d5da106", + "x-ms-ratelimit-remaining-calls-per-second": "165.816667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5b823eaa%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:56 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d5308c70-ab6a-4048-a0f4-9e51a089e9c7", + "x-ms-ratelimit-remaining-calls-per-second": "165.8" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5b823eaa?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "91", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "299", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:56 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": "d08c82cf-7991-4234-b48b-3db7400fb5a6" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo5b823eaa", + "createdTime": "2022-07-08T21:53:59.6072425Z", + "lastUpdateTime": "2022-07-08T21:53:58.2225581Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5b823eaa?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5b823eaa:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "788c7fdf-2c9d-46c7-be6a-5cc49a494e90" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5b823eaa", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:56 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "44be1fef-7e90-4972-aa5a-a42e385c3df6", + "x-ms-ratelimit-remaining-calls-per-second": "165.783333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5b823eaa%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:56 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "805f8577-4f7b-43c3-b755-19b989894c31", + "x-ms-ratelimit-remaining-calls-per-second": "165.766667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5b823eaa?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "295", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:57 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": "7d5955f1-a5bb-4941-b8e2-fdb6b248adbd" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo5b823eaa", + "createdTime": "2022-07-08T21:53:59.6072425Z", + "lastUpdateTime": "2022-07-08T21:53:58.2225581Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_repository_properties_kwargs.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_repository_properties_kwargs.json new file mode 100644 index 000000000000..2df4f9ae5e6e --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_repository_properties_kwargs.json @@ -0,0 +1,1693 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:56 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBgAAADSqWtoOAAAAjvjTdAIAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:57 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBgAAADSqWtoOAAAAjvjTdAIAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:57 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBgAAADSqWtoOAAAAjvjTdAIAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:57 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "0f60ed6e-0744-47be-a6d4-6361a391c166", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBgAAADSqWtoOAAAAjvjTdAIAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "0f60ed6e-0744-47be-a6d4-6361a391c166", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:57 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBgAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:44:57 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo23f64198:tag23f64198" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:44:57 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-980ea733-ff0f-11ec-a445-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b15caff9-d13e-4ee9-b72b-6f49249c7e83", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-routing-request-id": "WESTUS:20220708T224458Z:b15caff9-d13e-4ee9-b72b-6f49249c7e83" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-980ea733-ff0f-11ec-a445-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "db877e95-1052-40d1-99a6-cea3e1b6ce2c", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-routing-request-id": "WESTUS:20220708T224508Z:db877e95-1052-40d1-99a6-cea3e1b6ce2c" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo23f64198:tag23f64198" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-9e85ee79-ff0f-11ec-9a3e-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5aad8c54-14c8-426f-97e9-735ccfd9fe68", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-routing-request-id": "WESTUS:20220708T224508Z:5aad8c54-14c8-426f-97e9-735ccfd9fe68" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-9e85ee79-ff0f-11ec-9a3e-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "eb954bb1-e19c-44a7-964a-6838d603439e", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-routing-request-id": "WESTUS:20220708T224519Z:eb954bb1-e19c-44a7-964a-6838d603439e" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo23f64198?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:45: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo23f64198:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b0a93ce5-93d3-48ae-ad69-1cd00c91142e" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo23f64198", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:19 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBgAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:45:19 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBgAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:19 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBgAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:45:19 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "4e05e64c-09d8-4b86-abd9-a457e3d61dae", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBgAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "4e05e64c-09d8-4b86-abd9-a457e3d61dae", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:19 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZBwAAADSqWtoOAAAAjvjTdAMAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:45:20 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "432b50bd-0b49-46c0-863c-f26b96a0cf74", + "x-ms-ratelimit-remaining-calls-per-second": "166.416667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo23f64198%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "222be7d0-1afe-4489-a9d5-7536718fa1e7", + "x-ms-ratelimit-remaining-calls-per-second": "166.4" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo23f64198?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "close", + "Content-Length": "295", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45: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": "7186e095-6aed-4c38-bf3b-9c294b29e13f" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo23f64198", + "createdTime": "2022-07-08T21:54:22.7074025Z", + "lastUpdateTime": "2022-07-08T21:54:21.3585661Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo23f64198?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo23f64198:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7942a497-0f96-4416-a9c9-4bb507ff8f4d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo23f64198", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "50e9cb5c-5bb2-4513-87ce-844c89421b9b", + "x-ms-ratelimit-remaining-calls-per-second": "166.616667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo23f64198%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f79e4c51-8021-4b75-b0f0-2b746cbb39a3", + "x-ms-ratelimit-remaining-calls-per-second": "166.1" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo23f64198?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "295", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45: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": "68a93519-21d3-4840-9a53-f4f92a3968ed" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo23f64198", + "createdTime": "2022-07-08T21:54:22.7074025Z", + "lastUpdateTime": "2022-07-08T21:54:21.3585661Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo23f64198?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "24", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo23f64198:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "92681b83-6c11-41da-9c9e-8b0684b40968" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo23f64198", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "79eebfe5-9a3c-4fbe-a55b-542f84fb8440", + "x-ms-ratelimit-remaining-calls-per-second": "166.083333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo23f64198%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:20 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7fc50b51-e1c1-4612-a2b4-8a3bd1677183", + "x-ms-ratelimit-remaining-calls-per-second": "166.066667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo23f64198?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "24", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "deleteEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "296", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45: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": "3bbd59d9-842a-42b3-a4c1-df3ca9a80118" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo23f64198", + "createdTime": "2022-07-08T21:54:22.7074025Z", + "lastUpdateTime": "2022-07-08T21:54:21.3585661Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo23f64198?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo23f64198:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "6b143308-767a-4280-a64e-1daac41573e3" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo23f64198", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:21 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "30ba3588-34b9-41a6-af6b-7c2ded536016", + "x-ms-ratelimit-remaining-calls-per-second": "166.05" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo23f64198%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:21 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "58997434-5e81-48bf-9c03-72bc690b2ded", + "x-ms-ratelimit-remaining-calls-per-second": "166.033333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo23f64198?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "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": "297", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:21 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": "e87620f7-39d7-4d1b-b82b-5ba18a178519" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo23f64198", + "createdTime": "2022-07-08T21:54:22.7074025Z", + "lastUpdateTime": "2022-07-08T21:54:21.3585661Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": true, + "readEnabled": false, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo23f64198?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-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "writeEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:21 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo23f64198:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a07bdce3-ffda-49a1-9e26-379cd96293bd" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo23f64198", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:21 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "da7d2093-fb2d-46e3-87b3-279eddbeced1", + "x-ms-ratelimit-remaining-calls-per-second": "166.016667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo23f64198%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:21 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "51ced16d-44da-42bc-9830-70ba5c9e0732", + "x-ms-ratelimit-remaining-calls-per-second": "166" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo23f64198?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-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "writeEnabled": false + }, + "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": "Fri, 08 Jul 2022 22:45:21 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": "1a01531f-8f19-40e2-9773-bdfe9139dced" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo23f64198", + "createdTime": "2022-07-08T21:54:22.7074025Z", + "lastUpdateTime": "2022-07-08T21:54:21.3585661Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo23f64198?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "listEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:21 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo23f64198:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8d69b92d-9367-4728-8cb9-9ebb2652f41b" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo23f64198", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:21 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0fc4b96c-f97d-4848-998e-e94fc2817edd", + "x-ms-ratelimit-remaining-calls-per-second": "165.983333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo23f64198%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:21 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c7261286-07ea-4330-9d39-56ffe9af44bf", + "x-ms-ratelimit-remaining-calls-per-second": "165.966667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo23f64198?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "listEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "299", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:21 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": "5826b7ba-f241-427f-9123-be8a99290b1b" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo23f64198", + "createdTime": "2022-07-08T21:54:22.7074025Z", + "lastUpdateTime": "2022-07-08T21:54:21.3585661Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo23f64198?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:21 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo23f64198:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "82f09311-0cb1-4c14-8711-e7ad1d92a453" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo23f64198", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:22 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a37c8c52-a41b-405d-bfba-744b025ab2be", + "x-ms-ratelimit-remaining-calls-per-second": "165.95" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo23f64198%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:22 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c34a0351-c4e8-455b-a456-fdc23d5682d4", + "x-ms-ratelimit-remaining-calls-per-second": "165.933333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo23f64198?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "295", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:45:22 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": "42007234-5fd1-4cf1-b9e6-78d636f454c9" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo23f64198", + "createdTime": "2022-07-08T21:54:22.7074025Z", + "lastUpdateTime": "2022-07-08T21:54:21.3585661Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_tag_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_tag_properties.json new file mode 100644 index 000000000000..9810458e1f51 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_tag_properties.json @@ -0,0 +1,1081 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-st8ZAY6cqdTdlREz55DQlQ\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:24 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAADSqWtoOAAAAjvjTdAgAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:47:25 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAADSqWtoOAAAAjvjTdAgAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-Ahbka6IlEWBRA8ZJemMaXQ\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:24 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAADSqWtoOAAAAjvjTdAgAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:47:25 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "e9479e97-6227-41d9-9633-cf184589effc", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAADSqWtoOAAAAjvjTdAgAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "e9479e97-6227-41d9-9633-cf184589effc", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:25 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAADSqWtoOAAAAjvjTdAkAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:47:25 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repoa4a73b86:taga4a73b86" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f04fba63-ff0f-11ec-9bb2-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d493243a-6ab3-4898-8935-6458b0f36693", + "x-ms-ratelimit-remaining-subscription-writes": "1182", + "x-ms-routing-request-id": "WESTUS:20220708T224725Z:d493243a-6ab3-4898-8935-6458b0f36693" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f04fba63-ff0f-11ec-9bb2-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e70dda53-614d-45d8-ba9f-36c7b52835ca", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-routing-request-id": "WESTUS:20220708T224736Z:e70dda53-614d-45d8-ba9f-36c7b52835ca" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repoa4a73b86:taga4a73b86" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f6b3d316-ff0f-11ec-8616-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6bcbbdb6-37b1-402c-8caf-2e92c7f57804", + "x-ms-ratelimit-remaining-subscription-writes": "1181", + "x-ms-routing-request-id": "WESTUS:20220708T224736Z:6bcbbdb6-37b1-402c-8caf-2e92c7f57804" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-f6b3d316-ff0f-11ec-8616-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "15fdc2d4-fa7f-464d-96bb-dd106c221895", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-routing-request-id": "WESTUS:20220708T224746Z:15fdc2d4-fa7f-464d-96bb-dd106c221895" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa4a73b86/_tags/taga4a73b86?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:47:46 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repoa4a73b86:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "855613c0-1512-4855-ad36-5e1b3c51f240" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repoa4a73b86", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:46 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAADSqWtoOAAAAjvjTdAkAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:47:46 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAADSqWtoOAAAAjvjTdAkAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-81chs6gt1IMSxYZdryPZQw\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:46 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAADSqWtoOAAAAjvjTdAkAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:47:46 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "535b0652-bdbd-41c4-94ef-9b3cf21137c0", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAADSqWtoOAAAAjvjTdAkAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "535b0652-bdbd-41c4-94ef-9b3cf21137c0", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:46 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAADSqWtoOAAAAjvjTdAkAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:47:46 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:47 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "88085ede-e62e-4a48-aaa6-5e42edccbbd4", + "x-ms-ratelimit-remaining-calls-per-second": "166.2" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepoa4a73b86%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:47 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "1f2329a1-123a-4f17-82d2-5d9eb37aedb8", + "x-ms-ratelimit-remaining-calls-per-second": "166.183333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa4a73b86/_tags/taga4a73b86?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:47:47 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": "1208013e-b2d3-4bea-93e9-4b5ee27032bd" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repoa4a73b86", + "tag": { + "name": "taga4a73b86", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:56:49.4316941Z", + "lastUpdateTime": "2022-07-08T21:56:49.4316941Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa4a73b86/_tags/taga4a73b86?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "91", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:47 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repoa4a73b86:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b95a8ad3-2be7-437c-8dc2-6dffb97a98d4" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repoa4a73b86", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:47 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ed4437da-d25b-4d91-8dae-d94b13737f95", + "x-ms-ratelimit-remaining-calls-per-second": "166.166667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepoa4a73b86%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:47 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b167eb38-3ae9-4b99-8125-23b5fce95fd6", + "x-ms-ratelimit-remaining-calls-per-second": "166.15" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa4a73b86/_tags/taga4a73b86?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "91", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "394", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:47 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": "ac77a890-b1d5-4bfc-8a60-3f0a752f6750" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repoa4a73b86", + "tag": { + "name": "taga4a73b86", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:56:49.4316941Z", + "lastUpdateTime": "2022-07-08T21:56:49.4316941Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa4a73b86/_tags/taga4a73b86?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:47 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repoa4a73b86:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d83e8e08-b72f-47c4-91a9-c632d6dc94e4" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repoa4a73b86", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:47 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "47e42c3b-4e61-44bf-8bdd-b36fc8b44ca8", + "x-ms-ratelimit-remaining-calls-per-second": "166.133333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepoa4a73b86%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:47 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "090050c4-be18-4240-9098-b4a7f283fa61", + "x-ms-ratelimit-remaining-calls-per-second": "166.116667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa4a73b86/_tags/taga4a73b86?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "390", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:47 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": "b531791d-48e6-4c36-9fe4-4427f5946bb6" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repoa4a73b86", + "tag": { + "name": "taga4a73b86", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:56:49.4316941Z", + "lastUpdateTime": "2022-07-08T21:56:49.4316941Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_tag_properties_kwargs.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_tag_properties_kwargs.json new file mode 100644 index 000000000000..bf329780d896 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_update_tag_properties_kwargs.json @@ -0,0 +1,1551 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:47 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAADSqWtoOAAAAjvjTdAkAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:47:48 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAADSqWtoOAAAAjvjTdAkAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:47 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAADSqWtoOAAAAjvjTdAkAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:47:48 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "6ea746bc-d331-400e-b0a2-1ceee2d3b7ee", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAADSqWtoOAAAAjvjTdAkAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "6ea746bc-d331-400e-b0a2-1ceee2d3b7ee", + "Content-Length": "114", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-608Trvv-_NuIvYwynPJclg\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:47 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAADSqWtoOAAAAjvjTdAoAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:47:48 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtests/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo571f3e74:tag571f3e74" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-fdb05d31-ff0f-11ec-aa58-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ca5143e0-19b8-4ef4-859a-b31642e1f45f", + "x-ms-ratelimit-remaining-subscription-writes": "1180", + "x-ms-routing-request-id": "WESTUS:20220708T224748Z:ca5143e0-19b8-4ef4-859a-b31642e1f45f" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-fdb05d31-ff0f-11ec-aa58-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b1c1e1bc-67f5-437f-9299-1edaeea5949d", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-routing-request-id": "WESTUS:20220708T224758Z:b1c1e1bc-67f5-437f-9299-1edaeea5949d" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/fake_rg/providers/Microsoft.ContainerRegistry/registries/yallacrtestsanon/importImage?api-version=2019-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "source": { + "registryUri": "registry.hub.docker.com", + "sourceImage": "library/hello-world" + }, + "targetTags": [ + "repo571f3e74:tag571f3e74" + ], + "mode": "Force" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "2017-10-01, 2019-05-01, 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:47:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-04266046-ff10-11ec-894b-5cf37093a909?api-version=2019-05-01", + "Pragma": "no-cache", + "Retry-After": "10", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "362551bf-b851-49f6-9bee-d68eff238ff4", + "x-ms-ratelimit-remaining-subscription-writes": "1179", + "x-ms-routing-request-id": "WESTUS:20220708T224759Z:362551bf-b851-49f6-9bee-d68eff238ff4" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/providers/Microsoft.ContainerRegistry/locations/WESTUS2/operationResults/registries-04266046-ff10-11ec-894b-5cf37093a909?api-version=2019-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-containerregistry/8.2.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "118344bd-8e7e-40e8-b3a5-01690ed773dc", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-routing-request-id": "WESTUS:20220708T224809Z:118344bd-8e7e-40e8-b3a5-01690ed773dc" + }, + "ResponseBody": { + "status": "Succeeded" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo571f3e74/_tags/tag571f3e74?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:48: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo571f3e74:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "1c4ba90c-5873-4854-a611-35eb0716096d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo571f3e74", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-yFEN5p41KIfM2hI1A3ryuA\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:08 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAADSqWtoOAAAAjvjTdAoAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:09 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAADSqWtoOAAAAjvjTdAoAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:08 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAADSqWtoOAAAAjvjTdAoAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:09 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "937b419b-6506-4e0b-b01f-3176a92969ec", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAADSqWtoOAAAAjvjTdAoAAAA4qlraDgAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "937b419b-6506-4e0b-b01f-3176a92969ec", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:09 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAADSqWtoOAAAAjvjTdAoAAAA4qlraDgAAAA; expires=Sun, 07-Aug-2022 22:48:09 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2152c7d8-c2cf-4509-985a-acc53ffa3072", + "x-ms-ratelimit-remaining-calls-per-second": "166.35" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo571f3e74%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "06b9d3c0-3c9f-411a-97c2-2be6a2d4533b", + "x-ms-ratelimit-remaining-calls-per-second": "166.2" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo571f3e74/_tags/tag571f3e74?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:48: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": "f087e7e5-c260-4701-b188-c5959cf93a23" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo571f3e74", + "tag": { + "name": "tag571f3e74", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:13.6101144Z", + "lastUpdateTime": "2022-07-08T21:57:13.6101144Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo571f3e74/_tags/tag571f3e74?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "24", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo571f3e74:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d02a735e-261a-4781-8b9a-f0027d034bd6" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo571f3e74", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "da222dfe-86f2-4ecb-a8ed-57994f286b5d", + "x-ms-ratelimit-remaining-calls-per-second": "166.183333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo571f3e74%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2fe56412-5a11-47e2-91e0-0290f7607293", + "x-ms-ratelimit-remaining-calls-per-second": "166.166667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo571f3e74/_tags/tag571f3e74?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "24", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "deleteEnabled": 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": "Fri, 08 Jul 2022 22:48: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": "1d1d8084-27a7-44c2-b551-43881efe0dcb" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo571f3e74", + "tag": { + "name": "tag571f3e74", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:13.6101144Z", + "lastUpdateTime": "2022-07-08T21:57:13.6101144Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo571f3e74/_tags/tag571f3e74?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo571f3e74:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "87985117-52fd-4671-a77f-fe2bf913b8a8" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo571f3e74", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "cf80094a-6500-4608-9cf1-a03adeaa2503", + "x-ms-ratelimit-remaining-calls-per-second": "166.15" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo571f3e74%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "42776025-25c6-48fc-bf68-001aa6613560", + "x-ms-ratelimit-remaining-calls-per-second": "166.133333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo571f3e74/_tags/tag571f3e74?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "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": "392", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48: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": "3786bd53-21c6-41b8-bf4f-8f20e607d1a6" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo571f3e74", + "tag": { + "name": "tag571f3e74", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:13.6101144Z", + "lastUpdateTime": "2022-07-08T21:57:13.6101144Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": true, + "readEnabled": false, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo571f3e74/_tags/tag571f3e74?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-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "writeEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo571f3e74:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e402675a-3470-493b-bcd6-1bbc0f473d9e" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo571f3e74", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4dc186de-f59d-44e0-b2b0-3998e85145a6", + "x-ms-ratelimit-remaining-calls-per-second": "166.116667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo571f3e74%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "029bc2a6-ecd9-429a-9211-b51cd4101497", + "x-ms-ratelimit-remaining-calls-per-second": "166.1" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo571f3e74/_tags/tag571f3e74?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-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "writeEnabled": false + }, + "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": "Fri, 08 Jul 2022 22:48: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": "3869762f-4fe8-4efd-b026-d7e560d04b55" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo571f3e74", + "tag": { + "name": "tag571f3e74", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:13.6101144Z", + "lastUpdateTime": "2022-07-08T21:57:13.6101144Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo571f3e74/_tags/tag571f3e74?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "listEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo571f3e74:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "07d0dc0e-00f4-40c5-9c01-aabd35b2e82a" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo571f3e74", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2a3d4936-18d7-4fe4-b29b-4c8a3ebe8639", + "x-ms-ratelimit-remaining-calls-per-second": "166.083333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo571f3e74%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b15ad757-360c-43ea-9525-952ecc4e9a54", + "x-ms-ratelimit-remaining-calls-per-second": "166.066667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo571f3e74/_tags/tag571f3e74?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "listEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "394", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48: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": "e636bc40-4345-448b-9e2d-0af5f905d11f" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo571f3e74", + "tag": { + "name": "tag571f3e74", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:13.6101144Z", + "lastUpdateTime": "2022-07-08T21:57:13.6101144Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo571f3e74/_tags/tag571f3e74?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo571f3e74:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f62e18e6-1948-4419-a47e-8ab78883c3ea" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo571f3e74", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "31f1c148-4520-41d0-8361-a5cb8461bff6", + "x-ms-ratelimit-remaining-calls-per-second": "166.05" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo571f3e74%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "close", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6775f767-8b9e-4b36-afc6-4d6a6885aab2", + "x-ms-ratelimit-remaining-calls-per-second": "166.033333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo571f3e74/_tags/tag571f3e74?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "390", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:48: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": "1d495deb-aed8-4389-a65c-67f5e11516c3" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo571f3e74", + "tag": { + "name": "tag571f3e74", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T21:57:13.6101144Z", + "lastUpdateTime": "2022-07-08T21:57:13.6101144Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_upload_blob.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_upload_blob.json new file mode 100644 index 000000000000..c17131ed295f --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_upload_blob.json @@ -0,0 +1,943 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo5b2f373f/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5b2f373f:push,pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "dda6183d-1088-4c17-ad95-8b865b14db53" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5b2f373f", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo5b2f373f", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05:10 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=ArXPi7R4ij1BkzB7vLFTAp4; expires=Sat, 27-Aug-2022 08:05:11 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCEyTXjDwM2mpARccqs5hmXzVAAgTu9YDG1ZJWN-Px6WMci4pbgDB1jQ7X0MIyNL9AY8N5TI8MLOmdjJuz4tQpF2ML-tuZvquDO22p9OfpAhQowMr08Q9eDos1gjadtiDWhwX8tnLBmLqF3gAywwIGQcfSTiDE0tUMrFtc4OaNHkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=ArXPi7R4ij1BkzB7vLFTAp4; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-kQgdDpsQpNsp9mc1UDaMNg\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05:10 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=ArXPi7R4ij1BkzB7vLFTAp4; expires=Sat, 27-Aug-2022 08:05:11 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "cf83267e-fb7b-4559-85a9-face8ce5b0ff", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=ArXPi7R4ij1BkzB7vLFTAp4; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "cf83267e-fb7b-4559-85a9-face8ce5b0ff", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05:11 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=ArXPi7R4ij1BkzB7vLFTAp6hBUEeAQAAADY6dNoOAAAA; expires=Sat, 27-Aug-2022 08:05:11 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b232e3b1-4f8f-42af-a554-548d38af323a", + "x-ms-ratelimit-remaining-calls-per-second": "166.616667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5b2f373f%3Apush%2Cpull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "525488a5-bf17-42b2-a2bb-42644cc8b0be", + "x-ms-ratelimit-remaining-calls-per-second": "166.6" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo5b2f373f/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:05:11 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "a12969b7-7e06-4431-a33a-1b141ddb97b8", + "Location": "/v2/repo5b2f373f/blobs/uploads/a12969b7-7e06-4431-a33a-1b141ddb97b8?_nouploadcache=false\u0026_state=AHbipM7BbuxdY4MdKg6ZuR9a0qPDF72dQSImGezEuh97Ik5hbWUiOiJyZXBvNWIyZjM3M2YiLCJVVUlEIjoiYTEyOTY5YjctN2UwNi00NDMxLWEzM2EtMWIxNDFkZGI5N2I4IiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA4OjA1OjExLjc0ODAzNTE1NVoifQ%3D%3D", + "Range": "0-0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c5050dcb-a7f0-46f1-a417-de86b95f406f" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo5b2f373f/blobs/uploads/a12969b7-7e06-4431-a33a-1b141ddb97b8?_nouploadcache=false\u0026_state=AHbipM7BbuxdY4MdKg6ZuR9a0qPDF72dQSImGezEuh97Ik5hbWUiOiJyZXBvNWIyZjM3M2YiLCJVVUlEIjoiYTEyOTY5YjctN2UwNi00NDMxLWEzM2EtMWIxNDFkZGI5N2I4IiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA4OjA1OjExLjc0ODAzNTE1NVoifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "28", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "//5oAGUAbABsAG8AIAB3AG8AcgBsAGQADQAKAA==", + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5b2f373f:push,pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "1c640584-a2eb-4a00-89f5-c69c3a68f425" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5b2f373f", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo5b2f373f", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0aead407-9374-48ad-99a0-a4340167f7bd", + "x-ms-ratelimit-remaining-calls-per-second": "166.583333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5b2f373f%3Apush%2Cpull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05:12 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2f2d7214-64a2-40d6-8c19-a8aae784cbbe", + "x-ms-ratelimit-remaining-calls-per-second": "166.566667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo5b2f373f/blobs/uploads/a12969b7-7e06-4431-a33a-1b141ddb97b8?_nouploadcache=false\u0026_state=AHbipM7BbuxdY4MdKg6ZuR9a0qPDF72dQSImGezEuh97Ik5hbWUiOiJyZXBvNWIyZjM3M2YiLCJVVUlEIjoiYTEyOTY5YjctN2UwNi00NDMxLWEzM2EtMWIxNDFkZGI5N2I4IiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA4OjA1OjExLjc0ODAzNTE1NVoifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "28", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "//5oAGUAbABsAG8AIAB3AG8AcgBsAGQADQAKAA==", + "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, 28 Jul 2022 08:05:12 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "a12969b7-7e06-4431-a33a-1b141ddb97b8", + "Location": "/v2/repo5b2f373f/blobs/uploads/a12969b7-7e06-4431-a33a-1b141ddb97b8?_nouploadcache=false\u0026_state=_gzx1t00xtlL-Exr1AX_e8QNEHDDNldx_8kUWWaSbuh7Ik5hbWUiOiJyZXBvNWIyZjM3M2YiLCJVVUlEIjoiYTEyOTY5YjctN2UwNi00NDMxLWEzM2EtMWIxNDFkZGI5N2I4IiwiT2Zmc2V0IjoyOCwiU3RhcnRlZEF0IjoiMjAyMi0wNy0yOFQwODowNToxMVoifQ%3D%3D", + "Range": "0-27", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5872ca38-9544-4476-9856-b009f2c7f060" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo5b2f373f/blobs/uploads/a12969b7-7e06-4431-a33a-1b141ddb97b8?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5b2f373f:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c1fe7787-d64c-4502-82da-0805c6027334" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5b2f373f", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo5b2f373f", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05:12 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6d1a9d7a-7d22-4890-a278-a35d00bf6457", + "x-ms-ratelimit-remaining-calls-per-second": "166.55" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5b2f373f%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05:12 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "db0d0648-bece-4f3a-be72-06cbbfa3ddea", + "x-ms-ratelimit-remaining-calls-per-second": "166.533333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo5b2f373f/blobs/uploads/a12969b7-7e06-4431-a33a-1b141ddb97b8?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "0", + "Date": "Thu, 28 Jul 2022 08:05:12 GMT", + "Docker-Content-Digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "Docker-Distribution-Api-Version": "registry/2.0", + "Location": "/v2/repo5b2f373f/blobs/sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "fe75570a-9e8f-4e41-981f-37fe6e0c575a" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo5b2f373f/blobs/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/octet-stream", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "206", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5b2f373f:pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e3ab81fd-eb01-4fc4-9bb5-f501b84fcd73" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5b2f373f", + "Action": "pull" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05:12 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3ff78a69-f21b-408c-9221-f6edb7564389", + "x-ms-ratelimit-remaining-calls-per-second": "166.516667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "123", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5b2f373f%3Apull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05:12 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c9db8b33-3b75-4563-94df-81243b601d9e", + "x-ms-ratelimit-remaining-calls-per-second": "166.5" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo5b2f373f/blobs/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/octet-stream", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "28", + "Content-Type": "application/octet-stream", + "Date": "Thu, 28 Jul 2022 08:05:12 GMT", + "ETag": "\u00220x8DA706FE5E0E5B9\u0022", + "Last-Modified": "Thu, 28 Jul 2022 08:05:12 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-blob-committed-block-count": "1", + "x-ms-blob-type": "AppendBlob", + "x-ms-copy-completion-time": "Thu, 28 Jul 2022 07:31:25 GMT", + "x-ms-copy-id": "cbb3ca76-7e8e-42a8-b3eb-af4a62096977", + "x-ms-copy-progress": "28/28", + "x-ms-copy-source": "https://wusmanaged60.blob.core.windows.net/10dda975d8114816a9c6760eed9567fd-cew0texvpz//docker/registry/v2/repositories/repo2ace3a91/_uploads/bb478b6c-a2c3-49b5-b9a7-a35dc53470b5/data", + "x-ms-copy-status": "success", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-meta-Acr_to_delete": "3a904d44-3f97-4521-a003-06b64d7f6a38", + "x-ms-meta-Acr_to_delete_timestamp": "07/28/2022 08:05:12", + "x-ms-server-encrypted": "true", + "x-ms-version": "2016-05-31" + }, + "ResponseBody": "//5oAGUAbABsAG8AIAB3AG8AcgBsAGQADQAKAA==" + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo5b2f373f/blobs/sha256_encoded_stream", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/octet-stream", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "208", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5b2f373f:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5271b0e5-4f10-46b3-b028-28337f741f13" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5b2f373f", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05:13 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "37f1944c-4605-4f72-bfaa-0173125fc257", + "x-ms-ratelimit-remaining-calls-per-second": "166.483333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5b2f373f%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 08:05:13 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "110a507f-c438-4abf-be97-36d16e111f1c", + "x-ms-ratelimit-remaining-calls-per-second": "166.466667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo5b2f373f/blobs/sha256_encoded_stream", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/octet-stream", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 08:05: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": "6307dcda-9b31-4188-a707-c18c03e0afaf", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_upload_oci_manifest.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_upload_oci_manifest.json new file mode 100644 index 000000000000..750af9c1c565 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_upload_oci_manifest.json @@ -0,0 +1,1570 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:52 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2ace3a91:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c43e2e4d-604a-486f-be61-5ca482771b9b" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:51 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Agbl-ocKLdpNuKj9df3cjDY; expires=Sat, 27-Aug-2022 07:46:52 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrHrU4wUEHw4nj-hHsGqaz74A9QkFrSbCzam-z-7P-jHw2IXluFi_iiKgXo-HruNT9phhxLzIcEsUHtTdtJIBkiS4xpMno5qt3gw7ORjpg05FVB6geuNJgqevjBlamSm13gPYOHTZFOyhIUdkNoNtJNdQLl7n_sLWieiLIxpqK7mUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=Agbl-ocKLdpNuKj9df3cjDY; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:51 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Agbl-ocKLdpNuKj9df3cjDY; expires=Sat, 27-Aug-2022 07:46:52 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13315.8 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "8cc9d418-a566-4150-ac5a-1e3af4a81c09", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=Agbl-ocKLdpNuKj9df3cjDY; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "8cc9d418-a566-4150-ac5a-1e3af4a81c09", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:52 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeAQAAAOs1dNoOAAAA; expires=Sat, 27-Aug-2022 07:46:52 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:52 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0c7cfda1-501f-4343-8942-202a3755b6e5", + "x-ms-ratelimit-remaining-calls-per-second": "166.65" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2ace3a91%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:52 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "02bbf240-8ba0-49d2-b9e3-7ac980c7b292", + "x-ms-ratelimit-remaining-calls-per-second": "166.633333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 07:46:53 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "8299c60d-3006-4a3e-8024-2efe33e5c2ac", + "Location": "/v2/repo2ace3a91/blobs/uploads/8299c60d-3006-4a3e-8024-2efe33e5c2ac?_nouploadcache=false\u0026_state=hUjzGBFHji8rXHztj9oM7Z3YEIAHRgrZOU_6DBDMwvh7Ik5hbWUiOiJyZXBvMmFjZTNhOTEiLCJVVUlEIjoiODI5OWM2MGQtMzAwNi00YTNlLTgwMjQtMmVmZTMzZTVjMmFjIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ2OjUzLjAxOTgzMjczOVoifQ%3D%3D", + "Range": "0-0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "77ff8660-3a47-452e-86f1-0d5e4f343ea0" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/blobs/uploads/8299c60d-3006-4a3e-8024-2efe33e5c2ac?_nouploadcache=false\u0026_state=hUjzGBFHji8rXHztj9oM7Z3YEIAHRgrZOU_6DBDMwvh7Ik5hbWUiOiJyZXBvMmFjZTNhOTEiLCJVVUlEIjoiODI5OWM2MGQtMzAwNi00YTNlLTgwMjQtMmVmZTMzZTVjMmFjIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ2OjUzLjAxOTgzMjczOVoifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "171", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "H4sIAAAAAAAA/\u002BzRwcrCMBAE4Dn/8L9DD551tulmn6dUq4VioUb06VUsORU8aRQx32VzSjYzi2bYt90WKZGkmU2T5HxOZ6lo6lTNPCjUUlFo0q2i4yHUI8hn75l/7kvE/lf1GLq2bsIynMOr37jn4b1/3L\u002BrYv9lWYkDxYkoireE\u002BOP9Xy87bNCjx4ACJwwY0WONf/x9erUsy7IsoVsAAAD//yO/fykACgAA", + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2ace3a91:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "15dcca56-e817-4f89-9a0c-43f87d7fd8fb" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "26e5b143-0c29-4cd1-9340-e57e705fcca1", + "x-ms-ratelimit-remaining-calls-per-second": "166.616667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2ace3a91%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "47f22f79-382e-4a72-8685-3dd42a020172", + "x-ms-ratelimit-remaining-calls-per-second": "166.6" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/blobs/uploads/8299c60d-3006-4a3e-8024-2efe33e5c2ac?_nouploadcache=false\u0026_state=hUjzGBFHji8rXHztj9oM7Z3YEIAHRgrZOU_6DBDMwvh7Ik5hbWUiOiJyZXBvMmFjZTNhOTEiLCJVVUlEIjoiODI5OWM2MGQtMzAwNi00YTNlLTgwMjQtMmVmZTMzZTVjMmFjIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ2OjUzLjAxOTgzMjczOVoifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "171", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "H4sIAAAAAAAA/\u002BzRwcrCMBAE4Dn/8L9DD551tulmn6dUq4VioUb06VUsORU8aRQx32VzSjYzi2bYt90WKZGkmU2T5HxOZ6lo6lTNPCjUUlFo0q2i4yHUI8hn75l/7kvE/lf1GLq2bsIynMOr37jn4b1/3L\u002BrYv9lWYkDxYkoireE\u002BOP9Xy87bNCjx4ACJwwY0WONf/x9erUsy7IsoVsAAAD//yO/fykACgAA", + "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, 28 Jul 2022 07:46:53 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "8299c60d-3006-4a3e-8024-2efe33e5c2ac", + "Location": "/v2/repo2ace3a91/blobs/uploads/8299c60d-3006-4a3e-8024-2efe33e5c2ac?_nouploadcache=false\u0026_state=FPbyMD6Xqkk4ob-ZBXSUomofd8CZf7q2HbwUWwf-t057Ik5hbWUiOiJyZXBvMmFjZTNhOTEiLCJVVUlEIjoiODI5OWM2MGQtMzAwNi00YTNlLTgwMjQtMmVmZTMzZTVjMmFjIiwiT2Zmc2V0IjoxNzEsIlN0YXJ0ZWRBdCI6IjIwMjItMDctMjhUMDc6NDY6NTNaIn0%3D", + "Range": "0-170", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "fc30ac63-702e-4b2a-b162-855cf5027f7d" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/blobs/uploads/8299c60d-3006-4a3e-8024-2efe33e5c2ac?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2ace3a91:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5d440716-a5a3-4375-8a02-9d53162697e1" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e45996a4-4c24-4c43-8530-5360718a0214", + "x-ms-ratelimit-remaining-calls-per-second": "166.583333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2ace3a91%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "239881db-12a6-47f1-8621-6d394a454367", + "x-ms-ratelimit-remaining-calls-per-second": "166.566667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/blobs/uploads/8299c60d-3006-4a3e-8024-2efe33e5c2ac?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "0", + "Date": "Thu, 28 Jul 2022 07:46:53 GMT", + "Docker-Content-Digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "Docker-Distribution-Api-Version": "registry/2.0", + "Location": "/v2/repo2ace3a91/blobs/sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5d6fea28-09d2-4e4e-849a-fd0758418d1a" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2ace3a91:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f169772c-8a23-4a22-98cb-ad5ca70df5a0" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0b9eb955-5e38-4882-92ee-87b5c0c1896d", + "x-ms-ratelimit-remaining-calls-per-second": "166.55" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2ace3a91%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "54e382fc-ac57-4671-af88-46c0ec6a9164", + "x-ms-ratelimit-remaining-calls-per-second": "166.533333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 07:46:54 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "73cd6f7d-7640-476f-8f35-aedc2adc041e", + "Location": "/v2/repo2ace3a91/blobs/uploads/73cd6f7d-7640-476f-8f35-aedc2adc041e?_nouploadcache=false\u0026_state=IucoboWe0WzC7o547GFNl4mafK_4-ndo4sYTJMadvit7Ik5hbWUiOiJyZXBvMmFjZTNhOTEiLCJVVUlEIjoiNzNjZDZmN2QtNzY0MC00NzZmLThmMzUtYWVkYzJhZGMwNDFlIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ2OjU0LjAxNzc4NDMzM1oifQ%3D%3D", + "Range": "0-0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d4b7d8ea-ac53-4909-998e-1ebe711ce031" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/blobs/uploads/73cd6f7d-7640-476f-8f35-aedc2adc041e?_nouploadcache=false\u0026_state=IucoboWe0WzC7o547GFNl4mafK_4-ndo4sYTJMadvit7Ik5hbWUiOiJyZXBvMmFjZTNhOTEiLCJVVUlEIjoiNzNjZDZmN2QtNzY0MC00NzZmLThmMzUtYWVkYzJhZGMwNDFlIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ2OjU0LjAxNzc4NDMzM1oifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "28", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "//5oAGUAbABsAG8AIAB3AG8AcgBsAGQADQAKAA==", + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2ace3a91:push,pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7e7c61b6-54c3-4e34-9017-2d9fe4ee5257" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:54 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "68af95e1-5d98-4ab5-be5f-39f5025654c3", + "x-ms-ratelimit-remaining-calls-per-second": "166.516667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2ace3a91%3Apush%2Cpull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:54 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a12e44a0-98ac-4e06-8cc5-585094fc1cf9", + "x-ms-ratelimit-remaining-calls-per-second": "166.5" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/blobs/uploads/73cd6f7d-7640-476f-8f35-aedc2adc041e?_nouploadcache=false\u0026_state=IucoboWe0WzC7o547GFNl4mafK_4-ndo4sYTJMadvit7Ik5hbWUiOiJyZXBvMmFjZTNhOTEiLCJVVUlEIjoiNzNjZDZmN2QtNzY0MC00NzZmLThmMzUtYWVkYzJhZGMwNDFlIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ2OjU0LjAxNzc4NDMzM1oifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "28", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "//5oAGUAbABsAG8AIAB3AG8AcgBsAGQADQAKAA==", + "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, 28 Jul 2022 07:46:54 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "73cd6f7d-7640-476f-8f35-aedc2adc041e", + "Location": "/v2/repo2ace3a91/blobs/uploads/73cd6f7d-7640-476f-8f35-aedc2adc041e?_nouploadcache=false\u0026_state=8LXfN_bQXam9NzzTfpTZP6p-B1h7Kap35Ge3Wh-9Qb97Ik5hbWUiOiJyZXBvMmFjZTNhOTEiLCJVVUlEIjoiNzNjZDZmN2QtNzY0MC00NzZmLThmMzUtYWVkYzJhZGMwNDFlIiwiT2Zmc2V0IjoyOCwiU3RhcnRlZEF0IjoiMjAyMi0wNy0yOFQwNzo0Njo1NFoifQ%3D%3D", + "Range": "0-27", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "44312cd1-1b05-4659-8593-73e1feafaea8" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/blobs/uploads/73cd6f7d-7640-476f-8f35-aedc2adc041e?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2ace3a91:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "50fbf4ee-1ee6-427a-b0a6-f4ea38c6b75c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:54 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "06cb0cbc-8daf-47c1-9ae3-4ad1704eeb87", + "x-ms-ratelimit-remaining-calls-per-second": "166.483333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2ace3a91%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:54 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "acfa09ae-b8f2-4cfc-b4e6-148b90bd6995", + "x-ms-ratelimit-remaining-calls-per-second": "166.466667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/blobs/uploads/73cd6f7d-7640-476f-8f35-aedc2adc041e?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "0", + "Date": "Thu, 28 Jul 2022 07:46:54 GMT", + "Docker-Content-Digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "Docker-Distribution-Api-Version": "registry/2.0", + "Location": "/v2/repo2ace3a91/blobs/sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "12d29692-1067-435d-b844-1ca9a64b2f4e" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/manifests/sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "417", + "Content-Type": "application/vnd.oci.image.manifest.v1\u002Bjson", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "config": { + "mediaType": "application/vnd.acme.rocket.config", + "size": 171, + "digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8" + }, + "layers": [ + { + "mediaType": "application/vnd.oci.image.layer.v1.tar", + "size": 28, + "digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "annotations": { + "org.opencontainers.image.ref.name": "artifact.txt" + } + } + ], + "schemaVersion": 2 + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2ace3a91:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "0d561c8f-37f9-4663-a788-53ed111c94e4" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:54 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "aa91883d-89a6-44e3-88ef-acdd5c638601", + "x-ms-ratelimit-remaining-calls-per-second": "166.45" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2ace3a91%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:54 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f7b8f1c6-9fc4-4b2d-88af-af7a49abb3e7", + "x-ms-ratelimit-remaining-calls-per-second": "166.433333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/manifests/sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "417", + "Content-Type": "application/vnd.oci.image.manifest.v1\u002Bjson", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "config": { + "mediaType": "application/vnd.acme.rocket.config", + "size": 171, + "digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8" + }, + "layers": [ + { + "mediaType": "application/vnd.oci.image.layer.v1.tar", + "size": 28, + "digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "annotations": { + "org.opencontainers.image.ref.name": "artifact.txt" + } + } + ], + "schemaVersion": 2 + }, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "0", + "Date": "Thu, 28 Jul 2022 07:46:55 GMT", + "Docker-Content-Digest": "sha256:81c148434d2814d0c55688399beeda776299a11814a3a2555871a3182908601a", + "Docker-Distribution-Api-Version": "registry/2.0", + "Location": "/v2/repo2ace3a91/manifests/sha256:81c148434d2814d0c55688399beeda776299a11814a3a2555871a3182908601a", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "333e3253-9c4e-44ac-bc5e-fe12677fa1e3" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "206", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:55 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2ace3a91:pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e8759873-146f-474a-8aa1-00559929c23f" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "pull" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "bfb6acaf-d4ea-403c-860a-a8a36ffb2533", + "x-ms-ratelimit-remaining-calls-per-second": "166.416667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "123", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2ace3a91%3Apull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2f8b6960-8903-468f-b52b-4fc00106a591", + "x-ms-ratelimit-remaining-calls-per-second": "166.4" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "417", + "Content-Type": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Date": "Thu, 28 Jul 2022 07:46:55 GMT", + "Docker-Content-Digest": "sha256:81c148434d2814d0c55688399beeda776299a11814a3a2555871a3182908601a", + "Docker-Distribution-Api-Version": "registry/2.0", + "ETag": "\u0022sha256:81c148434d2814d0c55688399beeda776299a11814a3a2555871a3182908601a\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d5fc1b73-66d5-4a36-86a7-2953848c133e" + }, + "ResponseBody": { + "config": { + "mediaType": "application/vnd.acme.rocket.config", + "size": 171, + "digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8" + }, + "layers": [ + { + "mediaType": "application/vnd.oci.image.layer.v1.tar", + "size": 28, + "digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "annotations": { + "org.opencontainers.image.ref.name": "artifact.txt" + } + } + ], + "schemaVersion": 2 + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/manifests/sha256_encoded_stream", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "208", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:55 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2ace3a91:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7e33b03b-7ce0-477f-be01-cd35c391a102" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2ace3a91", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "91e01975-f962-4979-98a0-3686c15c5bad", + "x-ms-ratelimit-remaining-calls-per-second": "166.383333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2ace3a91%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "36dd051a-e991-4d1d-815c-07cf49fe1ffb", + "x-ms-ratelimit-remaining-calls-per-second": "166.366667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo2ace3a91/manifests/sha256_encoded_stream", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 07:46:55 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": "b0d0568e-ab1a-48c1-a733-c2a348824d08", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_upload_oci_manifest_stream.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_upload_oci_manifest_stream.json new file mode 100644 index 000000000000..1281dba70179 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_upload_oci_manifest_stream.json @@ -0,0 +1,1569 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod69b3d7c:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "54e5c7ac-6e2f-444a-af63-924bcacd6d73" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:55 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeAQAAAOs1dNoOAAAA; expires=Sat, 27-Aug-2022 07:46:56 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeAQAAAOs1dNoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:55 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeAQAAAOs1dNoOAAAA; expires=Sat, 27-Aug-2022 07:46:56 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "a74a3984-d5c2-43a7-8f65-b317fbf4f2df", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeAQAAAOs1dNoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "a74a3984-d5c2-43a7-8f65-b317fbf4f2df", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:56 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeAgAAAOs1dNoOAAAA; expires=Sat, 27-Aug-2022 07:46:56 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:56 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0222c51b-99ce-43fc-a854-8115307841b2", + "x-ms-ratelimit-remaining-calls-per-second": "166.35" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod69b3d7c%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:56 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "18f9a7f8-4d83-4666-9594-985f379ddf25", + "x-ms-ratelimit-remaining-calls-per-second": "166.333333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 07:46:56 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "7b55165f-e40e-4993-8d54-a84619badb8f", + "Location": "/v2/repod69b3d7c/blobs/uploads/7b55165f-e40e-4993-8d54-a84619badb8f?_nouploadcache=false\u0026_state=wEseggupLR-nHZUvF9IX9IpC5_t9fXo6tNZjiftOqAF7Ik5hbWUiOiJyZXBvZDY5YjNkN2MiLCJVVUlEIjoiN2I1NTE2NWYtZTQwZS00OTkzLThkNTQtYTg0NjE5YmFkYjhmIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ2OjU2Ljc2NzUzNTQ2M1oifQ%3D%3D", + "Range": "0-0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "3ee8c41f-0262-4d11-b422-0f14259f392d" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/blobs/uploads/7b55165f-e40e-4993-8d54-a84619badb8f?_nouploadcache=false\u0026_state=wEseggupLR-nHZUvF9IX9IpC5_t9fXo6tNZjiftOqAF7Ik5hbWUiOiJyZXBvZDY5YjNkN2MiLCJVVUlEIjoiN2I1NTE2NWYtZTQwZS00OTkzLThkNTQtYTg0NjE5YmFkYjhmIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ2OjU2Ljc2NzUzNTQ2M1oifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "171", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "H4sIAAAAAAAA/\u002BzRwcrCMBAE4Dn/8L9DD551tulmn6dUq4VioUb06VUsORU8aRQx32VzSjYzi2bYt90WKZGkmU2T5HxOZ6lo6lTNPCjUUlFo0q2i4yHUI8hn75l/7kvE/lf1GLq2bsIynMOr37jn4b1/3L\u002BrYv9lWYkDxYkoireE\u002BOP9Xy87bNCjx4ACJwwY0WONf/x9erUsy7IsoVsAAAD//yO/fykACgAA", + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod69b3d7c:push,pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "6d47db92-60d4-4e5f-a8e9-fa72b9f2ac93" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:57 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7bad9491-e963-465e-b33b-637c1893b93c", + "x-ms-ratelimit-remaining-calls-per-second": "166.316667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod69b3d7c%3Apush%2Cpull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:57 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "64fd8f0b-42b0-4d61-bb49-c1ae33cb4bee", + "x-ms-ratelimit-remaining-calls-per-second": "166.3" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/blobs/uploads/7b55165f-e40e-4993-8d54-a84619badb8f?_nouploadcache=false\u0026_state=wEseggupLR-nHZUvF9IX9IpC5_t9fXo6tNZjiftOqAF7Ik5hbWUiOiJyZXBvZDY5YjNkN2MiLCJVVUlEIjoiN2I1NTE2NWYtZTQwZS00OTkzLThkNTQtYTg0NjE5YmFkYjhmIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ2OjU2Ljc2NzUzNTQ2M1oifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "171", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "H4sIAAAAAAAA/\u002BzRwcrCMBAE4Dn/8L9DD551tulmn6dUq4VioUb06VUsORU8aRQx32VzSjYzi2bYt90WKZGkmU2T5HxOZ6lo6lTNPCjUUlFo0q2i4yHUI8hn75l/7kvE/lf1GLq2bsIynMOr37jn4b1/3L\u002BrYv9lWYkDxYkoireE\u002BOP9Xy87bNCjx4ACJwwY0WONf/x9erUsy7IsoVsAAAD//yO/fykACgAA", + "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, 28 Jul 2022 07:46:57 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "7b55165f-e40e-4993-8d54-a84619badb8f", + "Location": "/v2/repod69b3d7c/blobs/uploads/7b55165f-e40e-4993-8d54-a84619badb8f?_nouploadcache=false\u0026_state=OcKZoInO8zyvMlIcAjV0DbKzUJR-ePjkr250gOb_eNZ7Ik5hbWUiOiJyZXBvZDY5YjNkN2MiLCJVVUlEIjoiN2I1NTE2NWYtZTQwZS00OTkzLThkNTQtYTg0NjE5YmFkYjhmIiwiT2Zmc2V0IjoxNzEsIlN0YXJ0ZWRBdCI6IjIwMjItMDctMjhUMDc6NDY6NTZaIn0%3D", + "Range": "0-170", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "531d9816-c941-422f-bde7-3fc1e37fbdf3" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/blobs/uploads/7b55165f-e40e-4993-8d54-a84619badb8f?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod69b3d7c:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ef52a890-cb2a-410b-b887-c09d1f031ebb" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:57 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0481573b-1ac4-4523-addb-bcef10de3187", + "x-ms-ratelimit-remaining-calls-per-second": "166.283333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod69b3d7c%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:57 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "71666c97-aaa8-4eda-91d3-70b3f306b7a5", + "x-ms-ratelimit-remaining-calls-per-second": "166.266667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/blobs/uploads/7b55165f-e40e-4993-8d54-a84619badb8f?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "0", + "Date": "Thu, 28 Jul 2022 07:46:57 GMT", + "Docker-Content-Digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "Docker-Distribution-Api-Version": "registry/2.0", + "Location": "/v2/repod69b3d7c/blobs/sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f315930a-7d1c-4940-86df-6f3ab6d00feb" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod69b3d7c:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7753c04c-dcd5-4809-a86c-fe5df6d47d87" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:57 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "32702681-25e8-4698-82bb-e567ffd70817", + "x-ms-ratelimit-remaining-calls-per-second": "166.25" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod69b3d7c%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:57 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c433b69a-82ff-4dab-8244-21d816118181", + "x-ms-ratelimit-remaining-calls-per-second": "166.233333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 07:46:57 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "2532e8f7-c9ee-4e09-b397-3dfec3ba1906", + "Location": "/v2/repod69b3d7c/blobs/uploads/2532e8f7-c9ee-4e09-b397-3dfec3ba1906?_nouploadcache=false\u0026_state=IfomwBwpj0i3etNH1FhWtJK4P7uBmSQVezHOftdqrZl7Ik5hbWUiOiJyZXBvZDY5YjNkN2MiLCJVVUlEIjoiMjUzMmU4ZjctYzllZS00ZTA5LWIzOTctM2RmZWMzYmExOTA2IiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ2OjU3Ljg0ODc4MTA0NVoifQ%3D%3D", + "Range": "0-0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "4d3e1d4e-5a6b-404c-942c-97c6865cc255" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/blobs/uploads/2532e8f7-c9ee-4e09-b397-3dfec3ba1906?_nouploadcache=false\u0026_state=IfomwBwpj0i3etNH1FhWtJK4P7uBmSQVezHOftdqrZl7Ik5hbWUiOiJyZXBvZDY5YjNkN2MiLCJVVUlEIjoiMjUzMmU4ZjctYzllZS00ZTA5LWIzOTctM2RmZWMzYmExOTA2IiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ2OjU3Ljg0ODc4MTA0NVoifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "28", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "//5oAGUAbABsAG8AIAB3AG8AcgBsAGQADQAKAA==", + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod69b3d7c:push,pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c56943c1-35c9-47bf-9500-9d2f7df699c7" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "99d21ab4-f5e4-4d6d-afb0-cc05701f43ca", + "x-ms-ratelimit-remaining-calls-per-second": "166.216667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod69b3d7c%3Apush%2Cpull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6a60a081-23f2-4ff1-b37d-244411a27513", + "x-ms-ratelimit-remaining-calls-per-second": "166.2" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/blobs/uploads/2532e8f7-c9ee-4e09-b397-3dfec3ba1906?_nouploadcache=false\u0026_state=IfomwBwpj0i3etNH1FhWtJK4P7uBmSQVezHOftdqrZl7Ik5hbWUiOiJyZXBvZDY5YjNkN2MiLCJVVUlEIjoiMjUzMmU4ZjctYzllZS00ZTA5LWIzOTctM2RmZWMzYmExOTA2IiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ2OjU3Ljg0ODc4MTA0NVoifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "28", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "//5oAGUAbABsAG8AIAB3AG8AcgBsAGQADQAKAA==", + "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, 28 Jul 2022 07:46:58 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "2532e8f7-c9ee-4e09-b397-3dfec3ba1906", + "Location": "/v2/repod69b3d7c/blobs/uploads/2532e8f7-c9ee-4e09-b397-3dfec3ba1906?_nouploadcache=false\u0026_state=GEwrQWQ5fGrAFrsA9ujz1fil1oRMZ2Y_36r0AwwIMbR7Ik5hbWUiOiJyZXBvZDY5YjNkN2MiLCJVVUlEIjoiMjUzMmU4ZjctYzllZS00ZTA5LWIzOTctM2RmZWMzYmExOTA2IiwiT2Zmc2V0IjoyOCwiU3RhcnRlZEF0IjoiMjAyMi0wNy0yOFQwNzo0Njo1N1oifQ%3D%3D", + "Range": "0-27", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d289581f-b1d8-4a04-859c-692db68fe40c" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/blobs/uploads/2532e8f7-c9ee-4e09-b397-3dfec3ba1906?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod69b3d7c:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "6988e5c2-0809-449f-b7f0-f83e82cd766e" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f0de260c-6f15-4372-9289-3316b8e40c20", + "x-ms-ratelimit-remaining-calls-per-second": "166.183333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod69b3d7c%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "67fd34b9-97a0-4b28-8076-26b0075f7089", + "x-ms-ratelimit-remaining-calls-per-second": "166.166667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/blobs/uploads/2532e8f7-c9ee-4e09-b397-3dfec3ba1906?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "0", + "Date": "Thu, 28 Jul 2022 07:46:58 GMT", + "Docker-Content-Digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "Docker-Distribution-Api-Version": "registry/2.0", + "Location": "/v2/repod69b3d7c/blobs/sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "df694ef9-009e-4efe-98c8-58cb9104d91a" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/manifests/sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "579", + "Content-Type": "application/vnd.oci.image.manifest.v1\u002Bjson", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "schemaVersion": 2, + "config": { + "mediaType": "application/vnd.acme.rocket.config", + "digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "size": 171 + }, + "layers": [ + { + "mediaType": "application/vnd.oci.image.layer.v1.tar", + "digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "size": 28, + "annotations": { + "org.opencontainers.image.title": "artifact.txt" + } + } + ] + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod69b3d7c:push,pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f4458535-57c0-4de7-8525-f9a2a3a9aaad" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8f538763-0679-4d81-801c-3e82ff7ce416", + "x-ms-ratelimit-remaining-calls-per-second": "166.15" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod69b3d7c%3Apush%2Cpull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:58 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e0e94f15-dc94-4990-aba3-4a230a1b997b", + "x-ms-ratelimit-remaining-calls-per-second": "166.133333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/manifests/sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "579", + "Content-Type": "application/vnd.oci.image.manifest.v1\u002Bjson", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "schemaVersion": 2, + "config": { + "mediaType": "application/vnd.acme.rocket.config", + "digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "size": 171 + }, + "layers": [ + { + "mediaType": "application/vnd.oci.image.layer.v1.tar", + "digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "size": 28, + "annotations": { + "org.opencontainers.image.title": "artifact.txt" + } + } + ] + }, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "0", + "Date": "Thu, 28 Jul 2022 07:46:58 GMT", + "Docker-Content-Digest": "sha256:789f7c67bf495ba14ff8de0c6273f546d7691935c73ae107774979dcb12148b2", + "Docker-Distribution-Api-Version": "registry/2.0", + "Location": "/v2/repod69b3d7c/manifests/sha256:789f7c67bf495ba14ff8de0c6273f546d7691935c73ae107774979dcb12148b2", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b6cb7a6a-6e42-4cb6-9e89-d55c2b70d788" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "206", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod69b3d7c:pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "217322e2-d814-4252-85ae-1367ba0a0718" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "pull" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c7af429b-6c85-42d5-9ae8-580ff97e4092", + "x-ms-ratelimit-remaining-calls-per-second": "166.116667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "123", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod69b3d7c%3Apull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "84720310-0cf7-4fdf-901d-0ebc969452ef", + "x-ms-ratelimit-remaining-calls-per-second": "166.1" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "579", + "Content-Type": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Date": "Thu, 28 Jul 2022 07:46:59 GMT", + "Docker-Content-Digest": "sha256:789f7c67bf495ba14ff8de0c6273f546d7691935c73ae107774979dcb12148b2", + "Docker-Distribution-Api-Version": "registry/2.0", + "ETag": "\u0022sha256:789f7c67bf495ba14ff8de0c6273f546d7691935c73ae107774979dcb12148b2\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8f684d01-71aa-4ebb-bae0-7aad65e4c1ca" + }, + "ResponseBody": { + "schemaVersion": 2, + "config": { + "mediaType": "application/vnd.acme.rocket.config", + "digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "size": 171 + }, + "layers": [ + { + "mediaType": "application/vnd.oci.image.layer.v1.tar", + "digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "size": 28, + "annotations": { + "org.opencontainers.image.title": "artifact.txt" + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/manifests/sha256_encoded_stream", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "208", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repod69b3d7c:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "22a64375-1531-40eb-90a5-ba64a7bb3b70" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repod69b3d7c", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2773dbd7-cbc2-4a43-90e8-86b43f3b21b2", + "x-ms-ratelimit-remaining-calls-per-second": "166.083333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepod69b3d7c%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8f1f257f-61b5-45c1-bf15-c6f53efb70f4", + "x-ms-ratelimit-remaining-calls-per-second": "166.066667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repod69b3d7c/manifests/sha256_encoded_stream", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 07:46: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": "6b29f435-9d26-445b-bda7-f938456805fa", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_upload_oci_manifest_stream_with_tag.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_upload_oci_manifest_stream_with_tag.json new file mode 100644 index 000000000000..8466bb0fd720 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_upload_oci_manifest_stream_with_tag.json @@ -0,0 +1,1877 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a584132:push,pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c99a27ec-cef0-4eaf-8832-3ef983027caa" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:04 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeAwAAAOs1dNoOAAAA; expires=Sat, 27-Aug-2022 07:47:05 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeAwAAAOs1dNoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:04 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeAwAAAOs1dNoOAAAA; expires=Sat, 27-Aug-2022 07:47:05 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "22e16440-4c56-4d62-aefc-408a7f104774", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeAwAAAOs1dNoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "22e16440-4c56-4d62-aefc-408a7f104774", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:04 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeBAAAAOs1dNoOAAAA; expires=Sat, 27-Aug-2022 07:47:05 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8fb71f23-49dc-43ea-940f-e72a5a6a0cf3", + "x-ms-ratelimit-remaining-calls-per-second": "166.516667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a584132%3Apush%2Cpull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "fe22c04d-bb48-4779-b265-bc2e9d7b8d22", + "x-ms-ratelimit-remaining-calls-per-second": "166.5" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 07:47:05 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "15bce08e-22f2-41fe-9e01-d0704a02b4d5", + "Location": "/v2/repo1a584132/blobs/uploads/15bce08e-22f2-41fe-9e01-d0704a02b4d5?_nouploadcache=false\u0026_state=cX0zgVukjIPFwXTmhafAGdkSPe1FKCFr82wr5Xbve3V7Ik5hbWUiOiJyZXBvMWE1ODQxMzIiLCJVVUlEIjoiMTViY2UwOGUtMjJmMi00MWZlLTllMDEtZDA3MDRhMDJiNGQ1IiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ3OjA1LjcwNTc5ODc0N1oifQ%3D%3D", + "Range": "0-0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "52cee2e3-90ee-4ec0-93c4-3da33f835591" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/blobs/uploads/15bce08e-22f2-41fe-9e01-d0704a02b4d5?_nouploadcache=false\u0026_state=cX0zgVukjIPFwXTmhafAGdkSPe1FKCFr82wr5Xbve3V7Ik5hbWUiOiJyZXBvMWE1ODQxMzIiLCJVVUlEIjoiMTViY2UwOGUtMjJmMi00MWZlLTllMDEtZDA3MDRhMDJiNGQ1IiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ3OjA1LjcwNTc5ODc0N1oifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "171", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "H4sIAAAAAAAA/\u002BzRwcrCMBAE4Dn/8L9DD551tulmn6dUq4VioUb06VUsORU8aRQx32VzSjYzi2bYt90WKZGkmU2T5HxOZ6lo6lTNPCjUUlFo0q2i4yHUI8hn75l/7kvE/lf1GLq2bsIynMOr37jn4b1/3L\u002BrYv9lWYkDxYkoireE\u002BOP9Xy87bNCjx4ACJwwY0WONf/x9erUsy7IsoVsAAAD//yO/fykACgAA", + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a584132:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "cc32be0c-0f00-4361-b7ff-ec8b87e4a8b1" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e83de20b-d6ef-4999-a02b-f0c8f5df2af0", + "x-ms-ratelimit-remaining-calls-per-second": "166.483333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a584132%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:05 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7865f5a9-27a4-4a42-b960-f3169f5e5806", + "x-ms-ratelimit-remaining-calls-per-second": "166.466667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/blobs/uploads/15bce08e-22f2-41fe-9e01-d0704a02b4d5?_nouploadcache=false\u0026_state=cX0zgVukjIPFwXTmhafAGdkSPe1FKCFr82wr5Xbve3V7Ik5hbWUiOiJyZXBvMWE1ODQxMzIiLCJVVUlEIjoiMTViY2UwOGUtMjJmMi00MWZlLTllMDEtZDA3MDRhMDJiNGQ1IiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ3OjA1LjcwNTc5ODc0N1oifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "171", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "H4sIAAAAAAAA/\u002BzRwcrCMBAE4Dn/8L9DD551tulmn6dUq4VioUb06VUsORU8aRQx32VzSjYzi2bYt90WKZGkmU2T5HxOZ6lo6lTNPCjUUlFo0q2i4yHUI8hn75l/7kvE/lf1GLq2bsIynMOr37jn4b1/3L\u002BrYv9lWYkDxYkoireE\u002BOP9Xy87bNCjx4ACJwwY0WONf/x9erUsy7IsoVsAAAD//yO/fykACgAA", + "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, 28 Jul 2022 07:47:06 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "15bce08e-22f2-41fe-9e01-d0704a02b4d5", + "Location": "/v2/repo1a584132/blobs/uploads/15bce08e-22f2-41fe-9e01-d0704a02b4d5?_nouploadcache=false\u0026_state=yWgPxNxX05bNNfVQOWuM7vKRdRY6sngCa-pRu88dl4B7Ik5hbWUiOiJyZXBvMWE1ODQxMzIiLCJVVUlEIjoiMTViY2UwOGUtMjJmMi00MWZlLTllMDEtZDA3MDRhMDJiNGQ1IiwiT2Zmc2V0IjoxNzEsIlN0YXJ0ZWRBdCI6IjIwMjItMDctMjhUMDc6NDc6MDVaIn0%3D", + "Range": "0-170", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d95bc983-aacd-4094-9e87-062cd3081c97" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/blobs/uploads/15bce08e-22f2-41fe-9e01-d0704a02b4d5?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a584132:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b2232877-1bbd-42be-b29b-69b5ec141e42" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "caaef118-66aa-493a-bb41-2d49490e63af", + "x-ms-ratelimit-remaining-calls-per-second": "166.45" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a584132%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e54b124f-212f-4d4d-998b-8e41aaf6632d", + "x-ms-ratelimit-remaining-calls-per-second": "166.433333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/blobs/uploads/15bce08e-22f2-41fe-9e01-d0704a02b4d5?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "0", + "Date": "Thu, 28 Jul 2022 07:47:06 GMT", + "Docker-Content-Digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "Docker-Distribution-Api-Version": "registry/2.0", + "Location": "/v2/repo1a584132/blobs/sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a9a8215d-4b83-4a0a-9c95-3391a851eb82" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a584132:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "2ee372b5-7c5f-41ce-bc6e-021ad6cc83b0" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5cad6d70-d749-4a95-8727-402fb518cb27", + "x-ms-ratelimit-remaining-calls-per-second": "166.416667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a584132%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "424553a7-5829-4b53-ab13-bb72c0ebc180", + "x-ms-ratelimit-remaining-calls-per-second": "166.4" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 07:47:06 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "545cf052-99fc-46e7-9480-18c49dd83920", + "Location": "/v2/repo1a584132/blobs/uploads/545cf052-99fc-46e7-9480-18c49dd83920?_nouploadcache=false\u0026_state=3gBYKtN3nmOug853Nh2msVVLn7031O6_jAayuRH1_mp7Ik5hbWUiOiJyZXBvMWE1ODQxMzIiLCJVVUlEIjoiNTQ1Y2YwNTItOTlmYy00NmU3LTk0ODAtMThjNDlkZDgzOTIwIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ3OjA2LjY5NjQ0OTUzNVoifQ%3D%3D", + "Range": "0-0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "971f77c1-6464-4778-8c1e-e952e38d4f7a" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/blobs/uploads/545cf052-99fc-46e7-9480-18c49dd83920?_nouploadcache=false\u0026_state=3gBYKtN3nmOug853Nh2msVVLn7031O6_jAayuRH1_mp7Ik5hbWUiOiJyZXBvMWE1ODQxMzIiLCJVVUlEIjoiNTQ1Y2YwNTItOTlmYy00NmU3LTk0ODAtMThjNDlkZDgzOTIwIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ3OjA2LjY5NjQ0OTUzNVoifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "28", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "//5oAGUAbABsAG8AIAB3AG8AcgBsAGQADQAKAA==", + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a584132:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "decf556b-6c1a-461a-be8b-700a5de4062d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "35f7ec79-489d-417c-a6b9-a7ab1087035f", + "x-ms-ratelimit-remaining-calls-per-second": "166.383333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a584132%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:06 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "be173cf1-57d1-4014-b168-a7f67d8970eb", + "x-ms-ratelimit-remaining-calls-per-second": "166.366667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/blobs/uploads/545cf052-99fc-46e7-9480-18c49dd83920?_nouploadcache=false\u0026_state=3gBYKtN3nmOug853Nh2msVVLn7031O6_jAayuRH1_mp7Ik5hbWUiOiJyZXBvMWE1ODQxMzIiLCJVVUlEIjoiNTQ1Y2YwNTItOTlmYy00NmU3LTk0ODAtMThjNDlkZDgzOTIwIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ3OjA2LjY5NjQ0OTUzNVoifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "28", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "//5oAGUAbABsAG8AIAB3AG8AcgBsAGQADQAKAA==", + "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, 28 Jul 2022 07:47:06 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "545cf052-99fc-46e7-9480-18c49dd83920", + "Location": "/v2/repo1a584132/blobs/uploads/545cf052-99fc-46e7-9480-18c49dd83920?_nouploadcache=false\u0026_state=0GNvsqwArkggAXXeRcAx4v5Wun40A2gVhXypx0njQVR7Ik5hbWUiOiJyZXBvMWE1ODQxMzIiLCJVVUlEIjoiNTQ1Y2YwNTItOTlmYy00NmU3LTk0ODAtMThjNDlkZDgzOTIwIiwiT2Zmc2V0IjoyOCwiU3RhcnRlZEF0IjoiMjAyMi0wNy0yOFQwNzo0NzowNloifQ%3D%3D", + "Range": "0-27", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e6726229-4fb3-4817-9db7-034bf135c09c" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/blobs/uploads/545cf052-99fc-46e7-9480-18c49dd83920?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a584132:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "654f0f4e-3373-4913-97e2-5b7a39609c4f" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4b46c18a-5625-47f5-8844-f0de643bf726", + "x-ms-ratelimit-remaining-calls-per-second": "166.35" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a584132%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "448a2bff-005b-4ccc-a3e9-c7d10e47094e", + "x-ms-ratelimit-remaining-calls-per-second": "166.333333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/blobs/uploads/545cf052-99fc-46e7-9480-18c49dd83920?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "0", + "Date": "Thu, 28 Jul 2022 07:47:07 GMT", + "Docker-Content-Digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "Docker-Distribution-Api-Version": "registry/2.0", + "Location": "/v2/repo1a584132/blobs/sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "9383e642-112a-4d32-a31a-c8a628c74d34" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/manifests/v1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "579", + "Content-Type": "application/vnd.oci.image.manifest.v1\u002Bjson", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "schemaVersion": 2, + "config": { + "mediaType": "application/vnd.acme.rocket.config", + "digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "size": 171 + }, + "layers": [ + { + "mediaType": "application/vnd.oci.image.layer.v1.tar", + "digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "size": 28, + "annotations": { + "org.opencontainers.image.title": "artifact.txt" + } + } + ] + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a584132:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7a7e31ca-b17a-45f0-9ade-cc6c8ac2b86c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "65049119-9fdb-4e63-a45f-08445401b304", + "x-ms-ratelimit-remaining-calls-per-second": "166.316667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a584132%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "12ed3dd3-92a7-47a6-85cc-7fac3d0039d9", + "x-ms-ratelimit-remaining-calls-per-second": "166.3" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/manifests/v1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "579", + "Content-Type": "application/vnd.oci.image.manifest.v1\u002Bjson", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "schemaVersion": 2, + "config": { + "mediaType": "application/vnd.acme.rocket.config", + "digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "size": 171 + }, + "layers": [ + { + "mediaType": "application/vnd.oci.image.layer.v1.tar", + "digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "size": 28, + "annotations": { + "org.opencontainers.image.title": "artifact.txt" + } + } + ] + }, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "0", + "Date": "Thu, 28 Jul 2022 07:47:07 GMT", + "Docker-Content-Digest": "sha256:789f7c67bf495ba14ff8de0c6273f546d7691935c73ae107774979dcb12148b2", + "Docker-Distribution-Api-Version": "registry/2.0", + "Location": "/v2/repo1a584132/manifests/sha256:789f7c67bf495ba14ff8de0c6273f546d7691935c73ae107774979dcb12148b2", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "3d284278-f42a-4ded-9ae0-a2553e2dbadb" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "206", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a584132:pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "46008f25-06a5-4903-88c8-6fd686f131d7" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "pull" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c685a079-0f84-46ba-b3a2-875bdebe42cf", + "x-ms-ratelimit-remaining-calls-per-second": "166.283333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "123", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a584132%3Apull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b6bcbeac-46b3-4a9d-8f89-e4f2f0bcb88f", + "x-ms-ratelimit-remaining-calls-per-second": "166.266667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "579", + "Content-Type": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Date": "Thu, 28 Jul 2022 07:47:08 GMT", + "Docker-Content-Digest": "sha256:789f7c67bf495ba14ff8de0c6273f546d7691935c73ae107774979dcb12148b2", + "Docker-Distribution-Api-Version": "registry/2.0", + "ETag": "\u0022sha256:789f7c67bf495ba14ff8de0c6273f546d7691935c73ae107774979dcb12148b2\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "9ee9cdb7-f601-4887-b580-49b0ddcf0672" + }, + "ResponseBody": { + "schemaVersion": 2, + "config": { + "mediaType": "application/vnd.acme.rocket.config", + "digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "size": 171 + }, + "layers": [ + { + "mediaType": "application/vnd.oci.image.layer.v1.tar", + "digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "size": 28, + "annotations": { + "org.opencontainers.image.title": "artifact.txt" + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/manifests/v1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "206", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a584132:pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "eee7bb78-6327-4fef-add0-35668507cb49" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "pull" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:08 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b26e90ce-c9fa-4f5f-9004-7b2f5fb9d58d", + "x-ms-ratelimit-remaining-calls-per-second": "166.25" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "123", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a584132%3Apull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:08 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8b669036-61d3-4964-954f-163eba79c8f2", + "x-ms-ratelimit-remaining-calls-per-second": "166.233333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/manifests/v1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "579", + "Content-Type": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Date": "Thu, 28 Jul 2022 07:47:08 GMT", + "Docker-Content-Digest": "sha256:789f7c67bf495ba14ff8de0c6273f546d7691935c73ae107774979dcb12148b2", + "Docker-Distribution-Api-Version": "registry/2.0", + "ETag": "\u0022sha256:789f7c67bf495ba14ff8de0c6273f546d7691935c73ae107774979dcb12148b2\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "6844281d-e8a3-4b51-b731-a32ebbe4f728" + }, + "ResponseBody": { + "schemaVersion": 2, + "config": { + "mediaType": "application/vnd.acme.rocket.config", + "digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "size": 171 + }, + "layers": [ + { + "mediaType": "application/vnd.oci.image.layer.v1.tar", + "digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "size": 28, + "annotations": { + "org.opencontainers.image.title": "artifact.txt" + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a584132/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a584132:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ce0c0854-8235-4776-85b7-b9859e04d9f0" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:08 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "9c8decd9-b926-4d26-956b-634d063b1e29", + "x-ms-ratelimit-remaining-calls-per-second": "166.216667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a584132%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:08 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "94d252ba-85d6-40ec-9738-4781ca8dc0b2", + "x-ms-ratelimit-remaining-calls-per-second": "166.2" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a584132/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "442", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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": "a6452e94-7b2a-4e37-a19a-26953547e60c" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo1a584132", + "manifest": { + "digest": "sha256:789f7c67bf495ba14ff8de0c6273f546d7691935c73ae107774979dcb12148b2", + "imageSize": 0, + "createdTime": "2022-07-28T07:47:07.639371Z", + "lastUpdateTime": "2022-07-28T07:47:07.639371Z", + "mediaType": "application/vnd.oci.image.manifest.v1\u002Bjson", + "tags": [ + "v1" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/manifests/sha256_encoded_stream", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "208", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a584132:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "2d673b4d-ab50-43ed-95d5-c8d817b8e719" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a584132", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:08 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4e16d250-5b9b-4a34-b70c-6f14c5c39b7f", + "x-ms-ratelimit-remaining-calls-per-second": "166.183333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a584132%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:08 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4d735bf1-e17b-457a-8307-b81f84e0402f", + "x-ms-ratelimit-remaining-calls-per-second": "166.166667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo1a584132/manifests/sha256_encoded_stream", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 07:47: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": "c5f9d721-40f6-4013-a4af-f1388ce05714", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_upload_oci_manifest_with_tag.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_upload_oci_manifest_with_tag.json new file mode 100644 index 000000000000..45aa3e8cfa5a --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.pyTestContainerRegistryClienttest_upload_oci_manifest_with_tag.json @@ -0,0 +1,1877 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo54393e47:push,pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "53f8a4d8-127d-412e-9584-35ef7ce1ae65" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:59 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeAgAAAOs1dNoOAAAA; expires=Sat, 27-Aug-2022 07:47:00 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/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" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeAgAAAOs1dNoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:59 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeAgAAAOs1dNoOAAAA; expires=Sat, 27-Aug-2022 07:47:00 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13355.6 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.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" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "add967cc-e656-4dbc-ac3a-24a359a2b348", + "Connection": "keep-alive", + "Content-Length": "238", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeAgAAAOs1dNoOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.14.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=client-id\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=client-secret\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "add967cc-e656-4dbc-ac3a-24a359a2b348", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:46:59 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=Agbl-ocKLdpNuKj9df3cjDahBUEeAwAAAOs1dNoOAAAA; expires=Sat, 27-Aug-2022 07:47:00 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13355.6 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:00 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "fa89ea46-2d79-40ed-aa35-4a8543a55285", + "x-ms-ratelimit-remaining-calls-per-second": "166.05" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo54393e47%3Apush%2Cpull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:00 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "774cd955-10f0-4f9e-88c3-3e5227fb8e0c", + "x-ms-ratelimit-remaining-calls-per-second": "166.033333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 07:47:00 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "c7d9329c-05b0-48aa-aea0-428c2c9fa993", + "Location": "/v2/repo54393e47/blobs/uploads/c7d9329c-05b0-48aa-aea0-428c2c9fa993?_nouploadcache=false\u0026_state=ZBMFXTQD9LFzLni0huJ_uR3Jr3cQkAg8KvdrfgngljJ7Ik5hbWUiOiJyZXBvNTQzOTNlNDciLCJVVUlEIjoiYzdkOTMyOWMtMDViMC00OGFhLWFlYTAtNDI4YzJjOWZhOTkzIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ3OjAwLjc4Mzc4MjIzWiJ9", + "Range": "0-0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "01d36eee-2494-4ce3-b1d2-894c28edab7b" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/blobs/uploads/c7d9329c-05b0-48aa-aea0-428c2c9fa993?_nouploadcache=false\u0026_state=ZBMFXTQD9LFzLni0huJ_uR3Jr3cQkAg8KvdrfgngljJ7Ik5hbWUiOiJyZXBvNTQzOTNlNDciLCJVVUlEIjoiYzdkOTMyOWMtMDViMC00OGFhLWFlYTAtNDI4YzJjOWZhOTkzIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ3OjAwLjc4Mzc4MjIzWiJ9", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "171", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "H4sIAAAAAAAA/\u002BzRwcrCMBAE4Dn/8L9DD551tulmn6dUq4VioUb06VUsORU8aRQx32VzSjYzi2bYt90WKZGkmU2T5HxOZ6lo6lTNPCjUUlFo0q2i4yHUI8hn75l/7kvE/lf1GLq2bsIynMOr37jn4b1/3L\u002BrYv9lWYkDxYkoireE\u002BOP9Xy87bNCjx4ACJwwY0WONf/x9erUsy7IsoVsAAAD//yO/fykACgAA", + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo54393e47:push,pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f37a03d8-19f9-47a8-90c4-1d65e33e26c8" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:00 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6bae09ff-3319-4ddf-abb9-5f43ce8a0181", + "x-ms-ratelimit-remaining-calls-per-second": "166.016667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo54393e47%3Apush%2Cpull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c31f02aa-1de7-456b-978c-2462c5cbce3b", + "x-ms-ratelimit-remaining-calls-per-second": "166" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/blobs/uploads/c7d9329c-05b0-48aa-aea0-428c2c9fa993?_nouploadcache=false\u0026_state=ZBMFXTQD9LFzLni0huJ_uR3Jr3cQkAg8KvdrfgngljJ7Ik5hbWUiOiJyZXBvNTQzOTNlNDciLCJVVUlEIjoiYzdkOTMyOWMtMDViMC00OGFhLWFlYTAtNDI4YzJjOWZhOTkzIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ3OjAwLjc4Mzc4MjIzWiJ9", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "171", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "H4sIAAAAAAAA/\u002BzRwcrCMBAE4Dn/8L9DD551tulmn6dUq4VioUb06VUsORU8aRQx32VzSjYzi2bYt90WKZGkmU2T5HxOZ6lo6lTNPCjUUlFo0q2i4yHUI8hn75l/7kvE/lf1GLq2bsIynMOr37jn4b1/3L\u002BrYv9lWYkDxYkoireE\u002BOP9Xy87bNCjx4ACJwwY0WONf/x9erUsy7IsoVsAAAD//yO/fykACgAA", + "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, 28 Jul 2022 07:47:01 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "c7d9329c-05b0-48aa-aea0-428c2c9fa993", + "Location": "/v2/repo54393e47/blobs/uploads/c7d9329c-05b0-48aa-aea0-428c2c9fa993?_nouploadcache=false\u0026_state=iuNUy53hofqESJ5vKkC4DbwPshAJZKoFEdDw49WueFZ7Ik5hbWUiOiJyZXBvNTQzOTNlNDciLCJVVUlEIjoiYzdkOTMyOWMtMDViMC00OGFhLWFlYTAtNDI4YzJjOWZhOTkzIiwiT2Zmc2V0IjoxNzEsIlN0YXJ0ZWRBdCI6IjIwMjItMDctMjhUMDc6NDc6MDBaIn0%3D", + "Range": "0-170", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "48db44e8-609d-4c7f-ae30-2aded5f33940" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/blobs/uploads/c7d9329c-05b0-48aa-aea0-428c2c9fa993?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo54393e47:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5c71d2b5-39eb-4e70-a42f-8d2430cc38b9" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6a19c56e-409b-4d6e-a84d-e391560b2133", + "x-ms-ratelimit-remaining-calls-per-second": "165.983333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo54393e47%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5ff08b55-92c7-41a3-b415-2049b0a23440", + "x-ms-ratelimit-remaining-calls-per-second": "165.966667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/blobs/uploads/c7d9329c-05b0-48aa-aea0-428c2c9fa993?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "0", + "Date": "Thu, 28 Jul 2022 07:47:01 GMT", + "Docker-Content-Digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "Docker-Distribution-Api-Version": "registry/2.0", + "Location": "/v2/repo54393e47/blobs/sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e5b37a85-a6c5-4ab3-99f3-b85a3c7eb7de" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo54393e47:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5adc71c3-9fc5-40c8-a655-250d4660480a" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0e1cc5bf-f8e2-40ce-a24d-d769fad4bbbc", + "x-ms-ratelimit-remaining-calls-per-second": "165.95" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo54393e47%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "df00ebfd-5d56-4e07-b39e-a9a16345eaa4", + "x-ms-ratelimit-remaining-calls-per-second": "165.933333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/blobs/uploads/", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 07:47:01 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "26124fbc-8f67-40c3-bb93-0dd4cee4a6d2", + "Location": "/v2/repo54393e47/blobs/uploads/26124fbc-8f67-40c3-bb93-0dd4cee4a6d2?_nouploadcache=false\u0026_state=6aSf5gqPI_RGugdpm6miEGxR3gmjw0OjfmeJuRqMx7J7Ik5hbWUiOiJyZXBvNTQzOTNlNDciLCJVVUlEIjoiMjYxMjRmYmMtOGY2Ny00MGMzLWJiOTMtMGRkNGNlZTRhNmQyIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ3OjAxLjgxOTA0ODE4OVoifQ%3D%3D", + "Range": "0-0", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "32f3d58e-6886-483a-acbf-cd28e02e5f00" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/blobs/uploads/26124fbc-8f67-40c3-bb93-0dd4cee4a6d2?_nouploadcache=false\u0026_state=6aSf5gqPI_RGugdpm6miEGxR3gmjw0OjfmeJuRqMx7J7Ik5hbWUiOiJyZXBvNTQzOTNlNDciLCJVVUlEIjoiMjYxMjRmYmMtOGY2Ny00MGMzLWJiOTMtMGRkNGNlZTRhNmQyIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ3OjAxLjgxOTA0ODE4OVoifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "28", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "//5oAGUAbABsAG8AIAB3AG8AcgBsAGQADQAKAA==", + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo54393e47:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "db8a8b2e-c4bb-4cfd-81ae-f06d454fa27c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2d107a65-63b6-4384-9778-1bb8ccd7657f", + "x-ms-ratelimit-remaining-calls-per-second": "165.916667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo54393e47%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "10b3c732-6102-418f-a4d8-3e2b1f20a9dd", + "x-ms-ratelimit-remaining-calls-per-second": "165.9" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/blobs/uploads/26124fbc-8f67-40c3-bb93-0dd4cee4a6d2?_nouploadcache=false\u0026_state=6aSf5gqPI_RGugdpm6miEGxR3gmjw0OjfmeJuRqMx7J7Ik5hbWUiOiJyZXBvNTQzOTNlNDciLCJVVUlEIjoiMjYxMjRmYmMtOGY2Ny00MGMzLWJiOTMtMGRkNGNlZTRhNmQyIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA3LTI4VDA3OjQ3OjAxLjgxOTA0ODE4OVoifQ%3D%3D", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "28", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "//5oAGUAbABsAG8AIAB3AG8AcgBsAGQADQAKAA==", + "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, 28 Jul 2022 07:47:02 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Docker-Upload-Uuid": "26124fbc-8f67-40c3-bb93-0dd4cee4a6d2", + "Location": "/v2/repo54393e47/blobs/uploads/26124fbc-8f67-40c3-bb93-0dd4cee4a6d2?_nouploadcache=false\u0026_state=oxRfB-pgDlP075WE-p5o5lANX8ScXyoTPvjPSpyTgjJ7Ik5hbWUiOiJyZXBvNTQzOTNlNDciLCJVVUlEIjoiMjYxMjRmYmMtOGY2Ny00MGMzLWJiOTMtMGRkNGNlZTRhNmQyIiwiT2Zmc2V0IjoyOCwiU3RhcnRlZEF0IjoiMjAyMi0wNy0yOFQwNzo0NzowMVoifQ%3D%3D", + "Range": "0-27", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "eeef4f62-3a51-4bb3-b357-9a3d72483142" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/blobs/uploads/26124fbc-8f67-40c3-bb93-0dd4cee4a6d2?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo54393e47:push,pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "d956b6a2-e5d4-4fd2-b8c1-2b309f9a82a1" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5adc5160-ea10-416e-a914-461b872b42ad", + "x-ms-ratelimit-remaining-calls-per-second": "165.883333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo54393e47%3Apush%2Cpull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0a113afc-9598-4ce5-9540-f81acdfe960c", + "x-ms-ratelimit-remaining-calls-per-second": "165.866667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/blobs/uploads/26124fbc-8f67-40c3-bb93-0dd4cee4a6d2?digest=sha256_encoded_stream", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "0", + "Date": "Thu, 28 Jul 2022 07:47:02 GMT", + "Docker-Content-Digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "Docker-Distribution-Api-Version": "registry/2.0", + "Location": "/v2/repo54393e47/blobs/sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "168aae53-93f5-4fc7-9f47-ad7ce8bf1286" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/manifests/v1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "417", + "Content-Type": "application/vnd.oci.image.manifest.v1\u002Bjson", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "config": { + "mediaType": "application/vnd.acme.rocket.config", + "size": 171, + "digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8" + }, + "layers": [ + { + "mediaType": "application/vnd.oci.image.layer.v1.tar", + "size": 28, + "digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "annotations": { + "org.opencontainers.image.ref.name": "artifact.txt" + } + } + ], + "schemaVersion": 2 + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "266", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo54393e47:pull,push\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "dfbe0432-0be6-4ed4-9650-67276e4429a4" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "pull" + }, + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "push" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "24cd9d07-4b0a-467d-b484-00302891a81a", + "x-ms-ratelimit-remaining-calls-per-second": "165.85" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "130", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo54393e47%3Apull%2Cpush\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:02 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6c7129b9-6703-4c46-beb2-c1a27f47eb8c", + "x-ms-ratelimit-remaining-calls-per-second": "165.833333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/manifests/v1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "417", + "Content-Type": "application/vnd.oci.image.manifest.v1\u002Bjson", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "config": { + "mediaType": "application/vnd.acme.rocket.config", + "size": 171, + "digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8" + }, + "layers": [ + { + "mediaType": "application/vnd.oci.image.layer.v1.tar", + "size": 28, + "digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "annotations": { + "org.opencontainers.image.ref.name": "artifact.txt" + } + } + ], + "schemaVersion": 2 + }, + "StatusCode": 201, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "close", + "Content-Length": "0", + "Date": "Thu, 28 Jul 2022 07:47:03 GMT", + "Docker-Content-Digest": "sha256:81c148434d2814d0c55688399beeda776299a11814a3a2555871a3182908601a", + "Docker-Distribution-Api-Version": "registry/2.0", + "Location": "/v2/repo54393e47/manifests/sha256:81c148434d2814d0c55688399beeda776299a11814a3a2555871a3182908601a", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "9c606631-e4f9-4045-a41d-5163e3e577d9" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "206", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo54393e47:pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7ebe527a-3004-41bd-adb1-ad0bf5aa36a0" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "pull" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b6807eb7-ffcc-49a2-b1fc-692811330e0b", + "x-ms-ratelimit-remaining-calls-per-second": "166.65" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "123", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo54393e47%3Apull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "387111b9-bb65-4141-be85-1827715706b3", + "x-ms-ratelimit-remaining-calls-per-second": "166.633333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "417", + "Content-Type": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Date": "Thu, 28 Jul 2022 07:47:03 GMT", + "Docker-Content-Digest": "sha256:81c148434d2814d0c55688399beeda776299a11814a3a2555871a3182908601a", + "Docker-Distribution-Api-Version": "registry/2.0", + "ETag": "\u0022sha256:81c148434d2814d0c55688399beeda776299a11814a3a2555871a3182908601a\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "463a3996-aec6-41aa-b11b-fdf3111b1a21" + }, + "ResponseBody": { + "config": { + "mediaType": "application/vnd.acme.rocket.config", + "size": 171, + "digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8" + }, + "layers": [ + { + "mediaType": "application/vnd.oci.image.layer.v1.tar", + "size": 28, + "digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "annotations": { + "org.opencontainers.image.ref.name": "artifact.txt" + } + } + ], + "schemaVersion": 2 + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/manifests/v1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "206", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo54393e47:pull\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e6fc2d50-c766-4b76-acce-0a93d59ba531" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "pull" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "bd26ed42-7eb4-4ba1-849c-9d27ee973d47", + "x-ms-ratelimit-remaining-calls-per-second": "166.616667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "123", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo54393e47%3Apull\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:03 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6cd8c41c-3127-4670-8dff-f15e42126637", + "x-ms-ratelimit-remaining-calls-per-second": "166.6" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/manifests/v1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "417", + "Content-Type": "application/vnd.oci.image.manifest.v1\u002Bjson", + "Date": "Thu, 28 Jul 2022 07:47:03 GMT", + "Docker-Content-Digest": "sha256:81c148434d2814d0c55688399beeda776299a11814a3a2555871a3182908601a", + "Docker-Distribution-Api-Version": "registry/2.0", + "ETag": "\u0022sha256:81c148434d2814d0c55688399beeda776299a11814a3a2555871a3182908601a\u0022", + "Server": "openresty", + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains", + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a7739dae-c3e5-4b92-901b-fe1abe8adb95" + }, + "ResponseBody": { + "config": { + "mediaType": "application/vnd.acme.rocket.config", + "size": 171, + "digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8" + }, + "layers": [ + { + "mediaType": "application/vnd.oci.image.layer.v1.tar", + "size": 28, + "digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "annotations": { + "org.opencontainers.image.ref.name": "artifact.txt" + } + } + ], + "schemaVersion": 2 + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo54393e47/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo54393e47:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a8482642-c939-45b9-a999-e4d011e89f39" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:04 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "cd03178e-5bd0-467d-b54f-5e3b50a9db7f", + "x-ms-ratelimit-remaining-calls-per-second": "166.583333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo54393e47%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:04 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3d9c68f2-e4ee-4795-9e11-f1d92c758f09", + "x-ms-ratelimit-remaining-calls-per-second": "166.566667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo54393e47/_manifests/sha256_encoded_stream", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "444", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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": "9c161e87-4503-4ad4-8391-64ca88d45c45" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo54393e47", + "manifest": { + "digest": "sha256:81c148434d2814d0c55688399beeda776299a11814a3a2555871a3182908601a", + "imageSize": 0, + "createdTime": "2022-07-28T07:47:02.9154468Z", + "lastUpdateTime": "2022-07-28T07:47:02.9154468Z", + "mediaType": "application/vnd.oci.image.manifest.v1\u002Bjson", + "tags": [ + "v1" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/manifests/sha256_encoded_stream", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "208", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo54393e47:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c9c02912-33b3-4348-ac2e-263445324c2f" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo54393e47", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:04 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "dd4193c8-d590-4253-a89a-43e0077a9726", + "x-ms-ratelimit-remaining-calls-per-second": "166.55" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo54393e47%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jul 2022 07:47:04 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c6461172-09f0-4168-9035-5bede13ab8ec", + "x-ms-ratelimit-remaining-calls-per-second": "166.533333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repo54393e47/manifests/sha256_encoded_stream", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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, 28 Jul 2022 07:47: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": "a81062ce-18e4-46dd-a6ca-8d32eed3db6f", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_construct_container_registry_client.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_construct_container_registry_client.yaml deleted file mode 100644 index 802858a4623a..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_construct_container_registry_client.yaml +++ /dev/null @@ -1,87 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:19:25 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1299' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "retrieving permissions - failed"}]}' - headers: - connection: - - keep-alive - content-length: - - '78' - content-type: - - application/json - date: - - Fri, 12 Nov 2021 00:19:25 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - x-ms-ratelimit-remaining-calls-per-second: - - '166.65' - status: - code: 401 - message: Unauthorized -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_manifest.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_manifest.yaml deleted file mode 100644 index 7553b182372f..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_manifest.yaml +++ /dev/null @@ -1,503 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo26ab150f/_tags/tag26ab150f?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo26ab150f", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:19:52 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:19:53 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo26ab150f%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:19:53 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.566667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo26ab150f/_tags/tag26ab150f?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo26ab150f", - "tag": {"name": "tag26ab150f", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-12T00:19:31.1614288Z", "lastUpdateTime": "2021-11-12T00:19:31.1614288Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:19: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/repo26ab150f/manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo26ab150f", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '208' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:19: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:19:53 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.55' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo26ab150f%3Adelete&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1145' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:19:53 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.533333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/repo26ab150f/manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685 - response: - body: - string: '' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '0' - date: - - Fri, 12 Nov 2021 00:19:54 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-ratelimit-remaining-calls-per-second: - - '8.000000' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo26ab150f/_tags/tag26ab150f?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo26ab150f", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:20: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:20:06 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo26ab150f%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:20:06 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.5' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo26ab150f/_tags/tag26ab150f?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does - not exist"}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:20: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 - status: - code: 404 - message: Not Found -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_manifest_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_manifest_does_not_exist.yaml deleted file mode 100644 index e6a2c7cb1a85..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_manifest_does_not_exist.yaml +++ /dev/null @@ -1,522 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo93d41b55/_tags/tag93d41b55?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo93d41b55", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:20:32 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:20:33 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.433333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo93d41b55%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:20:33 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo93d41b55/_tags/tag93d41b55?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo93d41b55", - "tag": {"name": "tag93d41b55", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:25:45.0589411Z", "lastUpdateTime": "2021-11-11T23:25:45.0589411Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:20:33 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo93d41b55/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo93d41b55", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:20: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:20:33 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.4' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo93d41b55%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:20:33 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.383333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo93d41b55/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo93d41b55", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-11T23:25:44.9453403Z", "lastUpdateTime": - "2021-11-11T23:25:44.9453403Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tag93d41b55"], "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1823' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:20:33 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/repo93d41b55/manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a56aaaaaaaaaa - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo93d41b55", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '208' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:20: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:20:33 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.366667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo93d41b55%3Adelete&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1145' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:20:33 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.35' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/repo93d41b55/manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a56aaaaaaaaaa - response: - body: - string: '{"errors": [{"code": "MANIFEST_UNKNOWN", "message": "manifest sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a56aaaaaaaaaa - is not found"}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '147' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:20:33 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-ratelimit-remaining-calls-per-second: - - '8.000000' - status: - code: 404 - message: Not Found -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_repository.yaml deleted file mode 100644 index de65b2325f74..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_repository.yaml +++ /dev/null @@ -1,351 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "to_be_deleted", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '209' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:20: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:20:59 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Ato_be_deleted%3Adelete&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1146' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:20:59 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.566667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted?api-version=2021-07-01 - response: - body: - string: '{"manifestsDeleted": ["sha256:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184", - "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", - "sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c", - "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "sha256:98c9722322be649df94780d3fbe594fce7996234b259f27eac9428b84050c849", - "sha256:b836bb24a270b9cc935962d8228517fde0f16990e88893d935efcb1b14c0017a", - "sha256:c2f204d26b4ea353651385001bb6bc371d8c4edcd9daf61d00ad365d927e00c0", - "sha256:c7b6944911848ce39b44ed660d95fb54d69bbd531de724c7ce6fc9f743c0b861", - "sha256:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c", - "sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4"], - "tagsDeleted": ["latest"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '936' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21: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-ratelimit-remaining-calls-per-second: - - '8.000000' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:21: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:01 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.55' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1135' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:01 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.533333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo26ab150f", "repo27741d6f", "repo2b381dc2", "repo2bef19cb", "repo45431dd7", - "repo60eb1a9e", "repo63d41ad4", "repo6969166d", "repo80c61ece", "repo816516e9", - "repo93d41b55", "repoaf8317b0", "repoc1b812f4", "repodf771888", "repoec051cb9"]}' - headers: - 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: - - Fri, 12 Nov 2021 00:21: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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_repository_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_repository_does_not_exist.yaml deleted file mode 100644 index 7b38fdd5e30b..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_repository_does_not_exist.yaml +++ /dev/null @@ -1,173 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/not_real_repo?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "not_real_repo", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '209' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:02 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.133333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Anot_real_repo%3Adelete&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1146' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:02 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.05' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/not_real_repo?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "NAME_UNKNOWN", "message": "repository name not - known to registry", "detail": {"name": "not_real_repo"}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '121' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21: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-ratelimit-remaining-calls-per-second: - - '8.000000' - status: - code: 404 - message: Not Found -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_tag.yaml deleted file mode 100644 index abbefe0ba173..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_tag.yaml +++ /dev/null @@ -1,348 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repoc1b812f4/_tags/tagc1b812f40?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoc1b812f4", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '208' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:28 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:29 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoc1b812f4%3Adelete&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1145' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:29 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repoc1b812f4/_tags/tagc1b812f40?api-version=2021-07-01 - response: - body: - string: '' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '0' - date: - - Fri, 12 Nov 2021 00:21: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-int-docker-content-digest: - - sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685 - x-ms-ratelimit-remaining-calls-per-second: - - '8.000000' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoc1b812f4/_tags - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoc1b812f4", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:21: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:29 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.45' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoc1b812f4%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:29 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.433333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoc1b812f4/_tags - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoc1b812f4", - "tags": [{"name": "tagc1b812f41", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:26:43.0134841Z", "lastUpdateTime": "2021-11-11T23:26:43.0134841Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagc1b812f42", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:26:43.6125326Z", "lastUpdateTime": "2021-11-11T23:26:43.6125326Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagc1b812f43", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:26:42.5765225Z", "lastUpdateTime": "2021-11-11T23:26:42.5765225Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1032' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21: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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_tag_does_not_exist.yaml deleted file mode 100644 index 5933df3d021c..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_delete_tag_does_not_exist.yaml +++ /dev/null @@ -1,173 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/does_not_exist/_tags/does_not_exist?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "does_not_exist", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '210' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:30 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Adoes_not_exist%3Adelete&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1147' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:30 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/does_not_exist/_tags/does_not_exist?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does - not exist"}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:21:30 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-ratelimit-remaining-calls-per-second: - - '8.000000' - status: - code: 404 - message: Not Found -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_expiration_time_parsing.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_expiration_time_parsing.yaml deleted file mode 100644 index d387a339b9dd..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_expiration_time_parsing.yaml +++ /dev/null @@ -1,298 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:21:30 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:31 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.65' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1135' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:31 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo26ab150f", "repo27741d6f", "repo2b381dc2", "repo2bef19cb", "repo45431dd7", - "repo60eb1a9e", "repo63d41ad4", "repo6969166d", "repo80c61ece", "repo816516e9", - "repo93d41b55", "repoaf8317b0", "repoc1b812f4", "repodf771888", "repoec051cb9"]}' - headers: - 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: - - Fri, 12 Nov 2021 00:21:31 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:21:31 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1135' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:31 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo26ab150f", "repo27741d6f", "repo2b381dc2", "repo2bef19cb", "repo45431dd7", - "repo60eb1a9e", "repo63d41ad4", "repo6969166d", "repo80c61ece", "repo816516e9", - "repo93d41b55", "repoaf8317b0", "repoc1b812f4", "repodf771888", "repoec051cb9"]}' - headers: - 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: - - Fri, 12 Nov 2021 00:21:31 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_manifest_properties.yaml deleted file mode 100644 index c071ea2428c4..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_manifest_properties.yaml +++ /dev/null @@ -1,351 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repodf771888/_tags/tagdf771888?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repodf771888", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:21: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:57 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.433333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepodf771888%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:57 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.183333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repodf771888/_tags/tagdf771888?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repodf771888", - "tag": {"name": "tagdf771888", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:27:12.4835742Z", "lastUpdateTime": "2021-11-11T23:27:12.4835742Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:21:57 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repodf771888/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repodf771888", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:21: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:57 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.166667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepodf771888%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:57 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.15' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repodf771888/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repodf771888", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-11T23:27:12.5542272Z", "lastUpdateTime": - "2021-11-11T23:27:12.5542272Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tagdf771888"], "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1823' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:21:57 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_manifest_properties_does_not_exist.yaml deleted file mode 100644 index 433426f78daa..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_manifest_properties_does_not_exist.yaml +++ /dev/null @@ -1,515 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo80c61ece/_tags/tag80c61ece?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo80c61ece", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:22:22 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:23 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.933333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo80c61ece%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:23 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.916667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo80c61ece/_tags/tag80c61ece?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo80c61ece", - "tag": {"name": "tag80c61ece", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:27:40.8785141Z", "lastUpdateTime": "2021-11-11T23:27:40.8785141Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:22:23 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo80c61ece/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo80c61ece", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:22: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:23 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.9' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo80c61ece%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:23 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.883333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo80c61ece/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo80c61ece", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-11T23:27:40.8046567Z", "lastUpdateTime": - "2021-11-11T23:27:40.8046567Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tag80c61ece"], "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1823' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:23 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo80c61ece/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a56aaaaaaaaaa?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo80c61ece", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:22:24 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:24 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.866667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo80c61ece%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:24 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.85' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo80c61ece/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a56aaaaaaaaaa?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "MANIFEST_UNKNOWN", "message": "manifest unknown"}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '70' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:24 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 - status: - code: 404 - message: Not Found -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_misspell_property.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_misspell_property.yaml deleted file mode 100644 index 26ebc0f1a545..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_misspell_property.yaml +++ /dev/null @@ -1,169 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.1 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/alpine", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '217' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 17 Mar 2022 13:08:48 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1379' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.1 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Thu, 17 Mar 2022 13:08:48 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.65' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Alibrary%2Falpine%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1156' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.1 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Thu, 17 Mar 2022 13:08:49 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.1 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/alpine", - "createdTime": "2022-03-17T12:20:47.2455348Z", "lastUpdateTime": "2022-03-17T12:20:45.8750709Z", - "manifestCount": 8, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '296' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 17 Mar 2022 13:08:49 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_repository_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_repository_properties.yaml deleted file mode 100644 index 56472021d62f..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_repository_properties.yaml +++ /dev/null @@ -1,169 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/alpine", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '217' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:24 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:24 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.65' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Alibrary%2Falpine%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1156' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:24 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/alpine", - "createdTime": "2021-11-11T20:43:54.5389765Z", "lastUpdateTime": "2021-11-11T20:43:52.2799515Z", - "manifestCount": 8, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '296' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:25 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_tag.yaml deleted file mode 100644 index 9d18b8bd9901..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_tag.yaml +++ /dev/null @@ -1,170 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo8a3011c1/_tags/tag8a3011c1 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo8a3011c1", "Action": "metadata_read"}]}]}' - headers: - 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: - - Wed, 19 May 2021 21:53: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1343' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:54:01 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo8a3011c1%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1142' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:54:01 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo8a3011c1/_tags/tag8a3011c1 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo8a3011c1", "tag": - {"name": "tag8a3011c1", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T21:53:33.7311277Z", "lastUpdateTime": "2021-05-19T21:53:33.7311277Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:54: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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_tag_does_not_exist.yaml deleted file mode 100644 index c6b6e5a37a7e..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_tag_does_not_exist.yaml +++ /dev/null @@ -1,41 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/Nonexistent/_tags/Nonexistent - response: - body: - string: '404 page not found - - ' - headers: - connection: - - keep-alive - content-length: - - '19' - content-type: - - text/plain; charset=utf-8 - date: - - Wed, 19 May 2021 21:54: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 - status: - code: 404 - message: Not Found -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_tag_properties.yaml deleted file mode 100644 index bda4ccb81b40..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_tag_properties.yaml +++ /dev/null @@ -1,170 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo6969166d/_tags/tag6969166d?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo6969166d", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:22:51 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:52 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.116667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo6969166d%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:52 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.1' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo6969166d/_tags/tag6969166d?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo6969166d", - "tag": {"name": "tag6969166d", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:28:12.4400692Z", "lastUpdateTime": "2021-11-11T23:28:12.4400692Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:22:52 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_tag_properties_does_not_exist.yaml deleted file mode 100644 index 415ae3725856..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_get_tag_properties_does_not_exist.yaml +++ /dev/null @@ -1,41 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/Nonexistent/_tags/Nonexistent?api-version=2021-07-01 - response: - body: - string: '404 page not found - - ' - headers: - connection: - - keep-alive - content-length: - - '19' - content-type: - - text/plain; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:52 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 - status: - code: 404 - message: Not Found -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_incorrect_authentication_scope.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_incorrect_authentication_scope.yaml deleted file mode 100644 index 9e0aa92e91b1..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_incorrect_authentication_scope.yaml +++ /dev/null @@ -1,48 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Fri, 04 Jun 2021 14:58: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_incorrect_credential_scopes.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_incorrect_credential_scopes.yaml deleted file mode 100644 index cb5588cef838..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_incorrect_credential_scopes.yaml +++ /dev/null @@ -1,48 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b5 Python/3.9.2 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world - response: - body: - string: '{"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"}]}]}' - headers: - 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: - - Tue, 17 Aug 2021 18:10:24 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_registry_artifacts.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_registry_artifacts.yaml deleted file mode 100644 index 1c8df6177917..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_registry_artifacts.yaml +++ /dev/null @@ -1,257 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '218' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:52 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:53 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.95' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1157' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:53 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.833333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:02eb46ac1dbd9302135da448098a66a33c10a677f5946487185aa29d2a7700ce", - "imageSize": 907271, "createdTime": "2021-11-11T20:44:17.5125876Z", "lastUpdateTime": - "2021-11-11T20:44:17.5125876Z", "architecture": "riscv64", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/12/2021 - 12:19:13 AM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1", - "imageSize": 830502, "createdTime": "2021-11-11T20:44:17.9037762Z", "lastUpdateTime": - "2021-11-11T20:44:17.9037762Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:34efe68cca33507682b1673c851700ec66839ecf94d19b928176e20d20e02413", - "imageSize": 774775, "createdTime": "2021-11-11T20:44:16.5759047Z", "lastUpdateTime": - "2021-11-11T20:44:16.5759047Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:48 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42", - "imageSize": 954552, "createdTime": "2021-11-11T20:44:16.7666058Z", "lastUpdateTime": - "2021-11-11T20:44:16.7666058Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:54339d461e3be5eef03b0a444af67e595c7c9513b18bf6b8f343d52414ce8ec0", - "imageSize": 2008812, "createdTime": "2021-11-11T20:44:21.8064782Z", "lastUpdateTime": - "2021-11-11T20:44:21.8064782Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0", - "imageSize": 758161, "createdTime": "2021-11-11T20:44:16.8529497Z", "lastUpdateTime": - "2021-11-11T20:44:16.8529497Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:a306c64b6a97a94ed0df1598c4f3a7ed6057393bc114b7e8eb0da67352879725", - "imageSize": 2486088, "createdTime": "2021-11-11T23:22:45.8580257Z", "lastUpdateTime": - "2021-11-11T23:22:45.8580257Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:52 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b70f0f45692830c2990b42f770aa29488c20ac41f1c3dcaa242920b73cb1399b", - "imageSize": 2486081, "createdTime": "2021-11-11T20:44:17.2561411Z", "lastUpdateTime": - "2021-11-11T20:44:17.2561411Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75", - "imageSize": 726234, "createdTime": "2021-11-11T20:44:16.6890885Z", "lastUpdateTime": - "2021-11-11T20:44:16.6890885Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:52 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:be0b3422c99de66c5bb4808cd74a30870e68252fdd361d84250f9691797a2665", - "imageSize": 738045, "createdTime": "2021-11-11T20:44:17.3648296Z", "lastUpdateTime": - "2021-11-11T20:44:17.3648296Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:d3e1e21da02b208de17464716e53a010422308e052bf6e6ee24ca04654e6762a", - "imageSize": 11149170, "createdTime": "2021-11-11T20:44:20.8953507Z", "lastUpdateTime": - "2021-11-11T20:44:20.8953507Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}, {"digest": "sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9", - "imageSize": 962442, "createdTime": "2021-11-11T20:44:17.4498895Z", "lastUpdateTime": - "2021-11-11T20:44:17.4498895Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/12/2021 - 12:19:11 AM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e7157b6d7ebbe2cce5eaa8cfe8aa4fa82d173999b9f90a9ec42e57323546c353", - "imageSize": 11149177, "createdTime": "2021-11-11T23:22:44.6300561Z", "lastUpdateTime": - "2021-11-11T23:22:44.6300561Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:22:54 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_registry_artifacts_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_registry_artifacts_ascending.yaml deleted file mode 100644 index 476097940827..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_registry_artifacts_ascending.yaml +++ /dev/null @@ -1,512 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '218' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:55 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.45' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1157' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:55 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.233333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:34efe68cca33507682b1673c851700ec66839ecf94d19b928176e20d20e02413", - "imageSize": 774775, "createdTime": "2021-11-11T20:44:16.5759047Z", "lastUpdateTime": - "2021-11-11T20:44:16.5759047Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:48 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75", - "imageSize": 726234, "createdTime": "2021-11-11T20:44:16.6890885Z", "lastUpdateTime": - "2021-11-11T20:44:16.6890885Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:52 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42", - "imageSize": 954552, "createdTime": "2021-11-11T20:44:16.7666058Z", "lastUpdateTime": - "2021-11-11T20:44:16.7666058Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0", - "imageSize": 758161, "createdTime": "2021-11-11T20:44:16.8529497Z", "lastUpdateTime": - "2021-11-11T20:44:16.8529497Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b70f0f45692830c2990b42f770aa29488c20ac41f1c3dcaa242920b73cb1399b", - "imageSize": 2486081, "createdTime": "2021-11-11T20:44:17.2561411Z", "lastUpdateTime": - "2021-11-11T20:44:17.2561411Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:be0b3422c99de66c5bb4808cd74a30870e68252fdd361d84250f9691797a2665", - "imageSize": 738045, "createdTime": "2021-11-11T20:44:17.3648296Z", "lastUpdateTime": - "2021-11-11T20:44:17.3648296Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9", - "imageSize": 962442, "createdTime": "2021-11-11T20:44:17.4498895Z", "lastUpdateTime": - "2021-11-11T20:44:17.4498895Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/12/2021 - 12:19:11 AM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:02eb46ac1dbd9302135da448098a66a33c10a677f5946487185aa29d2a7700ce", - "imageSize": 907271, "createdTime": "2021-11-11T20:44:17.5125876Z", "lastUpdateTime": - "2021-11-11T20:44:17.5125876Z", "architecture": "riscv64", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/12/2021 - 12:19:13 AM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1", - "imageSize": 830502, "createdTime": "2021-11-11T20:44:17.9037762Z", "lastUpdateTime": - "2021-11-11T20:44:17.9037762Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:d3e1e21da02b208de17464716e53a010422308e052bf6e6ee24ca04654e6762a", - "imageSize": 11149170, "createdTime": "2021-11-11T20:44:20.8953507Z", "lastUpdateTime": - "2021-11-11T20:44:20.8953507Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}, {"digest": "sha256:54339d461e3be5eef03b0a444af67e595c7c9513b18bf6b8f343d52414ce8ec0", - "imageSize": 2008812, "createdTime": "2021-11-11T20:44:21.8064782Z", "lastUpdateTime": - "2021-11-11T20:44:21.8064782Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e7157b6d7ebbe2cce5eaa8cfe8aa4fa82d173999b9f90a9ec42e57323546c353", - "imageSize": 11149177, "createdTime": "2021-11-11T23:22:44.6300561Z", "lastUpdateTime": - "2021-11-11T23:22:44.6300561Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:a306c64b6a97a94ed0df1598c4f3a7ed6057393bc114b7e8eb0da67352879725", - "imageSize": 2486088, "createdTime": "2021-11-11T23:22:45.8580257Z", "lastUpdateTime": - "2021-11-11T23:22:45.8580257Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:52 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:22: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '218' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:56 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.216667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1157' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:56 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.2' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:34efe68cca33507682b1673c851700ec66839ecf94d19b928176e20d20e02413", - "imageSize": 774775, "createdTime": "2021-11-11T20:44:16.5759047Z", "lastUpdateTime": - "2021-11-11T20:44:16.5759047Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:48 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75", - "imageSize": 726234, "createdTime": "2021-11-11T20:44:16.6890885Z", "lastUpdateTime": - "2021-11-11T20:44:16.6890885Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:52 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42", - "imageSize": 954552, "createdTime": "2021-11-11T20:44:16.7666058Z", "lastUpdateTime": - "2021-11-11T20:44:16.7666058Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0", - "imageSize": 758161, "createdTime": "2021-11-11T20:44:16.8529497Z", "lastUpdateTime": - "2021-11-11T20:44:16.8529497Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b70f0f45692830c2990b42f770aa29488c20ac41f1c3dcaa242920b73cb1399b", - "imageSize": 2486081, "createdTime": "2021-11-11T20:44:17.2561411Z", "lastUpdateTime": - "2021-11-11T20:44:17.2561411Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:be0b3422c99de66c5bb4808cd74a30870e68252fdd361d84250f9691797a2665", - "imageSize": 738045, "createdTime": "2021-11-11T20:44:17.3648296Z", "lastUpdateTime": - "2021-11-11T20:44:17.3648296Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9", - "imageSize": 962442, "createdTime": "2021-11-11T20:44:17.4498895Z", "lastUpdateTime": - "2021-11-11T20:44:17.4498895Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/12/2021 - 12:19:11 AM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:02eb46ac1dbd9302135da448098a66a33c10a677f5946487185aa29d2a7700ce", - "imageSize": 907271, "createdTime": "2021-11-11T20:44:17.5125876Z", "lastUpdateTime": - "2021-11-11T20:44:17.5125876Z", "architecture": "riscv64", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/12/2021 - 12:19:13 AM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1", - "imageSize": 830502, "createdTime": "2021-11-11T20:44:17.9037762Z", "lastUpdateTime": - "2021-11-11T20:44:17.9037762Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:d3e1e21da02b208de17464716e53a010422308e052bf6e6ee24ca04654e6762a", - "imageSize": 11149170, "createdTime": "2021-11-11T20:44:20.8953507Z", "lastUpdateTime": - "2021-11-11T20:44:20.8953507Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}, {"digest": "sha256:54339d461e3be5eef03b0a444af67e595c7c9513b18bf6b8f343d52414ce8ec0", - "imageSize": 2008812, "createdTime": "2021-11-11T20:44:21.8064782Z", "lastUpdateTime": - "2021-11-11T20:44:21.8064782Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e7157b6d7ebbe2cce5eaa8cfe8aa4fa82d173999b9f90a9ec42e57323546c353", - "imageSize": 11149177, "createdTime": "2021-11-11T23:22:44.6300561Z", "lastUpdateTime": - "2021-11-11T23:22:44.6300561Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:a306c64b6a97a94ed0df1598c4f3a7ed6057393bc114b7e8eb0da67352879725", - "imageSize": 2486088, "createdTime": "2021-11-11T23:22:45.8580257Z", "lastUpdateTime": - "2021-11-11T23:22:45.8580257Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:52 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:22:57 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_registry_artifacts_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_registry_artifacts_by_page.yaml deleted file mode 100644 index a227d3bc7085..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_registry_artifacts_by_page.yaml +++ /dev/null @@ -1,1265 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '218' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:59 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.083333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1157' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:59 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.066667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:02eb46ac1dbd9302135da448098a66a33c10a677f5946487185aa29d2a7700ce", - "imageSize": 907271, "createdTime": "2021-11-11T20:44:17.5125876Z", "lastUpdateTime": - "2021-11-11T20:44:17.5125876Z", "architecture": "riscv64", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/12/2021 - 12:19:13 AM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1", - "imageSize": 830502, "createdTime": "2021-11-11T20:44:17.9037762Z", "lastUpdateTime": - "2021-11-11T20:44:17.9037762Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1583' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22:59 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '218' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:22: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:00 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.05' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1157' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:00 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1&n=2&orderby= - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:34efe68cca33507682b1673c851700ec66839ecf94d19b928176e20d20e02413", - "imageSize": 774775, "createdTime": "2021-11-11T20:44:16.5759047Z", "lastUpdateTime": - "2021-11-11T20:44:16.5759047Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:48 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42", - "imageSize": 954552, "createdTime": "2021-11-11T20:44:16.7666058Z", "lastUpdateTime": - "2021-11-11T20:44:16.7666058Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1583' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:00 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '218' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:00 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.45' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1157' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:00 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.433333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42&n=2&orderby= - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:54339d461e3be5eef03b0a444af67e595c7c9513b18bf6b8f343d52414ce8ec0", - "imageSize": 2008812, "createdTime": "2021-11-11T20:44:21.8064782Z", "lastUpdateTime": - "2021-11-11T20:44:21.8064782Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0", - "imageSize": 758161, "createdTime": "2021-11-11T20:44:16.8529497Z", "lastUpdateTime": - "2021-11-11T20:44:16.8529497Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1586' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:00 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '218' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:00 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1157' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:00 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.4' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0&n=2&orderby= - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:a306c64b6a97a94ed0df1598c4f3a7ed6057393bc114b7e8eb0da67352879725", - "imageSize": 2486088, "createdTime": "2021-11-11T23:22:45.8580257Z", "lastUpdateTime": - "2021-11-11T23:22:45.8580257Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:52 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b70f0f45692830c2990b42f770aa29488c20ac41f1c3dcaa242920b73cb1399b", - "imageSize": 2486081, "createdTime": "2021-11-11T20:44:17.2561411Z", "lastUpdateTime": - "2021-11-11T20:44:17.2561411Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1591' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:01 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ab70f0f45692830c2990b42f770aa29488c20ac41f1c3dcaa242920b73cb1399b&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '218' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:01 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.383333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1157' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:01 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.366667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ab70f0f45692830c2990b42f770aa29488c20ac41f1c3dcaa242920b73cb1399b&n=2&orderby= - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75", - "imageSize": 726234, "createdTime": "2021-11-11T20:44:16.6890885Z", "lastUpdateTime": - "2021-11-11T20:44:16.6890885Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:52 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:be0b3422c99de66c5bb4808cd74a30870e68252fdd361d84250f9691797a2665", - "imageSize": 738045, "createdTime": "2021-11-11T20:44:17.3648296Z", "lastUpdateTime": - "2021-11-11T20:44:17.3648296Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1581' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:01 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Abe0b3422c99de66c5bb4808cd74a30870e68252fdd361d84250f9691797a2665&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '218' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:02 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.35' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1157' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:02 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.333333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Abe0b3422c99de66c5bb4808cd74a30870e68252fdd361d84250f9691797a2665&n=2&orderby= - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:d3e1e21da02b208de17464716e53a010422308e052bf6e6ee24ca04654e6762a", - "imageSize": 11149170, "createdTime": "2021-11-11T20:44:20.8953507Z", "lastUpdateTime": - "2021-11-11T20:44:20.8953507Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}, {"digest": "sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9", - "imageSize": 962442, "createdTime": "2021-11-11T20:44:17.4498895Z", "lastUpdateTime": - "2021-11-11T20:44:17.4498895Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/12/2021 - 12:19:11 AM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1207' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:02 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '218' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:02 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.316667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1157' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:03 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.3' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ae54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9&n=2&orderby= - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:e7157b6d7ebbe2cce5eaa8cfe8aa4fa82d173999b9f90a9ec42e57323546c353", - "imageSize": 11149177, "createdTime": "2021-11-11T23:22:44.6300561Z", "lastUpdateTime": - "2021-11-11T23:22:44.6300561Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '476' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23: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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_registry_artifacts_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_registry_artifacts_descending.yaml deleted file mode 100644 index b8e6b1c2eea4..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_registry_artifacts_descending.yaml +++ /dev/null @@ -1,512 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '218' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:05 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.65' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1157' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:05 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:a306c64b6a97a94ed0df1598c4f3a7ed6057393bc114b7e8eb0da67352879725", - "imageSize": 2486088, "createdTime": "2021-11-11T23:22:45.8580257Z", "lastUpdateTime": - "2021-11-11T23:22:45.8580257Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:52 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e7157b6d7ebbe2cce5eaa8cfe8aa4fa82d173999b9f90a9ec42e57323546c353", - "imageSize": 11149177, "createdTime": "2021-11-11T23:22:44.6300561Z", "lastUpdateTime": - "2021-11-11T23:22:44.6300561Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:54339d461e3be5eef03b0a444af67e595c7c9513b18bf6b8f343d52414ce8ec0", - "imageSize": 2008812, "createdTime": "2021-11-11T20:44:21.8064782Z", "lastUpdateTime": - "2021-11-11T20:44:21.8064782Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:d3e1e21da02b208de17464716e53a010422308e052bf6e6ee24ca04654e6762a", - "imageSize": 11149170, "createdTime": "2021-11-11T20:44:20.8953507Z", "lastUpdateTime": - "2021-11-11T20:44:20.8953507Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}, {"digest": "sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1", - "imageSize": 830502, "createdTime": "2021-11-11T20:44:17.9037762Z", "lastUpdateTime": - "2021-11-11T20:44:17.9037762Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:02eb46ac1dbd9302135da448098a66a33c10a677f5946487185aa29d2a7700ce", - "imageSize": 907271, "createdTime": "2021-11-11T20:44:17.5125876Z", "lastUpdateTime": - "2021-11-11T20:44:17.5125876Z", "architecture": "riscv64", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/12/2021 - 12:19:13 AM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9", - "imageSize": 962442, "createdTime": "2021-11-11T20:44:17.4498895Z", "lastUpdateTime": - "2021-11-11T20:44:17.4498895Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/12/2021 - 12:19:11 AM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:be0b3422c99de66c5bb4808cd74a30870e68252fdd361d84250f9691797a2665", - "imageSize": 738045, "createdTime": "2021-11-11T20:44:17.3648296Z", "lastUpdateTime": - "2021-11-11T20:44:17.3648296Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b70f0f45692830c2990b42f770aa29488c20ac41f1c3dcaa242920b73cb1399b", - "imageSize": 2486081, "createdTime": "2021-11-11T20:44:17.2561411Z", "lastUpdateTime": - "2021-11-11T20:44:17.2561411Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0", - "imageSize": 758161, "createdTime": "2021-11-11T20:44:16.8529497Z", "lastUpdateTime": - "2021-11-11T20:44:16.8529497Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42", - "imageSize": 954552, "createdTime": "2021-11-11T20:44:16.7666058Z", "lastUpdateTime": - "2021-11-11T20:44:16.7666058Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75", - "imageSize": 726234, "createdTime": "2021-11-11T20:44:16.6890885Z", "lastUpdateTime": - "2021-11-11T20:44:16.6890885Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:52 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:34efe68cca33507682b1673c851700ec66839ecf94d19b928176e20d20e02413", - "imageSize": 774775, "createdTime": "2021-11-11T20:44:16.5759047Z", "lastUpdateTime": - "2021-11-11T20:44:16.5759047Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:48 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:23:05 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '218' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:06 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Alibrary%2Fbusybox%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1157' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:06 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.6' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:a306c64b6a97a94ed0df1598c4f3a7ed6057393bc114b7e8eb0da67352879725", - "imageSize": 2486088, "createdTime": "2021-11-11T23:22:45.8580257Z", "lastUpdateTime": - "2021-11-11T23:22:45.8580257Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:52 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e7157b6d7ebbe2cce5eaa8cfe8aa4fa82d173999b9f90a9ec42e57323546c353", - "imageSize": 11149177, "createdTime": "2021-11-11T23:22:44.6300561Z", "lastUpdateTime": - "2021-11-11T23:22:44.6300561Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:54339d461e3be5eef03b0a444af67e595c7c9513b18bf6b8f343d52414ce8ec0", - "imageSize": 2008812, "createdTime": "2021-11-11T20:44:21.8064782Z", "lastUpdateTime": - "2021-11-11T20:44:21.8064782Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:d3e1e21da02b208de17464716e53a010422308e052bf6e6ee24ca04654e6762a", - "imageSize": 11149170, "createdTime": "2021-11-11T20:44:20.8953507Z", "lastUpdateTime": - "2021-11-11T20:44:20.8953507Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "changeableAttributes": {"deleteEnabled": true, "writeEnabled": true, "readEnabled": - true, "listEnabled": true}}, {"digest": "sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1", - "imageSize": 830502, "createdTime": "2021-11-11T20:44:17.9037762Z", "lastUpdateTime": - "2021-11-11T20:44:17.9037762Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:02eb46ac1dbd9302135da448098a66a33c10a677f5946487185aa29d2a7700ce", - "imageSize": 907271, "createdTime": "2021-11-11T20:44:17.5125876Z", "lastUpdateTime": - "2021-11-11T20:44:17.5125876Z", "architecture": "riscv64", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/12/2021 - 12:19:13 AM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9", - "imageSize": 962442, "createdTime": "2021-11-11T20:44:17.4498895Z", "lastUpdateTime": - "2021-11-11T20:44:17.4498895Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/12/2021 - 12:19:11 AM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:be0b3422c99de66c5bb4808cd74a30870e68252fdd361d84250f9691797a2665", - "imageSize": 738045, "createdTime": "2021-11-11T20:44:17.3648296Z", "lastUpdateTime": - "2021-11-11T20:44:17.3648296Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b70f0f45692830c2990b42f770aa29488c20ac41f1c3dcaa242920b73cb1399b", - "imageSize": 2486081, "createdTime": "2021-11-11T20:44:17.2561411Z", "lastUpdateTime": - "2021-11-11T20:44:17.2561411Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0", - "imageSize": 758161, "createdTime": "2021-11-11T20:44:16.8529497Z", "lastUpdateTime": - "2021-11-11T20:44:16.8529497Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42", - "imageSize": 954552, "createdTime": "2021-11-11T20:44:16.7666058Z", "lastUpdateTime": - "2021-11-11T20:44:16.7666058Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-09T21:17:50.9243280Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75", - "imageSize": 726234, "createdTime": "2021-11-11T20:44:16.6890885Z", "lastUpdateTime": - "2021-11-11T20:44:16.6890885Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:52 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:34efe68cca33507682b1673c851700ec66839ecf94d19b928176e20d20e02413", - "imageSize": 774775, "createdTime": "2021-11-11T20:44:16.5759047Z", "lastUpdateTime": - "2021-11-11T20:44:16.5759047Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/11/2021 - 11:22:48 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:23:06 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repository_names.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repository_names.yaml deleted file mode 100644 index 4af5f12e586b..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repository_names.yaml +++ /dev/null @@ -1,169 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:08 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.35' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1135' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:08 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.1' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo26ab150f", "repo27741d6f", "repo2b381dc2", "repo2bef19cb", "repo45431dd7", - "repo60eb1a9e", "repo63d41ad4", "repo6969166d", "repo80c61ece", "repo816516e9", - "repo93d41b55", "repoaf8317b0", "repoc1b812f4", "repodf771888", "repoec051cb9"]}' - headers: - 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: - - Fri, 12 Nov 2021 00:23: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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repository_names_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repository_names_by_page.yaml deleted file mode 100644 index d48065bf2016..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_repository_names_by_page.yaml +++ /dev/null @@ -1,1494 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:09 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.45' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1135' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:09 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.033333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 - response: - body: - string: '{"repositories": ["library/alpine", "library/busybox"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '54' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:09 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:09 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.016667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1135' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:09 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library%2Fbusybox&n=2&orderby= - response: - body: - string: '{"repositories": ["library/hello-world", "repo26ab150f"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '56' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:09 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo26ab150f&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:09 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.983333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1135' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:09 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.966667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo26ab150f&n=2&orderby= - response: - body: - string: '{"repositories": ["repo27741d6f", "repo2b381dc2"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '49' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:09 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2b381dc2&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:09 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.95' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1135' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:09 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.933333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2b381dc2&n=2&orderby= - response: - body: - string: '{"repositories": ["repo2bef19cb", "repo45431dd7"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '49' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:09 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo45431dd7&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:09 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.916667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1135' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:09 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.9' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo45431dd7&n=2&orderby= - response: - body: - string: '{"repositories": ["repo60eb1a9e", "repo63d41ad4"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '49' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:10 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo63d41ad4&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:10 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.883333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1135' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:10 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.866667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo63d41ad4&n=2&orderby= - response: - body: - string: '{"repositories": ["repo6969166d", "repo80c61ece"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '49' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:10 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo80c61ece&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:10 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.85' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1135' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:10 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.833333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo80c61ece&n=2&orderby= - response: - body: - string: '{"repositories": ["repo816516e9", "repo93d41b55"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '49' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:10 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo93d41b55&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:10 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.816667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1135' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:10 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.8' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo93d41b55&n=2&orderby= - response: - body: - string: '{"repositories": ["repoaf8317b0", "repoc1b812f4"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '49' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:10 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b812f4&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:23: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:10 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.783333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=registry%3Acatalog%3A%2A&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1135' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:10 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.766667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repoc1b812f4&n=2&orderby= - response: - body: - string: '{"repositories": ["repodf771888", "repoec051cb9"]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '49' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:11 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tag_properties.yaml deleted file mode 100644 index 6d101306aa9c..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tag_properties.yaml +++ /dev/null @@ -1,182 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo816516e9/_tags - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo816516e9", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:23: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:37 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo816516e9%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23:37 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.6' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo816516e9/_tags - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo816516e9", - "tags": [{"name": "tag816516e90", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:28:51.7572708Z", "lastUpdateTime": "2021-11-11T23:28:51.7572708Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag816516e91", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:28:53.0688659Z", "lastUpdateTime": "2021-11-11T23:28:53.0688659Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag816516e92", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:28:52.9137979Z", "lastUpdateTime": "2021-11-11T23:28:52.9137979Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag816516e93", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:28:53.8806831Z", "lastUpdateTime": "2021-11-11T23:28:53.8806831Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:23: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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tag_properties_order_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tag_properties_order_ascending.yaml deleted file mode 100644 index 9ac47a831774..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tag_properties_order_ascending.yaml +++ /dev/null @@ -1,362 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo27741d6f/_tags?orderby=timeasc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo27741d6f", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:24: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:04 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo27741d6f%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:04 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.3' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo27741d6f/_tags?orderby=timeasc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo27741d6f", - "tags": [{"name": "tag27741d6f2", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:22.3700594Z", "lastUpdateTime": "2021-11-11T23:29:22.3700594Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag27741d6f3", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:22.5284038Z", "lastUpdateTime": "2021-11-11T23:29:22.5284038Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag27741d6f1", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:23.5749367Z", "lastUpdateTime": "2021-11-11T23:29:23.5749367Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag27741d6f0", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:24.0477626Z", "lastUpdateTime": "2021-11-11T23:29:24.0477626Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo27741d6f/_tags?orderby=timeasc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo27741d6f", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:24: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:04 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.283333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo27741d6f%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:04 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo27741d6f/_tags?orderby=timeasc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo27741d6f", - "tags": [{"name": "tag27741d6f2", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:22.3700594Z", "lastUpdateTime": "2021-11-11T23:29:22.3700594Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag27741d6f3", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:22.5284038Z", "lastUpdateTime": "2021-11-11T23:29:22.5284038Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag27741d6f1", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:23.5749367Z", "lastUpdateTime": "2021-11-11T23:29:23.5749367Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag27741d6f0", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:24.0477626Z", "lastUpdateTime": "2021-11-11T23:29:24.0477626Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24: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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tag_properties_order_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tag_properties_order_descending.yaml deleted file mode 100644 index 54f46e1edd3e..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tag_properties_order_descending.yaml +++ /dev/null @@ -1,362 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo45431dd7/_tags?orderby=timedesc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo45431dd7", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:24:30 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:31 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.65' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo45431dd7%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:31 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo45431dd7/_tags?orderby=timedesc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo45431dd7", - "tags": [{"name": "tag45431dd72", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:54.3164513Z", "lastUpdateTime": "2021-11-11T23:29:54.3164513Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag45431dd70", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:54.0207945Z", "lastUpdateTime": "2021-11-11T23:29:54.0207945Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag45431dd71", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:53.5702601Z", "lastUpdateTime": "2021-11-11T23:29:53.5702601Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag45431dd73", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:53.1374446Z", "lastUpdateTime": "2021-11-11T23:29:53.1374446Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:31 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo45431dd7/_tags?orderby=timedesc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo45431dd7", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:24:31 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:31 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo45431dd7%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:31 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.6' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo45431dd7/_tags?orderby=timedesc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo45431dd7", - "tags": [{"name": "tag45431dd72", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:54.3164513Z", "lastUpdateTime": "2021-11-11T23:29:54.3164513Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag45431dd70", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:54.0207945Z", "lastUpdateTime": "2021-11-11T23:29:54.0207945Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag45431dd71", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:53.5702601Z", "lastUpdateTime": "2021-11-11T23:29:53.5702601Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag45431dd73", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:29:53.1374446Z", "lastUpdateTime": "2021-11-11T23:29:53.1374446Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1351' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:32 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tags.yaml deleted file mode 100644 index a4777b7a4f03..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tags.yaml +++ /dev/null @@ -1,182 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoaf8812b0/_tags - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoaf8812b0", "Action": "metadata_read"}]}]}' - headers: - 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: - - Wed, 19 May 2021 21:05: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1343' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05:05 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoaf8812b0%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1142' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05:05 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.5' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoaf8812b0/_tags - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoaf8812b0", "tags": - [{"name": "tagaf8812b00", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T18:33:28.5848285Z", "lastUpdateTime": "2021-05-19T18:33:28.5848285Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagaf8812b01", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T18:33:29.1894843Z", "lastUpdateTime": "2021-05-19T18:33:29.1894843Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagaf8812b02", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T18:33:30.0224963Z", "lastUpdateTime": "2021-05-19T18:33:30.0224963Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagaf8812b03", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T18:33:28.2588808Z", "lastUpdateTime": "2021-05-19T18:33:28.2588808Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1347' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05: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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tags_order_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tags_order_ascending.yaml deleted file mode 100644 index 46e85480ccdb..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tags_order_ascending.yaml +++ /dev/null @@ -1,324 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo12071936/_tags?orderby=timeasc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo12071936", "Action": "metadata_read"}]}]}' - headers: - 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: - - Wed, 26 May 2021 20:34:44 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1343' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 26 May 2021 20:34:46 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo12071936%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1142' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 26 May 2021 20:34:46 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.566667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo12071936/_tags?orderby=timeasc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo12071936", "tags": - [{"name": "tag120719360", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:11.7088512Z", "lastUpdateTime": "2021-05-26T20:31:11.7088512Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag120719362", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:12.5960744Z", "lastUpdateTime": "2021-05-26T20:31:12.5960744Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag120719363", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:12.7958608Z", "lastUpdateTime": "2021-05-26T20:31:12.7958608Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag120719361", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:17.9544007Z", "lastUpdateTime": "2021-05-26T20:31:17.9544007Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1347' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 26 May 2021 20:34:46 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo12071936/_tags?orderby=timeasc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo12071936", "Action": "metadata_read"}]}]}' - headers: - 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: - - Wed, 26 May 2021 20:34:46 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo12071936%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1142' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 26 May 2021 20:34:46 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.55' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo12071936/_tags?orderby=timeasc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo12071936", "tags": - [{"name": "tag120719360", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:11.7088512Z", "lastUpdateTime": "2021-05-26T20:31:11.7088512Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag120719362", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:12.5960744Z", "lastUpdateTime": "2021-05-26T20:31:12.5960744Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag120719363", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:12.7958608Z", "lastUpdateTime": "2021-05-26T20:31:12.7958608Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag120719361", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:17.9544007Z", "lastUpdateTime": "2021-05-26T20:31:17.9544007Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1347' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 26 May 2021 20:34:47 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tags_order_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tags_order_descending.yaml deleted file mode 100644 index 3cf737438937..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_list_tags_order_descending.yaml +++ /dev/null @@ -1,324 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2b9d199e/_tags?orderby=timedesc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2b9d199e", "Action": "metadata_read"}]}]}' - headers: - 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: - - Wed, 26 May 2021 20:35: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1343' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 26 May 2021 20:35:18 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo2b9d199e%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1142' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 26 May 2021 20:35:19 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.566667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2b9d199e/_tags?orderby=timedesc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2b9d199e", "tags": - [{"name": "tag2b9d199e3", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:45.3133441Z", "lastUpdateTime": "2021-05-26T20:31:45.3133441Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag2b9d199e2", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:45.1931939Z", "lastUpdateTime": "2021-05-26T20:31:45.1931939Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag2b9d199e1", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:44.9903201Z", "lastUpdateTime": "2021-05-26T20:31:44.9903201Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag2b9d199e0", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:43.9217056Z", "lastUpdateTime": "2021-05-26T20:31:43.9217056Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1347' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 26 May 2021 20:35: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2b9d199e/_tags?orderby=timedesc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2b9d199e", "Action": "metadata_read"}]}]}' - headers: - 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: - - Wed, 26 May 2021 20:35: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo2b9d199e%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1142' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 26 May 2021 20:35:19 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.55' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2b9d199e/_tags?orderby=timedesc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2b9d199e", "tags": - [{"name": "tag2b9d199e3", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:45.3133441Z", "lastUpdateTime": "2021-05-26T20:31:45.3133441Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag2b9d199e2", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:45.1931939Z", "lastUpdateTime": "2021-05-26T20:31:45.1931939Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag2b9d199e1", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:44.9903201Z", "lastUpdateTime": "2021-05-26T20:31:44.9903201Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag2b9d199e0", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:31:43.9217056Z", "lastUpdateTime": "2021-05-26T20:31:43.9217056Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1347' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 26 May 2021 20:35: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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_set_manifest_properties.yaml deleted file mode 100644 index 7fa6fe59b69e..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_set_manifest_properties.yaml +++ /dev/null @@ -1,873 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe08b1894/_tags/tage08b1894 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe08b1894", "Action": "metadata_read"}]}]}' - headers: - 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: - - Wed, 19 May 2021 21:05: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1343' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05:39 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoe08b1894%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1142' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05:39 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.45' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe08b1894/_tags/tage08b1894 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoe08b1894", "tag": - {"name": "tage08b1894", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T18:33:57.7947298Z", "lastUpdateTime": "2021-05-19T18:33:57.7947298Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe08b1894/_manifests/sha256%3A5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe08b1894", "Action": "metadata_read"}]}]}' - headers: - 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: - - Wed, 19 May 2021 21:05: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoe08b1894%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1142' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05:40 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.433333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe08b1894/_manifests/sha256%3A5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoe08b1894", "manifest": - {"digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "imageSize": 5325, "createdTime": "2021-05-19T18:33:57.4464508Z", "lastUpdateTime": - "2021-05-19T18:33:57.4464508Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tage08b1894"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}, "references": [{"digest": - "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "architecture": "amd64", "os": "linux"}, {"digest": "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "architecture": "arm64", "os": "linux"}, {"digest": "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "architecture": "386", "os": "linux"}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "architecture": "mips64le", "os": "linux"}, {"digest": "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "architecture": "ppc64le", "os": "linux"}, {"digest": "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "architecture": "s390x", "os": "linux"}, {"digest": "sha256:7fed95756fe4ebeb6eb1d82c2176e0800a02807cc66fe48beb179e57c54ddcf1", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1572' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe08b1894/_tags/tage08b1894 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe08b1894", "Action": "metadata_read"}]}]}' - headers: - 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: - - Wed, 19 May 2021 21:05: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoe08b1894%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1142' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05:41 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe08b1894/_tags/tage08b1894 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoe08b1894", "tag": - {"name": "tage08b1894", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T18:33:57.7947298Z", "lastUpdateTime": "2021-05-19T18:33:57.7947298Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05: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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe08b1894/_manifests/sha256%3A5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe08b1894", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoe08b1894%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1143' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05:42 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.4' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe08b1894/_manifests/sha256%3A5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoe08b1894", "manifest": - {"digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "imageSize": 5325, "createdTime": "2021-05-19T18:33:57.4464508Z", "lastUpdateTime": - "2021-05-19T18:33:57.4464508Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tage08b1894"], "changeableAttributes": {"deleteEnabled": false, - "writeEnabled": false, "readEnabled": false, "listEnabled": false}, "references": - [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "architecture": "amd64", "os": "linux"}, {"digest": "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "architecture": "arm64", "os": "linux"}, {"digest": "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "architecture": "386", "os": "linux"}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "architecture": "mips64le", "os": "linux"}, {"digest": "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "architecture": "ppc64le", "os": "linux"}, {"digest": "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "architecture": "s390x", "os": "linux"}, {"digest": "sha256:7fed95756fe4ebeb6eb1d82c2176e0800a02807cc66fe48beb179e57c54ddcf1", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1576' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe08b1894/_tags/tage08b1894 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe08b1894", "Action": "metadata_read"}]}]}' - headers: - 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: - - Wed, 19 May 2021 21:05: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoe08b1894%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1142' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05:42 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.383333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe08b1894/_tags/tage08b1894 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoe08b1894", "tag": - {"name": "tage08b1894", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T18:33:57.7947298Z", "lastUpdateTime": "2021-05-19T18:33:57.7947298Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05: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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe08b1894/_manifests/sha256%3A5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe08b1894", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoe08b1894%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1143' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05:43 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.366667' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe08b1894/_manifests/sha256%3A5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repoe08b1894", "manifest": - {"digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "imageSize": 5325, "createdTime": "2021-05-19T18:33:57.4464508Z", "lastUpdateTime": - "2021-05-19T18:33:57.4464508Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tage08b1894"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}, "references": [{"digest": - "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "architecture": "amd64", "os": "linux"}, {"digest": "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "architecture": "arm64", "os": "linux"}, {"digest": "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "architecture": "386", "os": "linux"}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "architecture": "mips64le", "os": "linux"}, {"digest": "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "architecture": "ppc64le", "os": "linux"}, {"digest": "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "architecture": "s390x", "os": "linux"}, {"digest": "sha256:7fed95756fe4ebeb6eb1d82c2176e0800a02807cc66fe48beb179e57c54ddcf1", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1572' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:05: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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_set_properties.yaml deleted file mode 100644 index edd4b2025c74..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_set_properties.yaml +++ /dev/null @@ -1,450 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo13cf14de - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo13cf14de", "Action": "metadata_read"}]}]}' - headers: - 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: - - Wed, 19 May 2021 21:06: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1343' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06:18 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.65' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo13cf14de%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1142' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06:18 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo13cf14de - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo13cf14de", "createdTime": - "2021-05-19T16:14:13.8053857Z", "lastUpdateTime": "2021-05-19T16:14:12.2534939Z", - "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": - false}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '315' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06: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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo13cf14de - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo13cf14de", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo13cf14de%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1143' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06:19 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo13cf14de - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo13cf14de", "createdTime": - "2021-05-19T16:14:13.8053857Z", "lastUpdateTime": "2021-05-19T16:14:12.2534939Z", - "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, - "teleportEnabled": false}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '319' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06: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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo13cf14de - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo13cf14de", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo13cf14de%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1143' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06:19 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.6' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo13cf14de - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo13cf14de", "createdTime": - "2021-05-19T16:14:13.8053857Z", "lastUpdateTime": "2021-05-19T16:14:12.2534939Z", - "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": - false}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '315' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06: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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_set_tag_properties.yaml deleted file mode 100644 index b4d86fe7841c..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_set_tag_properties.yaml +++ /dev/null @@ -1,450 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo6a411679/_tags/tag6a411679 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo6a411679", "Action": "metadata_read"}]}]}' - headers: - 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: - - Wed, 19 May 2021 21:06:52 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1343' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06:54 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo6a411679%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1142' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06:54 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.433333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo6a411679/_tags/tag6a411679 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo6a411679", "tag": - {"name": "tag6a411679", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T18:35:04.6216603Z", "lastUpdateTime": "2021-05-19T18:35:04.6216603Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06:54 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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo6a411679/_tags/tag6a411679 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo6a411679", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06:55 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo6a411679%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1143' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06:55 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo6a411679/_tags/tag6a411679 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo6a411679", "tag": - {"name": "tag6a411679", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T18:35:04.6216603Z", "lastUpdateTime": "2021-05-19T18:35:04.6216603Z", - "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": - false, "readEnabled": false, "listEnabled": false}}}' - headers: - 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: - - Wed, 19 May 2021 21:06:55 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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo6a411679/_tags/tag6a411679 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo6a411679", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06:55 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo6a411679%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1143' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06:55 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.4' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo6a411679/_tags/tag6a411679 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo6a411679", "tag": - {"name": "tag6a411679", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T18:35:04.6216603Z", "lastUpdateTime": "2021-05-19T18:35:04.6216603Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 19 May 2021 21:06:55 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_manifest_properties.yaml deleted file mode 100644 index 9718bcf6e3ad..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_manifest_properties.yaml +++ /dev/null @@ -1,1069 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2bef19cb/_tags/tag2bef19cb?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2bef19cb", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:24: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:59 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo2bef19cb%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:59 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.866667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2bef19cb/_tags/tag2bef19cb?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo2bef19cb", - "tag": {"name": "tag2bef19cb", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:30:19.3839192Z", "lastUpdateTime": "2021-11-11T23:30:19.3839192Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:24: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2bef19cb/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2bef19cb", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:24: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:59 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.85' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo2bef19cb%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:59 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.833333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2bef19cb/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo2bef19cb", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-11T23:30:19.0952727Z", "lastUpdateTime": - "2021-11-11T23:30:19.0952727Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tag2bef19cb"], "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1823' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2bef19cb/_tags/tag2bef19cb?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2bef19cb", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:24: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:59 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.816667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo2bef19cb%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:59 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.8' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2bef19cb/_tags/tag2bef19cb?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo2bef19cb", - "tag": {"name": "tag2bef19cb", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:30:19.3839192Z", "lastUpdateTime": "2021-11-11T23:30:19.3839192Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:24: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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2bef19cb/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2bef19cb", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:59 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.783333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo2bef19cb%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24:59 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.766667' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2bef19cb/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo2bef19cb", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-11T23:30:19.0952727Z", "lastUpdateTime": - "2021-11-11T23:30:19.0952727Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tag2bef19cb"], "changeableAttributes": {"deleteEnabled": false, - "writeEnabled": false, "readEnabled": false, "listEnabled": false}, "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1827' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:24: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2bef19cb/_tags/tag2bef19cb?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2bef19cb", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:24: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:00 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.75' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo2bef19cb%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:00 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.5' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2bef19cb/_tags/tag2bef19cb?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo2bef19cb", - "tag": {"name": "tag2bef19cb", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:30:19.3839192Z", "lastUpdateTime": "2021-11-11T23:30:19.3839192Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:25:00 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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2bef19cb/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2bef19cb", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:00 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo2bef19cb%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:00 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2bef19cb/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo2bef19cb", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-11T23:30:19.0952727Z", "lastUpdateTime": - "2021-11-11T23:30:19.0952727Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tag2bef19cb"], "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1823' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:00 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_manifest_properties_kwargs.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_manifest_properties_kwargs.yaml deleted file mode 100644 index 6df56082320c..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_manifest_properties_kwargs.yaml +++ /dev/null @@ -1,2138 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_tags/tagec051cb9?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoec051cb9", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:25: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:27 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoec051cb9%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:27 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.883333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_tags/tagec051cb9?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoec051cb9", - "tag": {"name": "tagec051cb9", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:30:47.8997005Z", "lastUpdateTime": "2021-11-11T23:30:47.8997005Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:25:28 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoec051cb9", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:25:28 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:28 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.866667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoec051cb9%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:28 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.85' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoec051cb9", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-11T23:30:47.9336451Z", "lastUpdateTime": - "2021-11-11T23:30:47.9336451Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tagec051cb9"], "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1823' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:28 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_tags/tagec051cb9?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoec051cb9", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:25:28 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:28 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.833333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoec051cb9%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:28 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.816667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_tags/tagec051cb9?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoec051cb9", - "tag": {"name": "tagec051cb9", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:30:47.8997005Z", "lastUpdateTime": "2021-11-11T23:30:47.8997005Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:25:28 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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoec051cb9", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:28 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:28 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.8' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoec051cb9%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:28 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.783333' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoec051cb9", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-11T23:30:47.9336451Z", "lastUpdateTime": - "2021-11-11T23:30:47.9336451Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tagec051cb9"], "changeableAttributes": {"deleteEnabled": false, - "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1824' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_tags/tagec051cb9?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoec051cb9", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:25: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:29 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.766667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoec051cb9%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:29 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.75' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_tags/tagec051cb9?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoec051cb9", - "tag": {"name": "tagec051cb9", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:30:47.8997005Z", "lastUpdateTime": "2021-11-11T23:30:47.8997005Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:25: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 - status: - code: 200 - message: OK -- request: - body: '{"readEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoec051cb9", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:29 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.733333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoec051cb9%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:29 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.716667' - status: - code: 200 - message: OK -- request: - body: '{"readEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoec051cb9", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-11T23:30:47.9336451Z", "lastUpdateTime": - "2021-11-11T23:30:47.9336451Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tagec051cb9"], "changeableAttributes": {"deleteEnabled": false, - "writeEnabled": true, "readEnabled": false, "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1825' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_tags/tagec051cb9?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoec051cb9", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:25: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:29 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.7' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoec051cb9%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:30 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.433333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_tags/tagec051cb9?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoec051cb9", - "tag": {"name": "tagec051cb9", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:30:47.8997005Z", "lastUpdateTime": "2021-11-11T23:30:47.8997005Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:25:30 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 - status: - code: 200 - message: OK -- request: - body: '{"writeEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '23' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoec051cb9", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:30 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:30 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.416667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoec051cb9%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:30 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.4' - status: - code: 200 - message: OK -- request: - body: '{"writeEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '23' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoec051cb9", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-11T23:30:47.9336451Z", "lastUpdateTime": - "2021-11-11T23:30:47.9336451Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tagec051cb9"], "changeableAttributes": {"deleteEnabled": false, - "writeEnabled": false, "readEnabled": false, "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1826' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:30 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_tags/tagec051cb9?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoec051cb9", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:25:30 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:30 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.383333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoec051cb9%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:30 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.366667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_tags/tagec051cb9?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoec051cb9", - "tag": {"name": "tagec051cb9", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:30:47.8997005Z", "lastUpdateTime": "2021-11-11T23:30:47.8997005Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:25:30 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 - status: - code: 200 - message: OK -- request: - body: '{"listEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoec051cb9", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:30 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:31 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.35' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoec051cb9%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:31 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.333333' - status: - code: 200 - message: OK -- request: - body: '{"listEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoec051cb9", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-11T23:30:47.9336451Z", "lastUpdateTime": - "2021-11-11T23:30:47.9336451Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tagec051cb9"], "changeableAttributes": {"deleteEnabled": false, - "writeEnabled": false, "readEnabled": false, "listEnabled": false}, "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1827' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:31 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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_tags/tagec051cb9?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoec051cb9", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:25:31 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:31 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.316667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoec051cb9%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:31 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.3' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_tags/tagec051cb9?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoec051cb9", - "tag": {"name": "tagec051cb9", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:30:47.8997005Z", "lastUpdateTime": "2021-11-11T23:30:47.8997005Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:25:31 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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoec051cb9", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:31 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:31 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.283333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoec051cb9%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:31 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.266667' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoec051cb9/_manifests/sha256%3Acc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoec051cb9", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-11T23:30:47.9336451Z", "lastUpdateTime": - "2021-11-11T23:30:47.9336451Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tagec051cb9"], "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '1823' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:25:31 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_repository_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_repository_properties.yaml deleted file mode 100644 index 2d2d8f6e1bec..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_repository_properties.yaml +++ /dev/null @@ -1,523 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo63d41ad4?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo63d41ad4", "Action": "metadata_read"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:40: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1360' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:04 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.55' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo63d41ad4%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:04 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.533333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo63d41ad4?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo63d41ad4", - "createdTime": "2021-11-17T23:39:42.8112168Z", "lastUpdateTime": "2021-11-17T23:39:40.6805301Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '295' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40: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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo63d41ad4?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo63d41ad4", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1360' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:04 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.516667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo63d41ad4%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:04 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.5' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo63d41ad4?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo63d41ad4", - "createdTime": "2021-11-17T23:39:42.8112168Z", "lastUpdateTime": "2021-11-17T23:39:40.6805301Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - false, "writeEnabled": false, "readEnabled": false, "listEnabled": false}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '299' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40: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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo63d41ad4?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo63d41ad4", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1360' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:05 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.483333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo63d41ad4%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:05 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.466667' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo63d41ad4?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo63d41ad4", - "createdTime": "2021-11-17T23:39:42.8112168Z", "lastUpdateTime": "2021-11-17T23:39:40.6805301Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '295' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40: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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_repository_properties_kwargs.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_repository_properties_kwargs.yaml deleted file mode 100644 index 3bce55c61c28..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_repository_properties_kwargs.yaml +++ /dev/null @@ -1,1223 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2b381dc2?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2b381dc2", "Action": "metadata_read"}]}]}' - headers: - 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: - - Wed, 17 Nov 2021 23:40: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1360' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:34 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.05' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo2b381dc2%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:34 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.033333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2b381dc2?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo2b381dc2", - "createdTime": "2021-11-17T21:46:07.6746415Z", "lastUpdateTime": "2021-11-17T21:46:05.715222Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '294' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:34 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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2b381dc2?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2b381dc2", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1360' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:35 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.016667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo2b381dc2%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:35 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2b381dc2?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo2b381dc2", - "createdTime": "2021-11-17T21:46:07.6746415Z", "lastUpdateTime": "2021-11-17T21:46:05.715222Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '294' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40: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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2b381dc2?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2b381dc2", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1360' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:35 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.983333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo2b381dc2%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:36 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.966667' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2b381dc2?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo2b381dc2", - "createdTime": "2021-11-17T21:46:07.6746415Z", "lastUpdateTime": "2021-11-17T21:46:05.715222Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - false, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '295' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:36 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 - status: - code: 200 - message: OK -- request: - body: '{"readEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2b381dc2?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2b381dc2", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1360' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:36 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.95' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo2b381dc2%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:36 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.933333' - status: - code: 200 - message: OK -- request: - body: '{"readEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2b381dc2?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo2b381dc2", - "createdTime": "2021-11-17T21:46:07.6746415Z", "lastUpdateTime": "2021-11-17T21:46:05.715222Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - false, "writeEnabled": true, "readEnabled": false, "listEnabled": true}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '296' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40: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 - status: - code: 200 - message: OK -- request: - body: '{"writeEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '23' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2b381dc2?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2b381dc2", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1360' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:37 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.916667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo2b381dc2%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:37 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.9' - status: - code: 200 - message: OK -- request: - body: '{"writeEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '23' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2b381dc2?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo2b381dc2", - "createdTime": "2021-11-17T21:46:07.6746415Z", "lastUpdateTime": "2021-11-17T21:46:05.715222Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - false, "writeEnabled": false, "readEnabled": false, "listEnabled": true}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '297' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40: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 - status: - code: 200 - message: OK -- request: - body: '{"listEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2b381dc2?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2b381dc2", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1360' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:37 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.883333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo2b381dc2%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:37 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.866667' - status: - code: 200 - message: OK -- request: - body: '{"listEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2b381dc2?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo2b381dc2", - "createdTime": "2021-11-17T21:46:07.6746415Z", "lastUpdateTime": "2021-11-17T21:46:05.715222Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - false, "writeEnabled": false, "readEnabled": false, "listEnabled": false}}' - headers: - 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: - - Wed, 17 Nov 2021 23:40: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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2b381dc2?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2b381dc2", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40: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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1360' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:38 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.85' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo2b381dc2%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40:38 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.833333' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo2b381dc2?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo2b381dc2", - "createdTime": "2021-11-17T21:46:07.6746415Z", "lastUpdateTime": "2021-11-17T21:46:05.715222Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '294' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 17 Nov 2021 23:40: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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_tag_properties.yaml deleted file mode 100644 index 96128cf618ea..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_tag_properties.yaml +++ /dev/null @@ -1,526 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoaf8317b0/_tags/tagaf8317b0?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoaf8317b0", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 00:26:52 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:26:53 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.65' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoaf8317b0%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:26:53 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.633333' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoaf8317b0/_tags/tagaf8317b0?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoaf8317b0", - "tag": {"name": "tagaf8317b0", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:32:12.355688Z", "lastUpdateTime": "2021-11-11T23:32:12.355688Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:26: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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoaf8317b0/_tags/tagaf8317b0?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoaf8317b0", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:26: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:26:53 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.616667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoaf8317b0%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:26:53 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.6' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoaf8317b0/_tags/tagaf8317b0?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoaf8317b0", - "tag": {"name": "tagaf8317b0", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:32:12.355688Z", "lastUpdateTime": "2021-11-11T23:32:12.355688Z", - "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": - false, "readEnabled": false, "listEnabled": false}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:26:54 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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoaf8317b0/_tags/tagaf8317b0?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoaf8317b0", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:26: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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:26:54 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.583333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepoaf8317b0%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:26:54 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '166.566667' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoaf8317b0/_tags/tagaf8317b0?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoaf8317b0", - "tag": {"name": "tagaf8317b0", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:32:12.355688Z", "lastUpdateTime": "2021-11-11T23:32:12.355688Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:26:54 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_tag_properties_kwargs.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_tag_properties_kwargs.yaml deleted file mode 100644 index e0db9dd9f51a..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client.test_update_tag_properties_kwargs.yaml +++ /dev/null @@ -1,1052 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo60eb1a9e/_tags/tag60eb1a9e?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo60eb1a9e", "Action": "metadata_read"}]}]}' - headers: - 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: - - Fri, 12 Nov 2021 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="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:21 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.983333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo60eb1a9e%3Ametadata_read&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1152' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:21 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.966667' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo60eb1a9e/_tags/tag60eb1a9e?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo60eb1a9e", - "tag": {"name": "tag60eb1a9e", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:32:41.1150846Z", "lastUpdateTime": "2021-11-11T23:32:41.1150846Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:27:21 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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo60eb1a9e/_tags/tag60eb1a9e?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo60eb1a9e", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:21 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:21 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.95' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo60eb1a9e%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:21 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.933333' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo60eb1a9e/_tags/tag60eb1a9e?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo60eb1a9e", - "tag": {"name": "tag60eb1a9e", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:32:41.1150846Z", "lastUpdateTime": "2021-11-11T23:32:41.1150846Z", - "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:27:21 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 - status: - code: 200 - message: OK -- request: - body: '{"readEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo60eb1a9e/_tags/tag60eb1a9e?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo60eb1a9e", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:21 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:22 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.916667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo60eb1a9e%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:22 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.9' - status: - code: 200 - message: OK -- request: - body: '{"readEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo60eb1a9e/_tags/tag60eb1a9e?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo60eb1a9e", - "tag": {"name": "tag60eb1a9e", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:32:41.1150846Z", "lastUpdateTime": "2021-11-11T23:32:41.1150846Z", - "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": - true, "readEnabled": false, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:27:22 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 - status: - code: 200 - message: OK -- request: - body: '{"writeEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '23' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo60eb1a9e/_tags/tag60eb1a9e?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo60eb1a9e", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:22 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:22 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.883333' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo60eb1a9e%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:22 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.866667' - status: - code: 200 - message: OK -- request: - body: '{"writeEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '23' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo60eb1a9e/_tags/tag60eb1a9e?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo60eb1a9e", - "tag": {"name": "tag60eb1a9e", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:32:41.1150846Z", "lastUpdateTime": "2021-11-11T23:32:41.1150846Z", - "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": - false, "readEnabled": false, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:27:22 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 - status: - code: 200 - message: OK -- request: - body: '{"listEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo60eb1a9e/_tags/tag60eb1a9e?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo60eb1a9e", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:22 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:22 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.85' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo60eb1a9e%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:22 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.833333' - status: - code: 200 - message: OK -- request: - body: '{"listEnabled": false}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo60eb1a9e/_tags/tag60eb1a9e?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo60eb1a9e", - "tag": {"name": "tag60eb1a9e", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:32:41.1150846Z", "lastUpdateTime": "2021-11-11T23:32:41.1150846Z", - "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": - false, "readEnabled": false, "listEnabled": false}}}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '394' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:22 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 - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo60eb1a9e/_tags/tag60eb1a9e?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo60eb1a9e", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: - - Docker-Content-Digest - - WWW-Authenticate - - Link - - X-Ms-Correlation-Request-Id - connection: - - keep-alive - content-length: - - '216' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:22 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://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: - - nosniff - status: - code: 401 - message: Unauthorized -- request: - body: grant_type=access_token&service=fake_url.azurecr.io&access_token=REDACTED - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1337' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:22 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.816667' - status: - code: 200 - message: OK -- request: - body: service=fake_url.azurecr.io&scope=repository%3Arepo60eb1a9e%3Ametadata_write&refresh_token=REDACTED&grant_type=refresh_token - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1153' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: - - keep-alive - content-type: - - application/json; charset=utf-8 - date: - - Fri, 12 Nov 2021 00:27:22 GMT - server: - - openresty - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - x-ms-ratelimit-remaining-calls-per-second: - - '165.8' - status: - code: 200 - message: OK -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo60eb1a9e/_tags/tag60eb1a9e?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo60eb1a9e", - "tag": {"name": "tag60eb1a9e", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-11T23:32:41.1150846Z", "lastUpdateTime": "2021-11-11T23:32:41.1150846Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - 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: - - Fri, 12 Nov 2021 00:27:23 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 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_construct_container_registry_client.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_construct_container_registry_client.json new file mode 100644 index 000000000000..6a12a903eef7 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_construct_container_registry_client.json @@ -0,0 +1,120 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:57: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/hello-world:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a5f0a362-1490-46a2-9b6e-b5c311bb8c75" + }, + "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://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "122", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmicrosoft.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:23 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAIysWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAA6axa2g4AAAA; expires=Sun, 07-Aug-2022 22:57:23 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 401, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Length": "78", + "Content-Type": "application/json", + "Date": "Fri, 08 Jul 2022 22:57:24 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Ms-Correlation-Request-Id": "13fb8b0d-92f8-45d7-95a4-1637757d4501", + "x-ms-ratelimit-remaining-calls-per-second": "165.9" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "retrieving permissions failed" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_manifest.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_manifest.json new file mode 100644 index 000000000000..ca8cea45d99b --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_manifest.json @@ -0,0 +1,460 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repodb213d60/_tags/tagdb213d60?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:56:48 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repodb213d60:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7e93316c-d8a8-4263-bae0-ed6beff914b1" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repodb213d60", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:48 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAIysWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:56:48 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:48 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "38896f46-b1c7-4e7e-93b2-5a7db66d1fcf", + "x-ms-ratelimit-remaining-calls-per-second": "165.983333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepodb213d60%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:48 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "63c460bf-3af7-41f2-8233-43d87de9eb01", + "x-ms-ratelimit-remaining-calls-per-second": "165.966667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repodb213d60/_tags/tagdb213d60?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:56:48 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": "9ed38825-3236-4fba-ab6d-98d65c10c6a8" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repodb213d60", + "tag": { + "name": "tagdb213d60", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:56:31.3074423Z", + "lastUpdateTime": "2022-07-08T22:56:31.3074423Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repodb213d60/manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "208", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:48 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repodb213d60:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b6b6dc46-2a33-4df2-b818-0fe5bc75527e" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repodb213d60", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:48 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b3bba150-4f11-4dc5-806a-cbb9bc48bf2a", + "x-ms-ratelimit-remaining-calls-per-second": "165.95" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "125", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepodb213d60%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:48 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "58f90f6e-c9cf-4e8b-86b3-3435365b1abd", + "x-ms-ratelimit-remaining-calls-per-second": "165.933333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repodb213d60/manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:56:49 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": "b9644b0d-56df-456b-aec1-da717f804b77", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repodb213d60/_tags/tagdb213d60?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:56: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repodb213d60:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "76dbfb0f-598b-4f0b-9dfd-b80aa50a194c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repodb213d60", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d31b0880-17dc-4f6d-ab56-6c39fc6cb88b", + "x-ms-ratelimit-remaining-calls-per-second": "165.916667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepodb213d60%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:59 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c25a9839-f436-4953-ab83-f95f4619918b", + "x-ms-ratelimit-remaining-calls-per-second": "165.9" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repodb213d60/_tags/tagdb213d60?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:56: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": "e8fdaf77-c268-4a66-81dd-0a7e3beb28f3" + }, + "ResponseBody": { + "errors": [ + { + "code": "TAG_UNKNOWN", + "message": "the specified tag does not exist" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_manifest_does_not_exist.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_manifest_does_not_exist.json new file mode 100644 index 000000000000..fd495c25ca57 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_manifest_does_not_exist.json @@ -0,0 +1,538 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repob25d43a6/_tags/tagb25d43a6?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:57:22 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repob25d43a6:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7a2df8d7-d706-4874-9554-d2a983801425" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repob25d43a6", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-NT8OpvO0bcA4MZRw3mPZBw\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:21 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAIysWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:57:22 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:22 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e77e7b1d-137d-400f-a12a-8f8a37878bf8", + "x-ms-ratelimit-remaining-calls-per-second": "166.516667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepob25d43a6%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:22 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7c3b5d58-287f-406b-924d-c35b328aa8e0", + "x-ms-ratelimit-remaining-calls-per-second": "166.4" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repob25d43a6/_tags/tagb25d43a6?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:57:22 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": "78f32bca-949a-40ea-92ce-dc8933510e56" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repob25d43a6", + "tag": { + "name": "tagb25d43a6", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:09:55.9089949Z", + "lastUpdateTime": "2022-07-08T22:09:55.9089949Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repob25d43a6/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:57:22 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repob25d43a6:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "efc2a908-0d7d-46dd-8f11-2f50592a62ef" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repob25d43a6", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:22 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "28a6880d-ccd6-4c3d-8efa-008403393451", + "x-ms-ratelimit-remaining-calls-per-second": "166.383333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepob25d43a6%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:22 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "703345e6-59d4-4229-9995-d4e43a941389", + "x-ms-ratelimit-remaining-calls-per-second": "166.366667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repob25d43a6/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1823", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:22 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": "f441be91-0817-4f49-942a-12b247ed8ace" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repob25d43a6", + "manifest": { + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "imageSize": 61676, + "createdTime": "2022-07-08T22:09:55.9669272Z", + "lastUpdateTime": "2022-07-08T22:09:55.9669272Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tagb25d43a6" + ], + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:9ec668ee97c20731eb4f4f55f6248ac6b83a0d2e1add2110e6b5d62191f66dd7", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:fa36b268301e951714b69bb6db7680639cdc1b7381cfaac12e98e09f94fdc0d6", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repob25d43a6/manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0aaaaaaaaaa", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "208", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:22 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repob25d43a6:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8c5f59a3-7d23-4a54-b85f-98635603c21d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repob25d43a6", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:22 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8d6b5342-ed3d-4c62-b5f0-732345a05a32", + "x-ms-ratelimit-remaining-calls-per-second": "166.35" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "125", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepob25d43a6%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:22 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "86c716f7-76b1-4744-82f3-da1848c09c05", + "x-ms-ratelimit-remaining-calls-per-second": "166.333333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/v2/repob25d43a6/manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0aaaaaaaaaa", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "147", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:22 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": "c19a6ad3-7c42-48e9-b42d-4ef486620d7a", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": { + "errors": [ + { + "code": "MANIFEST_UNKNOWN", + "message": "manifest sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0aaaaaaaaaa is not found" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_repository.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_repository.json new file mode 100644 index 000000000000..060bcc32d4c9 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_repository.json @@ -0,0 +1,361 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/to_be_deleted?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "209", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:to_be_deleted:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "169b5cfb-cf77-4892-bb3d-098da5b9c700" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "to_be_deleted", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-eGVtYO_gCRn8DgP_7q9aLQ\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:34 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:51:35 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:35 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "459b0df7-86b8-4ee3-a662-bebb2e756c27", + "x-ms-ratelimit-remaining-calls-per-second": "166.516667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "126", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Ato_be_deleted%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:35 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "fdc4b811-1b33-4f10-ac14-198db854e929", + "x-ms-ratelimit-remaining-calls-per-second": "166.466667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/to_be_deleted?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "936", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:36 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": "68780e58-8ff6-4e36-92f3-1df1c25942fb", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": { + "manifestsDeleted": [ + "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "sha256:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c", + "sha256:98c9722322be649df94780d3fbe594fce7996234b259f27eac9428b84050c849", + "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "sha256:9ec668ee97c20731eb4f4f55f6248ac6b83a0d2e1add2110e6b5d62191f66dd7", + "sha256:b836bb24a270b9cc935962d8228517fde0f16990e88893d935efcb1b14c0017a", + "sha256:c7b6944911848ce39b44ed660d95fb54d69bbd531de724c7ce6fc9f743c0b861", + "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c", + "sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4", + "sha256:fa36b268301e951714b69bb6db7680639cdc1b7381cfaac12e98e09f94fdc0d6" + ], + "tagsDeleted": [ + "latest" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "3ae00d14-7eaf-47a4-98aa-2565fcecc413" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:36 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "36ac6c8d-316e-4e1f-8d44-1279fc1bf224", + "x-ms-ratelimit-remaining-calls-per-second": "166.45" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:36 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ebddf54d-15e8-4ea9-868a-3f04fc74363d", + "x-ms-ratelimit-remaining-calls-per-second": "166.433333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "511", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51: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": "dfce3848-b89c-4d45-9497-9fac8daf88ce" + }, + "ResponseBody": { + "repositories": [ + "library/alpine", + "library/busybox", + "library/hello-world", + "repo141645c0", + "repo1a1f4613", + "repo1ded4145", + "repo1e243c5e", + "repo220636ca", + "repo23f64198", + "repo2d863abf", + "repo2deb42ef", + "repo3ea338e5", + "repo571f3e74", + "repo5b014628", + "repo5b823eaa", + "repo5c164001", + "repo5c6c3e66", + "repo605d41ad", + "repo8725450a", + "repo99f2408f", + "repo9a4c3ebe", + "repoa4a73b86", + "repoa693421c", + "repoa81d3b45", + "repob25d43a6", + "repod29b3f2b", + "repod8bd3da1", + "repodb213d60", + "repodbf03f3a", + "repode7a40d9", + "repoe63342a4", + "repof04e3a43" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_repository_does_not_exist.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_repository_does_not_exist.json new file mode 100644 index 000000000000..b2d04b4f9e49 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_repository_does_not_exist.json @@ -0,0 +1,186 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/not_real_repo?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "209", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:not_real_repo:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "168c660b-960f-435e-a880-a343e605e692" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "not_real_repo", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:36 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:51:37 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:37 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "76ce0b3b-8026-4119-b016-e248518c6006", + "x-ms-ratelimit-remaining-calls-per-second": "166.416667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "126", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Anot_real_repo%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:37 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "39db487e-22be-4a76-a8a9-85875b1719cb", + "x-ms-ratelimit-remaining-calls-per-second": "166.4" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/not_real_repo?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "121", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51: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": "27d80d39-97f7-41ba-85a8-eb074391db22", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": { + "errors": [ + { + "code": "NAME_UNKNOWN", + "message": "repository name not known to registry", + "detail": { + "name": "not_real_repo" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_tag.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_tag.json new file mode 100644 index 000000000000..00f6adc6e2c5 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_tag.json @@ -0,0 +1,351 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa81d3b45/_tags/taga81d3b450?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "208", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:24 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repoa81d3b45:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "26c249ea-9662-4373-8466-ae18e56f50fb" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repoa81d3b45", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:24 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAIysWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:56:24 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:24 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "00d0b342-4bad-4d68-8758-b7eb01e428dd", + "x-ms-ratelimit-remaining-calls-per-second": "166.316667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "125", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepoa81d3b45%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:24 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d6f2b16d-20bc-41a3-ba08-14450689d212", + "x-ms-ratelimit-remaining-calls-per-second": "166.3" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa81d3b45/_tags/taga81d3b450?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:56:25 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": "84973748-43ce-45eb-a8b1-1e2e49aca623", + "X-Ms-Int-Docker-Content-Digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "8.000000" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa81d3b45/_tags", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:56:25 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repoa81d3b45:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "30074667-90ba-4e37-924b-6219b7fa3063" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repoa81d3b45", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:25 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0cafac57-4cf8-4a79-a4eb-5a5de24c565e", + "x-ms-ratelimit-remaining-calls-per-second": "166.283333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepoa81d3b45%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:25 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "98bd1775-989c-46a3-b408-6c5c520bfc90", + "x-ms-ratelimit-remaining-calls-per-second": "166.266667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa81d3b45/_tags", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1032", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:25 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": "ab4369fc-0998-4665-80da-552736738380" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repoa81d3b45", + "tags": [ + { + "name": "taga81d3b451", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:09:01.0214929Z", + "lastUpdateTime": "2022-07-08T22:09:01.0214929Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "taga81d3b452", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:09:01.5576157Z", + "lastUpdateTime": "2022-07-08T22:09:01.5576157Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "taga81d3b453", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:09:01.1774893Z", + "lastUpdateTime": "2022-07-08T22:09:01.1774893Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_tag_does_not_exist.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_tag_does_not_exist.json new file mode 100644 index 000000000000..bec5611f267e --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_delete_tag_does_not_exist.json @@ -0,0 +1,183 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/does_not_exist/_tags/does_not_exist?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "210", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:25 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:does_not_exist:delete\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "1e5ebc86-c058-4eff-a5ce-615b0909453c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "does_not_exist", + "Action": "delete" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:24 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAIysWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:56:25 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:25 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e8f3df7c-93e2-401a-99db-8653074067f7", + "x-ms-ratelimit-remaining-calls-per-second": "166.25" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "127", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Adoes_not_exist%3Adelete\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:25 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b8a389f5-b54d-48dd-bedb-6ba9d9fa89e8", + "x-ms-ratelimit-remaining-calls-per-second": "166.233333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/does_not_exist/_tags/does_not_exist?api-version=2021-07-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:56:25 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": "6ba562ce-442b-486d-954f-e48324879f01", + "X-Ms-Ratelimit-Remaining-Calls-Per-Second": "7.000000" + }, + "ResponseBody": { + "errors": [ + { + "code": "TAG_UNKNOWN", + "message": "the specified tag does not exist" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_expiration_time_parsing.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_expiration_time_parsing.json new file mode 100644 index 000000000000..1ee827038390 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_expiration_time_parsing.json @@ -0,0 +1,348 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:57: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "31e0fb1f-993f-4125-b427-b9fdbf0304a7" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:22 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAIysWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:57:23 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:23 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "18988632-c9a0-40be-a3d2-018678d3ba3e", + "x-ms-ratelimit-remaining-calls-per-second": "166.316667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:23 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "faad3399-013d-4c8e-a57f-2a9c3d9972cf", + "x-ms-ratelimit-remaining-calls-per-second": "166.3" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "511", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:23 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": "09bc696a-7655-478c-bff7-2cb669aa3d24" + }, + "ResponseBody": { + "repositories": [ + "library/alpine", + "library/busybox", + "library/hello-world", + "repo141645c0", + "repo1a1f4613", + "repo1ded4145", + "repo1e243c5e", + "repo220636ca", + "repo23f64198", + "repo2d863abf", + "repo2deb42ef", + "repo3ea338e5", + "repo571f3e74", + "repo5b014628", + "repo5b823eaa", + "repo5c164001", + "repo5c6c3e66", + "repo605d41ad", + "repo8725450a", + "repo99f2408f", + "repo9a4c3ebe", + "repoa4a73b86", + "repoa693421c", + "repoa81d3b45", + "repob25d43a6", + "repod29b3f2b", + "repod8bd3da1", + "repodb213d60", + "repodbf03f3a", + "repode7a40d9", + "repoe63342a4", + "repof04e3a43" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:57: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ef7c0244-23df-4b04-83f9-e22b85ec2da4" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:23 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a4761bcd-2d8d-4b26-bcc4-b33db3910495", + "x-ms-ratelimit-remaining-calls-per-second": "165.916667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "511", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:23 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": "010cfe5a-0c8a-4763-b5b8-4c2c449b7065" + }, + "ResponseBody": { + "repositories": [ + "library/alpine", + "library/busybox", + "library/hello-world", + "repo141645c0", + "repo1a1f4613", + "repo1ded4145", + "repo1e243c5e", + "repo220636ca", + "repo23f64198", + "repo2d863abf", + "repo2deb42ef", + "repo3ea338e5", + "repo571f3e74", + "repo5b014628", + "repo5b823eaa", + "repo5c164001", + "repo5c6c3e66", + "repo605d41ad", + "repo8725450a", + "repo99f2408f", + "repo9a4c3ebe", + "repoa4a73b86", + "repoa693421c", + "repoa81d3b45", + "repob25d43a6", + "repod29b3f2b", + "repod8bd3da1", + "repodb213d60", + "repodbf03f3a", + "repode7a40d9", + "repoe63342a4", + "repof04e3a43" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_manifest_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_manifest_properties.json new file mode 100644 index 000000000000..7dcfb47ed2aa --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_manifest_properties.json @@ -0,0 +1,396 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repode7a40d9/_tags/tagde7a40d9?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:52:55 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repode7a40d9:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "4ad89ceb-5cf8-4fbd-82f8-d1a76fb88fcc" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repode7a40d9", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:55 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:52:55 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8c27f673-b313-4297-ac1c-6f5d543a5bfb", + "x-ms-ratelimit-remaining-calls-per-second": "166.283333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepode7a40d9%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "932b2699-e41c-4f8e-a99a-34042a7717fe", + "x-ms-ratelimit-remaining-calls-per-second": "166.233333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repode7a40d9/_tags/tagde7a40d9?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:52:55 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": "15a600ee-4e83-4fa1-9b2b-2eaecdb1bac8" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repode7a40d9", + "tag": { + "name": "tagde7a40d9", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:05:30.5524909Z", + "lastUpdateTime": "2022-07-08T22:05:30.5524909Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repode7a40d9/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:52:55 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repode7a40d9:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "3f450c04-47e3-4a16-b945-0503cf5dd805" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repode7a40d9", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "9daff8fb-ba60-46cb-aa84-3956d31f88eb", + "x-ms-ratelimit-remaining-calls-per-second": "166.216667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepode7a40d9%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:55 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0f342940-5ea9-4b04-b300-c6d470bb0c66", + "x-ms-ratelimit-remaining-calls-per-second": "166.2" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repode7a40d9/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1823", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:55 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": "d8e04bea-8af2-4a26-a188-617b8496a277" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repode7a40d9", + "manifest": { + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "imageSize": 61676, + "createdTime": "2022-07-08T22:05:30.5982148Z", + "lastUpdateTime": "2022-07-08T22:05:30.5982148Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tagde7a40d9" + ], + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:9ec668ee97c20731eb4f4f55f6248ac6b83a0d2e1add2110e6b5d62191f66dd7", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:fa36b268301e951714b69bb6db7680639cdc1b7381cfaac12e98e09f94fdc0d6", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_manifest_properties_does_not_exist.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_manifest_properties_does_not_exist.json new file mode 100644 index 000000000000..9c29cdf28dcb --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_manifest_properties_does_not_exist.json @@ -0,0 +1,33 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/DOESNOTEXIST/_tags/DOESNOTEXIST?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Length": "19", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:56 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": "bd7497d5-8e2b-44ed-9af4-4a5efe524511" + }, + "ResponseBody": [ + "404 page not found\n" + ] + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_misspell_property.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_misspell_property.json new file mode 100644 index 000000000000..e505500d8174 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_misspell_property.json @@ -0,0 +1,186 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:24 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/alpine:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "75ac8326-25c9-4da9-82ac-363fcf6b2558" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/alpine", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:23 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAIysWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAA6axa2g4AAAA; expires=Sun, 07-Aug-2022 22:57:24 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:24 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3472ddb4-971e-4d98-a7a5-528f7fb04cc7", + "x-ms-ratelimit-remaining-calls-per-second": "165.883333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "136", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Falpine%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:24 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "608f4f59-bb79-4855-a7f5-f5c00a964cdd", + "x-ms-ratelimit-remaining-calls-per-second": "165.866667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "296", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:57:24 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": "e70122fc-483f-4c92-820b-c75c0801a75e" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/alpine", + "createdTime": "2022-07-08T21:52:42.4733653Z", + "lastUpdateTime": "2022-07-08T21:52:40.7511312Z", + "manifestCount": 8, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_repository_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_repository_properties.json new file mode 100644 index 000000000000..0e012c73689f --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_repository_properties.json @@ -0,0 +1,187 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/alpine:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7909065f-29b8-4259-a49a-d9145de7c913" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/alpine", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-IX5s0S65RgkYOvLaHryRqw\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:37 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:51:37 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:38 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "eb887f69-7940-4a04-b87e-5c64ed7f34a5", + "x-ms-ratelimit-remaining-calls-per-second": "166.383333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "136", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Falpine%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:38 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a9943144-3366-4012-a8d6-3a101b534003", + "x-ms-ratelimit-remaining-calls-per-second": "166.366667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "296", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51: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": "fc1cebf3-8a57-4044-877d-cc27ba61195e" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/alpine", + "createdTime": "2022-07-08T21:52:42.4733653Z", + "lastUpdateTime": "2022-07-08T21:52:40.7511312Z", + "manifestCount": 8, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_tag_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_tag_properties.json new file mode 100644 index 000000000000..ef5c2b0bee94 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_tag_properties.json @@ -0,0 +1,189 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo9a4c3ebe/_tags/tag9a4c3ebe?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:54: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo9a4c3ebe:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "02f2eb65-dba5-4d65-8d54-49dfad8b0fc1" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo9a4c3ebe", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:06 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEAAAAIysWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:54:07 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "close", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "86f7cd85-0105-490e-9de2-d19cf36d6785", + "x-ms-ratelimit-remaining-calls-per-second": "165.883333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo9a4c3ebe%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:07 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ca36a1c7-8436-43fa-a38e-710f42536e9b", + "x-ms-ratelimit-remaining-calls-per-second": "166.183333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo9a4c3ebe/_tags/tag9a4c3ebe?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:54: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": "02b49f19-ceaa-496e-8adf-29b75cc62738" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo9a4c3ebe", + "tag": { + "name": "tag9a4c3ebe", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:06:42.4820672Z", + "lastUpdateTime": "2022-07-08T22:06:42.4820672Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_tag_properties_does_not_exist.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_tag_properties_does_not_exist.json new file mode 100644 index 000000000000..09988c1809ca --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_get_tag_properties_does_not_exist.json @@ -0,0 +1,33 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/Nonexistent/_tags/Nonexistent?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Length": "19", + "Content-Type": "text/plain; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54: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": "857d26a1-e91b-4dbe-96be-eaef3dcdd846" + }, + "ResponseBody": [ + "404 page not found\n" + ] + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_registry_artifacts.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_registry_artifacts.json new file mode 100644 index 000000000000..23cbba0893f0 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_registry_artifacts.json @@ -0,0 +1,364 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8edd1e0a-2e07-445b-98af-0e4bb022f235" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:26 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:52:27 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:27 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "46ae4a9f-2de2-49c3-8379-6aef5cd9a22e", + "x-ms-ratelimit-remaining-calls-per-second": "165.966667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:27 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b11f51e7-3086-4e7b-ae73-a8734168cfca", + "x-ms-ratelimit-remaining-calls-per-second": "165.95" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:52:28 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": "a16b41a4-91d8-41a9-a0ff-296da4f45dce" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:0d4b25aec0a40382a3eaea29e3af360f2c5908c91b3b12ded5492fdc5e74050c", + "imageSize": 2486114, + "createdTime": "2022-07-08T21:53:06.3308049Z", + "lastUpdateTime": "2022-07-08T21:53:06.3308049Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933", + "imageSize": 738673, + "createdTime": "2022-07-08T21:53:05.6499271Z", + "lastUpdateTime": "2022-07-08T21:53:05.6499271Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:2c5e2045f35086c019e80c86880fd5b7c7a619878b59e3b7592711e1781df51a", + "imageSize": 830677, + "createdTime": "2022-07-08T21:53:05.8122977Z", + "lastUpdateTime": "2022-07-08T21:53:05.8122977Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83", + "imageSize": 11153203, + "createdTime": "2022-07-08T21:53:04.5650787Z", + "lastUpdateTime": "2022-07-08T21:53:04.5650787Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132", + "imageSize": 907419, + "createdTime": "2022-07-08T21:53:06.8092888Z", + "lastUpdateTime": "2022-07-08T21:53:06.8092888Z", + "architecture": "riscv64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d", + "imageSize": 758548, + "createdTime": "2022-07-08T21:53:05.3273324Z", + "lastUpdateTime": "2022-07-08T21:53:05.3273324Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:ac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc", + "imageSize": 2008986, + "createdTime": "2022-07-08T21:53:05.8878865Z", + "lastUpdateTime": "2022-07-08T21:53:05.8878865Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc", + "imageSize": 726504, + "createdTime": "2022-07-08T21:53:05.4032016Z", + "lastUpdateTime": "2022-07-08T21:53:05.4032016Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:d339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea", + "imageSize": 963052, + "createdTime": "2022-07-08T21:53:06.0420451Z", + "lastUpdateTime": "2022-07-08T21:53:06.0420451Z", + "architecture": "mips64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan InProgress\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992", + "imageSize": 955694, + "createdTime": "2022-07-08T21:53:05.5846508Z", + "lastUpdateTime": "2022-07-08T21:53:05.5846508Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52", + "imageSize": 775241, + "createdTime": "2022-07-08T21:53:05.2285625Z", + "lastUpdateTime": "2022-07-08T21:53:05.2285625Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_registry_artifacts_ascending.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_registry_artifacts_ascending.json new file mode 100644 index 000000000000..f748e96f7c11 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_registry_artifacts_ascending.json @@ -0,0 +1,687 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:31 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7b4f61f1-6d44-471d-85d3-722bf3a0a9d3" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-B9JpQ9lxgkK6oSRvg9JlKA\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:30 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:52:31 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:31 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "afaedfdd-5ee3-4a4b-a9e8-538a4c3e726f", + "x-ms-ratelimit-remaining-calls-per-second": "166.4" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:31 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7f8228c2-98e7-4d1f-984c-8c22dcf6b6fb", + "x-ms-ratelimit-remaining-calls-per-second": "166.383333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:52:32 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": "86ef402d-8e43-4dde-8086-be3254bef24e" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83", + "imageSize": 11153203, + "createdTime": "2022-07-08T21:53:04.5650787Z", + "lastUpdateTime": "2022-07-08T21:53:04.5650787Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52", + "imageSize": 775241, + "createdTime": "2022-07-08T21:53:05.2285625Z", + "lastUpdateTime": "2022-07-08T21:53:05.2285625Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d", + "imageSize": 758548, + "createdTime": "2022-07-08T21:53:05.3273324Z", + "lastUpdateTime": "2022-07-08T21:53:05.3273324Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc", + "imageSize": 726504, + "createdTime": "2022-07-08T21:53:05.4032016Z", + "lastUpdateTime": "2022-07-08T21:53:05.4032016Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992", + "imageSize": 955694, + "createdTime": "2022-07-08T21:53:05.5846508Z", + "lastUpdateTime": "2022-07-08T21:53:05.5846508Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933", + "imageSize": 738673, + "createdTime": "2022-07-08T21:53:05.6499271Z", + "lastUpdateTime": "2022-07-08T21:53:05.6499271Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:2c5e2045f35086c019e80c86880fd5b7c7a619878b59e3b7592711e1781df51a", + "imageSize": 830677, + "createdTime": "2022-07-08T21:53:05.8122977Z", + "lastUpdateTime": "2022-07-08T21:53:05.8122977Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:ac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc", + "imageSize": 2008986, + "createdTime": "2022-07-08T21:53:05.8878865Z", + "lastUpdateTime": "2022-07-08T21:53:05.8878865Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:d339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea", + "imageSize": 963052, + "createdTime": "2022-07-08T21:53:06.0420451Z", + "lastUpdateTime": "2022-07-08T21:53:06.0420451Z", + "architecture": "mips64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan InProgress\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0d4b25aec0a40382a3eaea29e3af360f2c5908c91b3b12ded5492fdc5e74050c", + "imageSize": 2486114, + "createdTime": "2022-07-08T21:53:06.3308049Z", + "lastUpdateTime": "2022-07-08T21:53:06.3308049Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132", + "imageSize": 907419, + "createdTime": "2022-07-08T21:53:06.8092888Z", + "lastUpdateTime": "2022-07-08T21:53:06.8092888Z", + "architecture": "riscv64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:32 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "1cf4417a-bf59-495f-b01b-8bdd85337a21" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:32 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "71d9b46e-729e-4d64-9407-1fcd33d920a8", + "x-ms-ratelimit-remaining-calls-per-second": "166.366667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:32 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c32f577e-df0a-4bc7-aff3-3b383494225f", + "x-ms-ratelimit-remaining-calls-per-second": "166.35" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:52:32 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": "12cc8fc9-3ad6-4d0d-ada7-e08c51dd83e4" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83", + "imageSize": 11153203, + "createdTime": "2022-07-08T21:53:04.5650787Z", + "lastUpdateTime": "2022-07-08T21:53:04.5650787Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "digest": "sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52", + "imageSize": 775241, + "createdTime": "2022-07-08T21:53:05.2285625Z", + "lastUpdateTime": "2022-07-08T21:53:05.2285625Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d", + "imageSize": 758548, + "createdTime": "2022-07-08T21:53:05.3273324Z", + "lastUpdateTime": "2022-07-08T21:53:05.3273324Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc", + "imageSize": 726504, + "createdTime": "2022-07-08T21:53:05.4032016Z", + "lastUpdateTime": "2022-07-08T21:53:05.4032016Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992", + "imageSize": 955694, + "createdTime": "2022-07-08T21:53:05.5846508Z", + "lastUpdateTime": "2022-07-08T21:53:05.5846508Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933", + "imageSize": 738673, + "createdTime": "2022-07-08T21:53:05.6499271Z", + "lastUpdateTime": "2022-07-08T21:53:05.6499271Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:2c5e2045f35086c019e80c86880fd5b7c7a619878b59e3b7592711e1781df51a", + "imageSize": 830677, + "createdTime": "2022-07-08T21:53:05.8122977Z", + "lastUpdateTime": "2022-07-08T21:53:05.8122977Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:ac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc", + "imageSize": 2008986, + "createdTime": "2022-07-08T21:53:05.8878865Z", + "lastUpdateTime": "2022-07-08T21:53:05.8878865Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:d339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea", + "imageSize": 963052, + "createdTime": "2022-07-08T21:53:06.0420451Z", + "lastUpdateTime": "2022-07-08T21:53:06.0420451Z", + "architecture": "mips64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan InProgress\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0d4b25aec0a40382a3eaea29e3af360f2c5908c91b3b12ded5492fdc5e74050c", + "imageSize": 2486114, + "createdTime": "2022-07-08T21:53:06.3308049Z", + "lastUpdateTime": "2022-07-08T21:53:06.3308049Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132", + "imageSize": 907419, + "createdTime": "2022-07-08T21:53:06.8092888Z", + "lastUpdateTime": "2022-07-08T21:53:06.8092888Z", + "architecture": "riscv64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_registry_artifacts_by_page.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_registry_artifacts_by_page.json new file mode 100644 index 000000000000..50a819efb099 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_registry_artifacts_by_page.json @@ -0,0 +1,1050 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:28 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "4f173656-8d25-431a-9b54-4920c55937f5" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-nUVI_eww1fPTnEOkEWyw_A\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:27 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:52:28 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:28 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e55bf47a-fa30-439b-ac49-0cbd4a441075", + "x-ms-ratelimit-remaining-calls-per-second": "165.933333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:28 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "54a752f8-f9bb-4925-9a7b-652c85091745", + "x-ms-ratelimit-remaining-calls-per-second": "165.916667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1588", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:28 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933\u0026n=2\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": "fd824f89-d146-4760-9697-c60064f58232" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:0d4b25aec0a40382a3eaea29e3af360f2c5908c91b3b12ded5492fdc5e74050c", + "imageSize": 2486114, + "createdTime": "2022-07-08T21:53:06.3308049Z", + "lastUpdateTime": "2022-07-08T21:53:06.3308049Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933", + "imageSize": 738673, + "createdTime": "2022-07-08T21:53:05.6499271Z", + "lastUpdateTime": "2022-07-08T21:53:05.6499271Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:28 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "0bb94fb0-6f17-4631-b47c-bda44d63a82c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:28 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f0553097-8506-40bc-ba43-aa8edd009e76", + "x-ms-ratelimit-remaining-calls-per-second": "165.9" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:28 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a7c269db-7e5b-4e00-a86b-528781291a67", + "x-ms-ratelimit-remaining-calls-per-second": "165.883333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1228", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:28 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83\u0026n=2\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": "bf42b84e-b191-44e5-9a68-63705dadc859" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:2c5e2045f35086c019e80c86880fd5b7c7a619878b59e3b7592711e1781df51a", + "imageSize": 830677, + "createdTime": "2022-07-08T21:53:05.8122977Z", + "lastUpdateTime": "2022-07-08T21:53:05.8122977Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83", + "imageSize": 11153203, + "createdTime": "2022-07-08T21:53:04.5650787Z", + "lastUpdateTime": "2022-07-08T21:53:04.5650787Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:28 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "2b5c6317-fd13-4a61-b91f-c02968ad5300" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:28 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4d6a1dd8-c1dc-47e1-b730-93af0471c9f7", + "x-ms-ratelimit-remaining-calls-per-second": "165.866667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:28 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "75850792-ca7a-4e47-9b02-ab568330320f", + "x-ms-ratelimit-remaining-calls-per-second": "165.85" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1579", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:29 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fbusybox/_manifests?last=sha256%3A897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d\u0026n=2\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": "f9d408d5-c420-4426-b2a7-b2e0dd956fa3" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132", + "imageSize": 907419, + "createdTime": "2022-07-08T21:53:06.8092888Z", + "lastUpdateTime": "2022-07-08T21:53:06.8092888Z", + "architecture": "riscv64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d", + "imageSize": 758548, + "createdTime": "2022-07-08T21:53:05.3273324Z", + "lastUpdateTime": "2022-07-08T21:53:05.3273324Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8d3463f4-f739-4dcc-9cfe-8fef649365c2" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:29 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "025ea2d0-1285-48a0-9295-813a0d29ea9e", + "x-ms-ratelimit-remaining-calls-per-second": "165.833333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:29 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "42cc5681-9731-4726-a395-4ba4687f8f7e", + "x-ms-ratelimit-remaining-calls-per-second": "165.816667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1586", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:29 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ac940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc\u0026n=2\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": "eec2a140-346d-4e5f-a87c-8ee211a9ac0b" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:ac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc", + "imageSize": 2008986, + "createdTime": "2022-07-08T21:53:05.8878865Z", + "lastUpdateTime": "2022-07-08T21:53:05.8878865Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc", + "imageSize": 726504, + "createdTime": "2022-07-08T21:53:05.4032016Z", + "lastUpdateTime": "2022-07-08T21:53:05.4032016Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a7fa4896-53da-4185-9c93-57b4d6962996" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:29 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b0a8ede5-1409-4d89-9c0f-6b0181f6bc85", + "x-ms-ratelimit-remaining-calls-per-second": "165.8" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:29 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "dd0f6ab3-bd01-4f86-8c5c-d89b5c30469f", + "x-ms-ratelimit-remaining-calls-per-second": "165.783333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1584", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:29 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/library%2Fbusybox/_manifests?last=sha256%3Ada1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992\u0026n=2\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": "52530371-d540-4063-8067-b0e36ba8e194" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:d339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea", + "imageSize": 963052, + "createdTime": "2022-07-08T21:53:06.0420451Z", + "lastUpdateTime": "2022-07-08T21:53:06.0420451Z", + "architecture": "mips64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan InProgress\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992", + "imageSize": 955694, + "createdTime": "2022-07-08T21:53:05.5846508Z", + "lastUpdateTime": "2022-07-08T21:53:05.5846508Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "1f56e5ee-b24f-4fad-a093-0ab7de442642" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:29 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2b5e924f-42df-4a44-9bfc-2e0031358712", + "x-ms-ratelimit-remaining-calls-per-second": "165.766667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "close", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:29 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "69d9e87b-6aa6-4422-a679-0a5eb3e6ebea", + "x-ms-ratelimit-remaining-calls-per-second": "165.75" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "835", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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": "08b96e17-3e34-472b-8b2f-ded248622303" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52", + "imageSize": 775241, + "createdTime": "2022-07-08T21:53:05.2285625Z", + "lastUpdateTime": "2022-07-08T21:53:05.2285625Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_registry_artifacts_descending.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_registry_artifacts_descending.json new file mode 100644 index 000000000000..058f4a674562 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_registry_artifacts_descending.json @@ -0,0 +1,687 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:30 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "13104394-aa86-498b-9f05-e81db8fb3d58" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-fuleRI2VVan3j47QjSA2uA\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:29 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:52:30 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:30 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "cf46241f-4388-4d4b-bd87-92b579a466c5", + "x-ms-ratelimit-remaining-calls-per-second": "166.6" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:30 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "29a0d073-8d0f-4542-b528-5a511c21a97b", + "x-ms-ratelimit-remaining-calls-per-second": "166.45" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:52:30 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": "b17ad9a0-c212-456f-af21-e655ee9fbcea" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132", + "imageSize": 907419, + "createdTime": "2022-07-08T21:53:06.8092888Z", + "lastUpdateTime": "2022-07-08T21:53:06.8092888Z", + "architecture": "riscv64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0d4b25aec0a40382a3eaea29e3af360f2c5908c91b3b12ded5492fdc5e74050c", + "imageSize": 2486114, + "createdTime": "2022-07-08T21:53:06.3308049Z", + "lastUpdateTime": "2022-07-08T21:53:06.3308049Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:d339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea", + "imageSize": 963052, + "createdTime": "2022-07-08T21:53:06.0420451Z", + "lastUpdateTime": "2022-07-08T21:53:06.0420451Z", + "architecture": "mips64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan InProgress\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:ac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc", + "imageSize": 2008986, + "createdTime": "2022-07-08T21:53:05.8878865Z", + "lastUpdateTime": "2022-07-08T21:53:05.8878865Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:2c5e2045f35086c019e80c86880fd5b7c7a619878b59e3b7592711e1781df51a", + "imageSize": 830677, + "createdTime": "2022-07-08T21:53:05.8122977Z", + "lastUpdateTime": "2022-07-08T21:53:05.8122977Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933", + "imageSize": 738673, + "createdTime": "2022-07-08T21:53:05.6499271Z", + "lastUpdateTime": "2022-07-08T21:53:05.6499271Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992", + "imageSize": 955694, + "createdTime": "2022-07-08T21:53:05.5846508Z", + "lastUpdateTime": "2022-07-08T21:53:05.5846508Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc", + "imageSize": 726504, + "createdTime": "2022-07-08T21:53:05.4032016Z", + "lastUpdateTime": "2022-07-08T21:53:05.4032016Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d", + "imageSize": 758548, + "createdTime": "2022-07-08T21:53:05.3273324Z", + "lastUpdateTime": "2022-07-08T21:53:05.3273324Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52", + "imageSize": 775241, + "createdTime": "2022-07-08T21:53:05.2285625Z", + "lastUpdateTime": "2022-07-08T21:53:05.2285625Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83", + "imageSize": 11153203, + "createdTime": "2022-07-08T21:53:04.5650787Z", + "lastUpdateTime": "2022-07-08T21:53:04.5650787Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "218", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:30 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:library/busybox:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c987b487-52f1-4a16-864d-e3fd322d7ba3" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "library/busybox", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:30 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6e6e3482-1e6b-42cd-a7d6-793f3c5907f7", + "x-ms-ratelimit-remaining-calls-per-second": "166.433333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "137", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Alibrary%2Fbusybox%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:30 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ee755143-0189-4fb6-8bfa-ce5fbf76ceb1", + "x-ms-ratelimit-remaining-calls-per-second": "166.416667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:52:31 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": "8107080b-5e60-4915-9741-8290cfcc1f19" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "library/busybox", + "manifests": [ + { + "digest": "sha256:3cb3c11a9bac8d6ca264766461deae86cdd58c174ecb26cdf2222e8e489c4132", + "imageSize": 907419, + "createdTime": "2022-07-08T21:53:06.8092888Z", + "lastUpdateTime": "2022-07-08T21:53:06.8092888Z", + "architecture": "riscv64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Failed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0d4b25aec0a40382a3eaea29e3af360f2c5908c91b3b12ded5492fdc5e74050c", + "imageSize": 2486114, + "createdTime": "2022-07-08T21:53:06.3308049Z", + "lastUpdateTime": "2022-07-08T21:53:06.3308049Z", + "architecture": "ppc64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:d339093e7bda33949fb5f3ddb6eeb6b51b8b0950183a132831c74cba05f0a1ea", + "imageSize": 963052, + "createdTime": "2022-07-08T21:53:06.0420451Z", + "lastUpdateTime": "2022-07-08T21:53:06.0420451Z", + "architecture": "mips64le", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan InProgress\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00227/8/2022 10:43:42 PM\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:ac0e2006c03b435ee605c4bf84464d9fb665353643fa6295962bd69c23ced5dc", + "imageSize": 2008986, + "createdTime": "2022-07-08T21:53:05.8878865Z", + "lastUpdateTime": "2022-07-08T21:53:05.8878865Z", + "architecture": "s390x", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:2c5e2045f35086c019e80c86880fd5b7c7a619878b59e3b7592711e1781df51a", + "imageSize": 830677, + "createdTime": "2022-07-08T21:53:05.8122977Z", + "lastUpdateTime": "2022-07-08T21:53:05.8122977Z", + "architecture": "arm64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:0dc78806f5885db569f7389b0e0df2e190346b0df59937268c5862d5bfc5f933", + "imageSize": 738673, + "createdTime": "2022-07-08T21:53:05.6499271Z", + "lastUpdateTime": "2022-07-08T21:53:05.6499271Z", + "architecture": "386", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:da1b5115bf7e41d123977962115034c67d019ef63fc0c3b9ddfdea3b6f9f9992", + "imageSize": 955694, + "createdTime": "2022-07-08T21:53:05.5846508Z", + "lastUpdateTime": "2022-07-08T21:53:05.5846508Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:c940f8509c36033b11bd7468bf9d9cb60b51f4be13033cfe70e86581944d66cc", + "imageSize": 726504, + "createdTime": "2022-07-08T21:53:05.4032016Z", + "lastUpdateTime": "2022-07-08T21:53:05.4032016Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:897ee244eb86a38fa6f7d21e6a9e22aae41f105c574fc47b2c77cff8be98e29d", + "imageSize": 758548, + "createdTime": "2022-07-08T21:53:05.3273324Z", + "lastUpdateTime": "2022-07-08T21:53:05.3273324Z", + "architecture": "arm", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52", + "imageSize": 775241, + "createdTime": "2022-07-08T21:53:05.2285625Z", + "lastUpdateTime": "2022-07-08T21:53:05.2285625Z", + "architecture": "amd64", + "os": "linux", + "mediaType": "application/vnd.docker.distribution.manifest.v2\u002Bjson", + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true, + "quarantineDetails": "{\u0022state\u0022:\u0022Scan Passed\u0022,\u0022link\u0022:\u0022https://aka.ms/test\u0022,\u0022scanner\u0022:\u0022Azure Security Monitoring-Qualys Scanner\u0022,\u0022result\u0022:{\u0022version\u0022:\u00222022-07-06T19:54:46.2254627Z\u0022,\u0022summary\u0022:[{\u0022severity\u0022:\u0022High\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Medium\u0022,\u0022count\u0022:0},{\u0022severity\u0022:\u0022Low\u0022,\u0022count\u0022:0}]}}", + "quarantineState": "Passed" + } + }, + { + "digest": "sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83", + "imageSize": 11153203, + "createdTime": "2022-07-08T21:53:04.5650787Z", + "lastUpdateTime": "2022-07-08T21:53:04.5650787Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "latest" + ], + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_repository_names.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_repository_names.json new file mode 100644 index 000000000000..7707ef4d2961 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_repository_names.json @@ -0,0 +1,209 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "3fff7213-58ce-470b-a651-1cd6d6d07a53" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-SY4IjvvDiN3pepAn61vr7Q\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:07 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:51:08 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:08 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b8d90d5e-1618-4f77-a8b0-1c545c2ebe2c", + "x-ms-ratelimit-remaining-calls-per-second": "165.816667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:08 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "791c63d0-ab48-4e25-abdc-8365696ea4e8", + "x-ms-ratelimit-remaining-calls-per-second": "165.8" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "511", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51: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": "7bf38622-78a5-40e8-a644-850131ff49ed" + }, + "ResponseBody": { + "repositories": [ + "library/alpine", + "library/busybox", + "library/hello-world", + "repo141645c0", + "repo1a1f4613", + "repo1ded4145", + "repo1e243c5e", + "repo220636ca", + "repo23f64198", + "repo2d863abf", + "repo2deb42ef", + "repo3ea338e5", + "repo571f3e74", + "repo5b014628", + "repo5b823eaa", + "repo5c164001", + "repo5c6c3e66", + "repo605d41ad", + "repo8725450a", + "repo99f2408f", + "repo9a4c3ebe", + "repoa4a73b86", + "repoa693421c", + "repoa81d3b45", + "repob25d43a6", + "repod29b3f2b", + "repod8bd3da1", + "repodb213d60", + "repodbf03f3a", + "repode7a40d9", + "repoe63342a4", + "repof04e3a43" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_repository_names_by_page.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_repository_names_by_page.json new file mode 100644 index 000000000000..61e79ec510b2 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_repository_names_by_page.json @@ -0,0 +1,2233 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?n=2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "676e5a8d-3287-454a-8ea5-921a0edbf74b" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:08 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:51:09 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "cc36a696-3f34-428a-b412-32d31133454a", + "x-ms-ratelimit-remaining-calls-per-second": "165.783333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "45c6c150-d9b2-4a88-8675-643b3435c3df", + "x-ms-ratelimit-remaining-calls-per-second": "165.766667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?n=2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "54", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:09 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=library%2Fbusybox\u0026n=2\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": "45534556-9c3c-4ea4-b08b-7f02cde6d9df" + }, + "ResponseBody": { + "repositories": [ + "library/alpine", + "library/busybox" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8b955922-369f-44e3-87a2-fe59fe307e8a" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "709023c9-8fad-480f-a26b-84a726f04406", + "x-ms-ratelimit-remaining-calls-per-second": "165.75" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e215e825-b955-457f-a3b7-9ab217c62809", + "x-ms-ratelimit-remaining-calls-per-second": "165.733333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "56", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:09 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo141645c0\u0026n=2\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": "f85a0ad7-02e4-48a2-89b1-e1eb8244e7d1" + }, + "ResponseBody": { + "repositories": [ + "library/hello-world", + "repo141645c0" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo141645c0\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7dc72af8-0e25-4753-9294-0f257a5dadf1" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "60d4aa48-52d6-47c2-8ac4-ebb67ec7230d", + "x-ms-ratelimit-remaining-calls-per-second": "165.716667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "34974dab-e3fc-4e8f-9bcd-e259c42636be", + "x-ms-ratelimit-remaining-calls-per-second": "165.7" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo141645c0\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:09 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo1ded4145\u0026n=2\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": "6a22213a-e533-41c6-b714-9054efa66b13" + }, + "ResponseBody": { + "repositories": [ + "repo1a1f4613", + "repo1ded4145" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo1ded4145\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ef139a2c-2121-4fd3-83e4-cafb5c699d2f" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "38d7497e-cc3a-4590-acf0-2d408b5314e0", + "x-ms-ratelimit-remaining-calls-per-second": "165.683333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5f99bdf1-4524-43b9-b0e0-100f48540bbd", + "x-ms-ratelimit-remaining-calls-per-second": "165.666667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo1ded4145\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:09 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo220636ca\u0026n=2\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": "f8a9e4b4-ed45-4896-b14d-9b46e97a21f5" + }, + "ResponseBody": { + "repositories": [ + "repo1e243c5e", + "repo220636ca" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo220636ca\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "3da66b4b-9fd4-458f-8bea-f3bc889f4fb0" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7cc69853-ffb0-4b6a-825e-54eab415cd54", + "x-ms-ratelimit-remaining-calls-per-second": "165.65" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:09 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8658e55f-d338-42dc-a229-d432afa73d4e", + "x-ms-ratelimit-remaining-calls-per-second": "165.633333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo220636ca\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:09 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo2d863abf\u0026n=2\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": "a8fdff3d-0296-4903-8ecb-eb784fc03c53" + }, + "ResponseBody": { + "repositories": [ + "repo23f64198", + "repo2d863abf" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2d863abf\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "4569504d-1ad0-4b84-abb8-77d4f694e44e" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "62f3aa3a-43f5-49e5-b471-cf1f1330787c", + "x-ms-ratelimit-remaining-calls-per-second": "165.616667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a496d4db-5be5-4a3c-8b74-e5dba17b09d2", + "x-ms-ratelimit-remaining-calls-per-second": "165.6" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2d863abf\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo3ea338e5\u0026n=2\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": "aaa40544-161c-4a82-8343-726d9927fcc5" + }, + "ResponseBody": { + "repositories": [ + "repo2deb42ef", + "repo3ea338e5" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3ea338e5\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a41ce3c0-0af3-4c3e-930b-6a47c1657f18" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "72fa1341-493a-4265-a7db-4e4ad444a738", + "x-ms-ratelimit-remaining-calls-per-second": "165.583333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "bac00289-570e-404c-9b69-3cd59ecee5e8", + "x-ms-ratelimit-remaining-calls-per-second": "165.566667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo3ea338e5\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo5b014628\u0026n=2\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": "388dc26d-538a-4a03-804c-507291c00323" + }, + "ResponseBody": { + "repositories": [ + "repo571f3e74", + "repo5b014628" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5b014628\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ee3448d9-0c6d-4df9-a146-aff96fb3cf43" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "98a9c01b-91b8-46f6-a814-ec97bb207dfa", + "x-ms-ratelimit-remaining-calls-per-second": "165.55" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f59bb5e2-bbd9-4e32-a9a4-037cf911f551", + "x-ms-ratelimit-remaining-calls-per-second": "165.533333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5b014628\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo5c164001\u0026n=2\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": "87ab42b5-3cd8-48f8-9713-0f1e8a578dea" + }, + "ResponseBody": { + "repositories": [ + "repo5b823eaa", + "repo5c164001" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5c164001\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5600b623-ee43-4faa-8291-403517e609ff" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "02af7e3f-9ec4-428d-a5d2-c124e05979c8", + "x-ms-ratelimit-remaining-calls-per-second": "165.516667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7b0302cc-ca3b-4b99-b73d-a427cdb4c5b7", + "x-ms-ratelimit-remaining-calls-per-second": "165.5" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo5c164001\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo605d41ad\u0026n=2\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": "0c09127f-479e-4608-8fa5-8de1dc28d4e9" + }, + "ResponseBody": { + "repositories": [ + "repo5c6c3e66", + "repo605d41ad" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo605d41ad\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "06cf42dc-0a56-40d7-a892-ff793f790fc4" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2bf72f25-3941-45b5-854f-581ce018ceb7", + "x-ms-ratelimit-remaining-calls-per-second": "165.483333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c86fff65-277f-4e44-9dc0-56b25764e72e", + "x-ms-ratelimit-remaining-calls-per-second": "165.466667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo605d41ad\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repo99f2408f\u0026n=2\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": "8d186771-a990-4b48-a45b-b783bdedda9f" + }, + "ResponseBody": { + "repositories": [ + "repo8725450a", + "repo99f2408f" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo99f2408f\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "02c0d23d-5f46-4f96-bc91-5af870fdb0d8" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "eeef0131-3332-40a1-b67e-76d29e26d73e", + "x-ms-ratelimit-remaining-calls-per-second": "165.45" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e58f1a72-98ac-4105-ac21-cd983f07ec87", + "x-ms-ratelimit-remaining-calls-per-second": "165.433333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repo99f2408f\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:10 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repoa4a73b86\u0026n=2\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": "925c139a-1bd8-4875-9ca5-b39ac471d3d5" + }, + "ResponseBody": { + "repositories": [ + "repo9a4c3ebe", + "repoa4a73b86" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa4a73b86\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a294c528-3b88-432c-babe-d465d6773a87" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0cab4b3b-ab0d-4189-a25c-a328c316761e", + "x-ms-ratelimit-remaining-calls-per-second": "165.416667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "close", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "df3de544-39df-4922-95e2-d9fd297a22c1", + "x-ms-ratelimit-remaining-calls-per-second": "165.4" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa4a73b86\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:11 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repoa81d3b45\u0026n=2\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": "2df70f08-8192-40bd-a7a4-d314ce54c875" + }, + "ResponseBody": { + "repositories": [ + "repoa693421c", + "repoa81d3b45" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa81d3b45\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7795944b-a490-47b3-b594-046b839e7d5c" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "99c4acb9-1ffd-4ea0-8869-6d6f4c0aa91b", + "x-ms-ratelimit-remaining-calls-per-second": "166.55" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "53a5e0f8-8c0e-46f1-8a03-164070f4b4bb", + "x-ms-ratelimit-remaining-calls-per-second": "166.083333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repoa81d3b45\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:11 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repod29b3f2b\u0026n=2\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": "a9f72ab8-dfa3-484c-a11d-1bc6545aff33" + }, + "ResponseBody": { + "repositories": [ + "repob25d43a6", + "repod29b3f2b" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repod29b3f2b\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "38da1634-ab33-427a-8dc5-a5352c94aa81" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f6922582-b289-41c4-b240-0d2ef0c23002", + "x-ms-ratelimit-remaining-calls-per-second": "166.066667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "638d9860-cf7d-4e77-9eec-d8bd90460a3e", + "x-ms-ratelimit-remaining-calls-per-second": "166.05" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repod29b3f2b\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:11 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repodb213d60\u0026n=2\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": "3d9ff746-3781-4a08-8085-cfc04ad6c280" + }, + "ResponseBody": { + "repositories": [ + "repod8bd3da1", + "repodb213d60" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repodb213d60\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e6c9f3c9-d2cb-481c-a6c8-477c285ac94f" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e143b6fa-02ef-4e9f-a73e-6277dabe12ec", + "x-ms-ratelimit-remaining-calls-per-second": "166.033333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a1ad80c1-2af2-4a52-ab5f-18b91ee5db04", + "x-ms-ratelimit-remaining-calls-per-second": "166.016667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repodb213d60\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:11 GMT", + "Docker-Distribution-Api-Version": "registry/2.0", + "Link": "\u003C/acr/v1/_catalog?last=repode7a40d9\u0026n=2\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": "15b7b7e3-59bd-42ff-9e9b-1d0b3d3bbd5e" + }, + "ResponseBody": { + "repositories": [ + "repodbf03f3a", + "repode7a40d9" + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repode7a40d9\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:51: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022registry:catalog:*\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "1bb396c1-6c54-4f67-89d8-1507f1d64746" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "registry", + "Name": "catalog", + "Action": "*" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ad2bc9a6-c822-4cb6-b1ad-b62e26763889", + "x-ms-ratelimit-remaining-calls-per-second": "166" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "115", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=registry%3Acatalog%3A%2A\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:11 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4532cd95-bd34-4741-8460-9f570ba1b8b5", + "x-ms-ratelimit-remaining-calls-per-second": "165.983333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/_catalog?last=repode7a40d9\u0026n=2\u0026orderby=", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "49", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:51:11 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": "829a4252-c419-4761-8d9e-e07121b175b0" + }, + "ResponseBody": { + "repositories": [ + "repoe63342a4", + "repof04e3a43" + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_tag_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_tag_properties.json new file mode 100644 index 000000000000..83edd4935ef8 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_tag_properties.json @@ -0,0 +1,231 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repodbf03f3a/_tags", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:55: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repodbf03f3a:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5d22d2a5-23b1-4338-a2a9-d3468abf3c70" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repodbf03f3a", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-ApGc6QYSqyZTw8M8oucdyg\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:55:16 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEwAAAIysWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:55:16 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:55:16 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0f829d7b-2ede-4ea6-a88f-0a9650813404", + "x-ms-ratelimit-remaining-calls-per-second": "166.333333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepodbf03f3a%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:55:17 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c2b652e3-bc41-49a7-aab1-035a2ddc5594", + "x-ms-ratelimit-remaining-calls-per-second": "166.233333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repodbf03f3a/_tags", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1351", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:55: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": "4a780561-3b2f-4a91-ac1e-291d33ac8999" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repodbf03f3a", + "tags": [ + { + "name": "tagdbf03f3a0", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:07:52.3085981Z", + "lastUpdateTime": "2022-07-08T22:07:52.3085981Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tagdbf03f3a1", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:07:53.0051948Z", + "lastUpdateTime": "2022-07-08T22:07:53.0051948Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tagdbf03f3a2", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:07:53.6227301Z", + "lastUpdateTime": "2022-07-08T22:07:53.6227301Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tagdbf03f3a3", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:07:53.6859738Z", + "lastUpdateTime": "2022-07-08T22:07:53.6859738Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_tag_properties_order_ascending.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_tag_properties_order_ascending.json new file mode 100644 index 000000000000..66f07c40a093 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_tag_properties_order_ascending.json @@ -0,0 +1,418 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo141645c0/_tags?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:56: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo141645c0:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b9f2bb11-ce46-4d72-b80d-7c2009118be1" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo141645c0", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:00 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAIysWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:56:01 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a9a73e09-649c-45ba-92d5-a353fc673285", + "x-ms-ratelimit-remaining-calls-per-second": "166.55" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo141645c0%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e6bc8030-82d2-4ed9-8e94-ea7cd9fd6ca6", + "x-ms-ratelimit-remaining-calls-per-second": "166.5" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo141645c0/_tags?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1351", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56: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": "a50df788-adb5-4ace-bd8a-ce8de66e59c3" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo141645c0", + "tags": [ + { + "name": "tag141645c00", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:37.5165262Z", + "lastUpdateTime": "2022-07-08T22:08:37.5165262Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag141645c01", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:38.5873968Z", + "lastUpdateTime": "2022-07-08T22:08:38.5873968Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag141645c02", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:38.7797226Z", + "lastUpdateTime": "2022-07-08T22:08:38.7797226Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag141645c03", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:39.6342174Z", + "lastUpdateTime": "2022-07-08T22:08:39.6342174Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo141645c0/_tags?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:56: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo141645c0:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b6102239-3887-4ff4-8f11-88816479e0de" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo141645c0", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b7f1b729-47ae-4608-bb2d-b8980a1199e3", + "x-ms-ratelimit-remaining-calls-per-second": "166.483333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo141645c0%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "1e190169-2f72-4f0f-974b-b95e72e3a1cb", + "x-ms-ratelimit-remaining-calls-per-second": "166.466667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo141645c0/_tags?orderby=timeasc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1351", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:56: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": "b95c8761-022e-464b-9497-d3887999b222" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo141645c0", + "tags": [ + { + "name": "tag141645c00", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:37.5165262Z", + "lastUpdateTime": "2022-07-08T22:08:37.5165262Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag141645c01", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:38.5873968Z", + "lastUpdateTime": "2022-07-08T22:08:38.5873968Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag141645c02", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:38.7797226Z", + "lastUpdateTime": "2022-07-08T22:08:38.7797226Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag141645c03", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:39.6342174Z", + "lastUpdateTime": "2022-07-08T22:08:39.6342174Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_tag_properties_order_descending.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_tag_properties_order_descending.json new file mode 100644 index 000000000000..84bf53a6887e --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_list_tag_properties_order_descending.json @@ -0,0 +1,418 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5b014628/_tags?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:55: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5b014628:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "cbd4c4e3-a661-422e-b806-8fdb6e2e3eab" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5b014628", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:55:38 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAIysWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:55:38 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:55:39 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "48fef5ec-3cfd-4c87-9b9f-fb0abf45d5b8", + "x-ms-ratelimit-remaining-calls-per-second": "166.333333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5b014628%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:55:39 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e1cba491-5fe5-441b-b0a0-cc5123422af6", + "x-ms-ratelimit-remaining-calls-per-second": "166.316667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5b014628/_tags?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1349", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:55: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": "af0f7c96-4199-42e2-bb38-6b57f0bdd2a6" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo5b014628", + "tags": [ + { + "name": "tag5b0146283", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:19.6039612Z", + "lastUpdateTime": "2022-07-08T22:08:19.6039612Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag5b0146281", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:17.4215008Z", + "lastUpdateTime": "2022-07-08T22:08:17.4215008Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag5b0146282", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:17.204232Z", + "lastUpdateTime": "2022-07-08T22:08:17.204232Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag5b0146280", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:15.7530064Z", + "lastUpdateTime": "2022-07-08T22:08:15.7530064Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5b014628/_tags?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:55: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5b014628:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a9de4b9a-9b9c-4c51-9e8e-45adb9457bb8" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5b014628", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:55:39 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3088be93-e081-4b47-bf21-9fe115f1246e", + "x-ms-ratelimit-remaining-calls-per-second": "166.3" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5b014628%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:55:39 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d9925570-2946-4b35-86dd-beeb2009db3e", + "x-ms-ratelimit-remaining-calls-per-second": "166.283333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5b014628/_tags?orderby=timedesc", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1349", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:55: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": "13fedb65-f849-4a9a-8df7-327909344ae9" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo5b014628", + "tags": [ + { + "name": "tag5b0146283", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:19.6039612Z", + "lastUpdateTime": "2022-07-08T22:08:19.6039612Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag5b0146281", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:17.4215008Z", + "lastUpdateTime": "2022-07-08T22:08:17.4215008Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag5b0146282", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:17.204232Z", + "lastUpdateTime": "2022-07-08T22:08:17.204232Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + }, + { + "name": "tag5b0146280", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:08:15.7530064Z", + "lastUpdateTime": "2022-07-08T22:08:15.7530064Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_manifest_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_manifest_properties.json new file mode 100644 index 000000000000..50b5ea41a212 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_manifest_properties.json @@ -0,0 +1,1133 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa693421c/_tags/taga693421c?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repoa693421c:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "3b6fb9ce-f256-4a07-8242-531a97c0357d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repoa693421c", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-ip8s4zzRC5Sgz-fceU_kfg\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:18 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:53:18 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "9c94d309-62de-46c8-8205-a0df08feabfc", + "x-ms-ratelimit-remaining-calls-per-second": "166.35" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepoa693421c%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5a493225-867c-488b-88ca-235581bd24ee", + "x-ms-ratelimit-remaining-calls-per-second": "166.3" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa693421c/_tags/taga693421c?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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": "9309d871-457e-4541-8f69-6a67e9d2a2ce" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repoa693421c", + "tag": { + "name": "taga693421c", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:05:53.8296259Z", + "lastUpdateTime": "2022-07-08T22:05:53.8296259Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa693421c/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repoa693421c:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "4d912b18-ceec-4fa8-8c0a-9ad9b8545ce4" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repoa693421c", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "02f2d9c0-3c2b-4d44-bceb-04884da7795b", + "x-ms-ratelimit-remaining-calls-per-second": "166.283333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepoa693421c%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:18 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "cdd900f1-402e-44c5-bd9a-0c586b1df6e8", + "x-ms-ratelimit-remaining-calls-per-second": "166.266667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa693421c/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1823", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53: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": "9532436b-2a82-4f21-a5c1-9c5146ce929c" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repoa693421c", + "manifest": { + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "imageSize": 61676, + "createdTime": "2022-07-08T22:05:53.7449411Z", + "lastUpdateTime": "2022-07-08T22:05:53.7449411Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "taga693421c" + ], + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:9ec668ee97c20731eb4f4f55f6248ac6b83a0d2e1add2110e6b5d62191f66dd7", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:fa36b268301e951714b69bb6db7680639cdc1b7381cfaac12e98e09f94fdc0d6", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa693421c/_tags/taga693421c?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repoa693421c:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "10ff42b4-895d-44f2-883d-a5f709acf1f8" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repoa693421c", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:19 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "72f75ea5-1380-4e90-a589-b20e23b6a37e", + "x-ms-ratelimit-remaining-calls-per-second": "166.25" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepoa693421c%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:19 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "54acd79d-de55-416c-bce9-007671f91224", + "x-ms-ratelimit-remaining-calls-per-second": "166.233333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa693421c/_tags/taga693421c?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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": "f2a3d71f-a4ac-4f06-b96e-5805616929e7" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repoa693421c", + "tag": { + "name": "taga693421c", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:05:53.8296259Z", + "lastUpdateTime": "2022-07-08T22:05:53.8296259Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa693421c/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "91", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repoa693421c:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7bd28073-3ae2-4415-b311-a8d31c134544" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repoa693421c", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:19 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0dfb3a70-178a-49e0-bfb2-e08627f1e477", + "x-ms-ratelimit-remaining-calls-per-second": "166.216667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepoa693421c%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:19 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "163b9377-e1ae-4a2e-96d0-4b54b82759bb", + "x-ms-ratelimit-remaining-calls-per-second": "166.2" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa693421c/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "91", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1827", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53: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": "3c5ac106-93cf-4eea-8af8-447cd4d773cd" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repoa693421c", + "manifest": { + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "imageSize": 61676, + "createdTime": "2022-07-08T22:05:53.7449411Z", + "lastUpdateTime": "2022-07-08T22:05:53.7449411Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "taga693421c" + ], + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + }, + "references": [ + { + "digest": "sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4", + "architecture": "amd64", + "os": "linux" + }, + { + "digest": "sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c", + "architecture": "arm", + "os": "linux" + }, + { + "digest": "sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c", + "architecture": "arm", + "os": "linux" + }, + { + "digest": "sha256:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:9ec668ee97c20731eb4f4f55f6248ac6b83a0d2e1add2110e6b5d62191f66dd7", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:fa36b268301e951714b69bb6db7680639cdc1b7381cfaac12e98e09f94fdc0d6", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa693421c/_tags/taga693421c?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repoa693421c:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "b5ae1f4c-386c-4345-9308-af3369a900a4" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repoa693421c", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:19 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "0d41b5ff-c721-41f4-8681-6e08547ca898", + "x-ms-ratelimit-remaining-calls-per-second": "166.183333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepoa693421c%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:19 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "34f129e1-ca5f-4cfd-b89c-0076a52a108b", + "x-ms-ratelimit-remaining-calls-per-second": "166.166667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa693421c/_tags/taga693421c?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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": "c89cd719-072d-4354-ad18-68e21a8a8959" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repoa693421c", + "tag": { + "name": "taga693421c", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:05:53.8296259Z", + "lastUpdateTime": "2022-07-08T22:05:53.8296259Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa693421c/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repoa693421c:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "2d40e1fd-1e5b-4edd-952f-05b7eee54f3d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repoa693421c", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:19 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "64b35450-8e90-443b-842f-beadf9f47cdb", + "x-ms-ratelimit-remaining-calls-per-second": "166.15" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepoa693421c%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:19 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f1cb6cf3-8d1a-4647-a69a-474b438dd478", + "x-ms-ratelimit-remaining-calls-per-second": "166.133333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repoa693421c/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1823", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53: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": "32ffa482-920d-41f6-8dbd-d5176d57eaf2" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repoa693421c", + "manifest": { + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "imageSize": 61676, + "createdTime": "2022-07-08T22:05:53.7449411Z", + "lastUpdateTime": "2022-07-08T22:05:53.7449411Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "taga693421c" + ], + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:9ec668ee97c20731eb4f4f55f6248ac6b83a0d2e1add2110e6b5d62191f66dd7", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:fa36b268301e951714b69bb6db7680639cdc1b7381cfaac12e98e09f94fdc0d6", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_manifest_properties_kwargs.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_manifest_properties_kwargs.json new file mode 100644 index 000000000000..b335e44403d9 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_manifest_properties_kwargs.json @@ -0,0 +1,2212 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_tags/tag8725450a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo8725450a:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f2c2e2bd-1b80-4f90-8283-050ee9a4d506" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo8725450a", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:41 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:53:42 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:42 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4a04c902-8055-4b56-b4f9-81998975aec3", + "x-ms-ratelimit-remaining-calls-per-second": "166.283333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo8725450a%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:42 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "bea0d91e-e40a-46be-9207-5d24a34cc63f", + "x-ms-ratelimit-remaining-calls-per-second": "166.2" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_tags/tag8725450a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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": "1a7a1f76-6406-4a99-8eca-6572056a0044" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo8725450a", + "tag": { + "name": "tag8725450a", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:06:17.3227153Z", + "lastUpdateTime": "2022-07-08T22:06:17.3227153Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo8725450a:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "1a5225cc-3f6a-4bc9-91bf-66d4899759f5" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo8725450a", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:42 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "854aa663-6dca-41e0-a28c-fcd902b8eb01", + "x-ms-ratelimit-remaining-calls-per-second": "166.183333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo8725450a%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:42 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b6c73233-1afe-418d-9042-55d385722ddb", + "x-ms-ratelimit-remaining-calls-per-second": "166.166667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1823", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53: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": "feccb6fd-f730-45fa-a24b-3ebcfe5e7cae" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo8725450a", + "manifest": { + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "imageSize": 61676, + "createdTime": "2022-07-08T22:06:17.2277417Z", + "lastUpdateTime": "2022-07-08T22:06:17.2277417Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tag8725450a" + ], + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:9ec668ee97c20731eb4f4f55f6248ac6b83a0d2e1add2110e6b5d62191f66dd7", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:fa36b268301e951714b69bb6db7680639cdc1b7381cfaac12e98e09f94fdc0d6", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_tags/tag8725450a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo8725450a:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "e1eb6a0d-de7c-4d5b-a242-7fa2dc4e84b8" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo8725450a", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:42 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "846fc0ae-1529-4af1-9bf2-cf25e0ac8e50", + "x-ms-ratelimit-remaining-calls-per-second": "166.15" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo8725450a%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:42 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "ed8581cf-bdc9-4a6b-96aa-6b0718b9439e", + "x-ms-ratelimit-remaining-calls-per-second": "166.133333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_tags/tag8725450a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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": "4688ad05-28a7-4bdc-b39e-5906a05786a2" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo8725450a", + "tag": { + "name": "tag8725450a", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:06:17.3227153Z", + "lastUpdateTime": "2022-07-08T22:06:17.3227153Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "24", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo8725450a:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "52e31651-0a09-4f2d-b38d-88b8ae064ec4" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo8725450a", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:42 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "eb5f5999-22fc-49a4-bc7b-197dc3479ae1", + "x-ms-ratelimit-remaining-calls-per-second": "166.116667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo8725450a%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:42 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d3652dee-f2f6-4b9f-98c3-128f3310999c", + "x-ms-ratelimit-remaining-calls-per-second": "166.1" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "24", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "deleteEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "1824", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53: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": "0b7e6c1a-d509-4ed9-8d57-17bc007d57c4" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo8725450a", + "manifest": { + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "imageSize": 61676, + "createdTime": "2022-07-08T22:06:17.2277417Z", + "lastUpdateTime": "2022-07-08T22:06:17.2277417Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tag8725450a" + ], + "changeableAttributes": { + "deleteEnabled": false, + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:9ec668ee97c20731eb4f4f55f6248ac6b83a0d2e1add2110e6b5d62191f66dd7", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:fa36b268301e951714b69bb6db7680639cdc1b7381cfaac12e98e09f94fdc0d6", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_tags/tag8725450a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo8725450a:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f75c937f-7e95-4300-8135-ed3da3dc2465" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo8725450a", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:42 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "eb717a42-2b4d-49d1-96ff-18cf7dd36a6a", + "x-ms-ratelimit-remaining-calls-per-second": "166.083333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo8725450a%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:42 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b1aa0bd1-dfa3-441b-9ad1-745c78f521f1", + "x-ms-ratelimit-remaining-calls-per-second": "166.066667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_tags/tag8725450a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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": "86431f87-2b03-4fb6-b9fd-264da553db82" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo8725450a", + "tag": { + "name": "tag8725450a", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:06:17.3227153Z", + "lastUpdateTime": "2022-07-08T22:06:17.3227153Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo8725450a:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f74359f4-6fa7-4b16-b639-75fbd938678e" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo8725450a", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:42 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e640bf10-9750-4cfa-9977-2cef813ee5ba", + "x-ms-ratelimit-remaining-calls-per-second": "166.05" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo8725450a%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:43 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "30e53f53-4549-4874-a621-8fa73dc01383", + "x-ms-ratelimit-remaining-calls-per-second": "166.033333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "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": "1825", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53: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": "111fca1b-cb12-4c7a-afcf-39d423f96cb7" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo8725450a", + "manifest": { + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "imageSize": 61676, + "createdTime": "2022-07-08T22:06:17.2277417Z", + "lastUpdateTime": "2022-07-08T22:06:17.2277417Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tag8725450a" + ], + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": true, + "readEnabled": false, + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:9ec668ee97c20731eb4f4f55f6248ac6b83a0d2e1add2110e6b5d62191f66dd7", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:fa36b268301e951714b69bb6db7680639cdc1b7381cfaac12e98e09f94fdc0d6", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_tags/tag8725450a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo8725450a:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "64e33d1e-92db-4913-bdc6-d4add29e628f" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo8725450a", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:43 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c70bcfb7-50d1-49f4-9114-9c45ef44822b", + "x-ms-ratelimit-remaining-calls-per-second": "166.016667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo8725450a%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:43 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b94a07e7-587a-48db-a1f6-ed69b9a3766b", + "x-ms-ratelimit-remaining-calls-per-second": "166" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_tags/tag8725450a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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": "97abae82-7ccb-4118-9c58-4fa603e7a1a6" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo8725450a", + "tag": { + "name": "tag8725450a", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:06:17.3227153Z", + "lastUpdateTime": "2022-07-08T22:06:17.3227153Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "23", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "writeEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo8725450a:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f2f26ec7-5efa-489b-af66-82bca6c20a64" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo8725450a", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:43 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c3054da1-5fce-4822-bc26-0bf300e764d3", + "x-ms-ratelimit-remaining-calls-per-second": "165.983333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo8725450a%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:43 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "bc85c27e-3b34-4fd0-a5b2-9f5d7a2f72d1", + "x-ms-ratelimit-remaining-calls-per-second": "165.966667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "23", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "writeEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "1826", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53: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": "5423644a-a294-424a-b724-6a7133590df1" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo8725450a", + "manifest": { + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "imageSize": 61676, + "createdTime": "2022-07-08T22:06:17.2277417Z", + "lastUpdateTime": "2022-07-08T22:06:17.2277417Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tag8725450a" + ], + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:9ec668ee97c20731eb4f4f55f6248ac6b83a0d2e1add2110e6b5d62191f66dd7", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:fa36b268301e951714b69bb6db7680639cdc1b7381cfaac12e98e09f94fdc0d6", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_tags/tag8725450a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo8725450a:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "0658a4cf-7af4-475a-9a2c-34101e0f60e4" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo8725450a", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:43 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "047202c2-d4e8-4797-a7f8-2a03160de753", + "x-ms-ratelimit-remaining-calls-per-second": "165.95" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo8725450a%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:43 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "dd463011-6c45-401d-beaa-5555c7a5316e", + "x-ms-ratelimit-remaining-calls-per-second": "165.933333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_tags/tag8725450a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53: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": "bcc928f5-25b6-44e8-b28a-ae8061115223" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo8725450a", + "tag": { + "name": "tag8725450a", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:06:17.3227153Z", + "lastUpdateTime": "2022-07-08T22:06:17.3227153Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "listEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo8725450a:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8585619e-d431-472d-8a9a-b4ba65b06ce2" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo8725450a", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:43 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "438e2ade-0b05-40e9-9f2c-f08a1632cc2a", + "x-ms-ratelimit-remaining-calls-per-second": "165.916667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo8725450a%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:44 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "12fb640a-b7a0-48c9-90c5-c5ad0c591e1d", + "x-ms-ratelimit-remaining-calls-per-second": "165.9" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "listEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "1827", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:44 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": "d111f6ec-1dcd-4c0a-a375-c707a6cbe438" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo8725450a", + "manifest": { + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "imageSize": 61676, + "createdTime": "2022-07-08T22:06:17.2277417Z", + "lastUpdateTime": "2022-07-08T22:06:17.2277417Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tag8725450a" + ], + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + }, + "references": [ + { + "digest": "sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4", + "architecture": "amd64", + "os": "linux" + }, + { + "digest": "sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c", + "architecture": "arm", + "os": "linux" + }, + { + "digest": "sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c", + "architecture": "arm", + "os": "linux" + }, + { + "digest": "sha256:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:9ec668ee97c20731eb4f4f55f6248ac6b83a0d2e1add2110e6b5d62191f66dd7", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:fa36b268301e951714b69bb6db7680639cdc1b7381cfaac12e98e09f94fdc0d6", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_tags/tag8725450a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53:44 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo8725450a:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7e46e13b-0c71-41d7-acb5-4dc10b917841" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo8725450a", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:44 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d399d170-6418-4f75-a6ca-267972afd676", + "x-ms-ratelimit-remaining-calls-per-second": "165.883333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo8725450a%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:44 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d7aba467-b8f4-4fba-a49a-b2ead0833dcf", + "x-ms-ratelimit-remaining-calls-per-second": "165.866667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_tags/tag8725450a?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:53:44 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": "0116bada-0c8d-45c2-9612-fd3fd13e13e8" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo8725450a", + "tag": { + "name": "tag8725450a", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:06:17.3227153Z", + "lastUpdateTime": "2022-07-08T22:06:17.3227153Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:44 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo8725450a:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8f797257-1a4a-4eb8-b651-5405d5a79f80" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo8725450a", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:44 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e6bf323c-cd2f-45a0-8fa8-31ab4bc950d7", + "x-ms-ratelimit-remaining-calls-per-second": "165.85" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo8725450a%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:44 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "5907f443-dfa9-455b-9b08-903df7cdd9e1", + "x-ms-ratelimit-remaining-calls-per-second": "165.833333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo8725450a/_manifests/sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "1823", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:53:44 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": "eaa80e9f-e187-4306-95b1-e29906e2d773" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo8725450a", + "manifest": { + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "imageSize": 61676, + "createdTime": "2022-07-08T22:06:17.2277417Z", + "lastUpdateTime": "2022-07-08T22:06:17.2277417Z", + "mediaType": "application/vnd.docker.distribution.manifest.list.v2\u002Bjson", + "tags": [ + "tag8725450a" + ], + "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:432f982638b3aefab73cc58ab28f5c16e96fdb504e8c134fc58dff4bae8bf338", + "architecture": "arm64", + "os": "linux" + }, + { + "digest": "sha256:995efde2e81b21d1ea7066aa77a59298a62a9e9fbb4b77f36c189774ec9b1089", + "architecture": "386", + "os": "linux" + }, + { + "digest": "sha256:eb11b1a194ff8e236a01eff392c4e1296a53b0fb4780d8b0382f7996a15d5392", + "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:9ec668ee97c20731eb4f4f55f6248ac6b83a0d2e1add2110e6b5d62191f66dd7", + "architecture": "amd64", + "os": "windows" + }, + { + "digest": "sha256:fa36b268301e951714b69bb6db7680639cdc1b7381cfaac12e98e09f94fdc0d6", + "architecture": "amd64", + "os": "windows" + } + ] + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_properties.json new file mode 100644 index 000000000000..fe88a838aecd --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_properties.json @@ -0,0 +1,502 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5c6c3e66?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:52: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5c6c3e66:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7ac2aa63-079a-4802-9cc8-06cfd2c6f0f8" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5c6c3e66", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:00 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:52:01 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "11df2837-3f7d-4997-8858-c6f9b6bc83f8", + "x-ms-ratelimit-remaining-calls-per-second": "166.516667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5c6c3e66%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a4febb68-ed82-46da-ba66-3cda48f5f860", + "x-ms-ratelimit-remaining-calls-per-second": "166.35" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5c6c3e66?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "294", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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": "4c3eeaca-f452-4bd0-a9d8-607ed06edd83" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo5c6c3e66", + "createdTime": "2022-07-08T22:04:22.4108507Z", + "lastUpdateTime": "2022-07-08T22:04:20.893005Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5c6c3e66?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "91", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5c6c3e66:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "456d30f9-e1e5-4275-ad8c-228130cf42a4" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5c6c3e66", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "349b8ce5-75fc-4fb6-928e-38e813a8d20a", + "x-ms-ratelimit-remaining-calls-per-second": "166.333333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5c6c3e66%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "08f350c7-2edc-4522-826d-d784b2165b79", + "x-ms-ratelimit-remaining-calls-per-second": "166.316667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5c6c3e66?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "91", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "298", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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": "aa06f26f-1735-4295-9744-232b78040707" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo5c6c3e66", + "createdTime": "2022-07-08T22:04:22.4108507Z", + "lastUpdateTime": "2022-07-08T22:04:20.893005Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5c6c3e66?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5c6c3e66:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "05c0a5c6-9c12-4a45-ae40-1730bfddba10" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5c6c3e66", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8f2f3f74-bffc-42f1-bfcd-7b6bca194a85", + "x-ms-ratelimit-remaining-calls-per-second": "166.3" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5c6c3e66%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:01 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "eaf3ee96-5afc-4466-b928-ce66ea68e268", + "x-ms-ratelimit-remaining-calls-per-second": "166.283333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5c6c3e66?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "294", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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": "5865beec-a4ba-456d-9111-1f3b304238fc" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo5c6c3e66", + "createdTime": "2022-07-08T22:04:22.4108507Z", + "lastUpdateTime": "2022-07-08T22:04:20.893005Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_repository_properties_kwargs.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_repository_properties_kwargs.json new file mode 100644 index 000000000000..b2c1ed5ba637 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_repository_properties_kwargs.json @@ -0,0 +1,1111 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a1f4613?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:52:24 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a1f4613:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "593576ba-54fb-4c00-b4d4-6a0818d0fa74" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a1f4613", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Security-Policy-Report-Only": "script-src \u0027self\u0027 \u0027nonce-MFXmNUTr3TtINzNkvE_KPg\u0027 \u0027unsafe-eval\u0027 \u0027unsafe-inline\u0027; object-src \u0027none\u0027; base-uri \u0027none\u0027; report-uri https://csp.microsoft.com/report/ESTS-UX-All", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:24 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZFAAAAGCrWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:52:24 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:25 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b65cb720-f411-4137-9579-0646481a21ac", + "x-ms-ratelimit-remaining-calls-per-second": "166.2" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a1f4613%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:25 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "24b69cda-6304-4906-9729-569f1898b1f7", + "x-ms-ratelimit-remaining-calls-per-second": "166.183333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a1f4613?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "295", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:25 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": "e890bf3b-c714-4e7d-9981-81a996a5e0bc" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo1a1f4613", + "createdTime": "2022-07-08T22:04:45.3496376Z", + "lastUpdateTime": "2022-07-08T22:04:43.9907875Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a1f4613?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:25 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a1f4613:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "1c632c5b-32b2-439f-9175-0cfcf7a28f04" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a1f4613", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:25 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "49e97d5a-1fd0-4926-a313-6d9c0c0f6035", + "x-ms-ratelimit-remaining-calls-per-second": "166.166667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a1f4613%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:25 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "2aec240a-6b18-4a7b-a7d7-fa0dd41bd2e3", + "x-ms-ratelimit-remaining-calls-per-second": "166.15" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a1f4613?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "295", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:25 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": "feaec0cf-62bc-40a3-91ee-e4db877efd29" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo1a1f4613", + "createdTime": "2022-07-08T22:04:45.3496376Z", + "lastUpdateTime": "2022-07-08T22:04:43.9907875Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a1f4613?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "24", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:25 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a1f4613:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ab5848f2-417c-41e7-8a99-66dfef2b26d0" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a1f4613", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:25 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a97b9148-c5e5-4558-9ead-9910c3415c8e", + "x-ms-ratelimit-remaining-calls-per-second": "166.133333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a1f4613%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:25 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b0fc2b3a-a806-44d5-a4db-a93bcfdaab4a", + "x-ms-ratelimit-remaining-calls-per-second": "166.116667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a1f4613?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "24", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "deleteEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "296", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:25 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": "ee341854-8025-46b8-b4ec-cfe8cba6f183" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo1a1f4613", + "createdTime": "2022-07-08T22:04:45.3496376Z", + "lastUpdateTime": "2022-07-08T22:04:43.9907875Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a1f4613?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:25 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a1f4613:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "ca663e0d-7131-40b2-80b3-09b56bd7b5ec" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a1f4613", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:25 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "91185205-9118-43c4-b624-c249d0e28b7e", + "x-ms-ratelimit-remaining-calls-per-second": "166.1" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a1f4613%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:25 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7712ee16-7fcc-4905-af48-e1594474cdc6", + "x-ms-ratelimit-remaining-calls-per-second": "166.083333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a1f4613?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "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": "297", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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": "44d720f6-46ba-48eb-854c-0f6353835141" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo1a1f4613", + "createdTime": "2022-07-08T22:04:45.3496376Z", + "lastUpdateTime": "2022-07-08T22:04:43.9907875Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": true, + "readEnabled": false, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a1f4613?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "23", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "writeEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a1f4613:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "5bf8bf70-ba38-40e3-b647-4fd03c0f6c3b" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a1f4613", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:26 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4414f60b-b034-43d8-8568-1c16fac48469", + "x-ms-ratelimit-remaining-calls-per-second": "166.066667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a1f4613%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:26 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "8dbae655-e176-43b6-96eb-e2d07148b381", + "x-ms-ratelimit-remaining-calls-per-second": "166.05" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a1f4613?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "23", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "writeEnabled": false + }, + "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": "Fri, 08 Jul 2022 22:52: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": "dc1f45ab-610e-4a34-a699-3d9e3e3998a3" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo1a1f4613", + "createdTime": "2022-07-08T22:04:45.3496376Z", + "lastUpdateTime": "2022-07-08T22:04:43.9907875Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": true + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a1f4613?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "listEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a1f4613:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "a91ae2e2-39cf-4a32-b8d3-b8038631dbba" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a1f4613", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:26 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "1cdcbcc3-235a-4c27-b9d6-1969793e9838", + "x-ms-ratelimit-remaining-calls-per-second": "166.033333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a1f4613%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:26 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "85d1179f-fa6a-4d3a-b246-1bad477170b3", + "x-ms-ratelimit-remaining-calls-per-second": "166.016667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a1f4613?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "listEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "299", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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": "57f5fa2d-fea2-41a9-ab0f-f6bb70abab50" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo1a1f4613", + "createdTime": "2022-07-08T22:04:45.3496376Z", + "lastUpdateTime": "2022-07-08T22:04:43.9907875Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a1f4613?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo1a1f4613:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "f73da4de-0d92-4038-83ce-2a83c7bd38a9" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo1a1f4613", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:26 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f55d876d-2200-4e44-a371-4c7d99ee8f98", + "x-ms-ratelimit-remaining-calls-per-second": "166" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo1a1f4613%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52:26 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "7fb72f83-1011-4f0c-bbd1-11440642e2c8", + "x-ms-ratelimit-remaining-calls-per-second": "165.983333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo1a1f4613?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "295", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:52: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": "3dd446ec-19a1-4f57-a132-4f40ce14b2d1" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo1a1f4613", + "createdTime": "2022-07-08T22:04:45.3496376Z", + "lastUpdateTime": "2022-07-08T22:04:43.9907875Z", + "manifestCount": 12, + "tagCount": 1, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_tag_properties.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_tag_properties.json new file mode 100644 index 000000000000..d6b05850af89 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_tag_properties.json @@ -0,0 +1,511 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5c164001/_tags/tag5c164001?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:54: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5c164001:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "395df5a7-5a43-47a8-810a-8dcadcb974f8" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5c164001", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:28 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEQAAAIysWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:54:29 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:29 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "1e410252-b4da-4bfd-b192-02cd96f926d8", + "x-ms-ratelimit-remaining-calls-per-second": "166.5" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5c164001%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:29 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "3d7ca903-61cd-4210-ae3b-d27a0ed565de", + "x-ms-ratelimit-remaining-calls-per-second": "166.25" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5c164001/_tags/tag5c164001?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "388", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54: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": "3c9163b9-2ebc-40ab-8f9f-7c2f3452c70a" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo5c164001", + "tag": { + "name": "tag5c164001", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:07:06.553553Z", + "lastUpdateTime": "2022-07-08T22:07:06.553553Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5c164001/_tags/tag5c164001?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "91", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5c164001:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "c4f65ffc-8051-498f-ba56-c9dfb46257ed" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5c164001", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:29 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f60856d3-c526-47ce-bc80-cfec52771368", + "x-ms-ratelimit-remaining-calls-per-second": "166.233333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5c164001%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:29 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "b1c86541-21fa-417f-8722-fb7c27d91ed5", + "x-ms-ratelimit-remaining-calls-per-second": "166.216667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5c164001/_tags/tag5c164001?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "91", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "392", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54: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": "460b963d-5137-45a3-83fc-c10afa1e3ab4" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo5c164001", + "tag": { + "name": "tag5c164001", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:07:06.553553Z", + "lastUpdateTime": "2022-07-08T22:07:06.553553Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5c164001/_tags/tag5c164001?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54: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=\u0022https://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo5c164001:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "432ea913-0d82-4f2b-995d-15e215777943" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo5c164001", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:29 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6451c95d-7d1b-4d3c-a427-24b5a17fdb8b", + "x-ms-ratelimit-remaining-calls-per-second": "166.2" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo5c164001%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:30 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "c34f7a43-6ad2-4185-a5a1-034a0d273578", + "x-ms-ratelimit-remaining-calls-per-second": "166.183333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo5c164001/_tags/tag5c164001?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "388", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:30 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": "15da528a-0b67-474c-8942-7180eae2874d" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo5c164001", + "tag": { + "name": "tag5c164001", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:07:06.553553Z", + "lastUpdateTime": "2022-07-08T22:07:06.553553Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_tag_properties_kwargs.json b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_tag_properties_kwargs.json new file mode 100644 index 000000000000..6ce3f0b52730 --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.pyTestContainerRegistryClientAsynctest_update_tag_properties_kwargs.json @@ -0,0 +1,970 @@ +{ + "Entries": [ + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo2deb42ef/_tags/tag2deb42ef?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:54:52 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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2deb42ef:metadata_read\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "8120247a-0a9b-4107-bfa2-17f10150c56a" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2deb42ef", + "Action": "metadata_read" + } + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "129", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "client_id=client-id\u0026client_secret=client-secret\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "Content-Length": "95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:51 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AoDheS4d7wlHn0IL5W86GMsfgndZEgAAAIysWtoOAAAAjvjTdAsAAABkq1raDgAAAHh1SNABAAAAvata2g4AAAA; expires=Sun, 07-Aug-2022 22:54:52 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13201.7 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:52 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e49485fb-73c3-48c0-a427-c10f6e95ca87", + "x-ms-ratelimit-remaining-calls-per-second": "166.2" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "132", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2deb42ef%3Ametadata_read\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:52 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "4ffcb884-7f32-421a-ab11-05025fa3698a", + "x-ms-ratelimit-remaining-calls-per-second": "166.183333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo2deb42ef/_tags/tag2deb42ef?api-version=2021-07-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "Fri, 08 Jul 2022 22:54:52 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": "126511e4-0802-4407-ab7c-1b1399c6aba0" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo2deb42ef", + "tag": { + "name": "tag2deb42ef", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:07:29.5199793Z", + "lastUpdateTime": "2022-07-08T22:07:29.5199793Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo2deb42ef/_tags/tag2deb42ef?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "24", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2deb42ef:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "7832b05d-e5e2-40b3-9c00-472e16347b0a" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2deb42ef", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "dddfb88e-c97c-4784-9fc4-886a4fea0e24", + "x-ms-ratelimit-remaining-calls-per-second": "166.166667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2deb42ef%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "a444f111-deb3-4c89-8129-ebfa6c207f51", + "x-ms-ratelimit-remaining-calls-per-second": "166.15" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo2deb42ef/_tags/tag2deb42ef?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "24", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "deleteEnabled": 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": "Fri, 08 Jul 2022 22:54: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": "653990e4-ea95-4d29-bd78-1de6451d4430" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo2deb42ef", + "tag": { + "name": "tag2deb42ef", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:07:29.5199793Z", + "lastUpdateTime": "2022-07-08T22:07:29.5199793Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo2deb42ef/_tags/tag2deb42ef?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2deb42ef:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "40031e1c-e5c7-416f-8e16-84bd030cd7dd" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2deb42ef", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "6c01fd1d-bed9-437a-8d26-b605e181e7e0", + "x-ms-ratelimit-remaining-calls-per-second": "166.133333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2deb42ef%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "f7cc3c99-a3d3-434e-905c-70da63f92665", + "x-ms-ratelimit-remaining-calls-per-second": "166.116667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo2deb42ef/_tags/tag2deb42ef?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "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": "392", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54: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": "bd99a95e-63bc-41c4-a60e-9a308bf1dcfc" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo2deb42ef", + "tag": { + "name": "tag2deb42ef", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:07:29.5199793Z", + "lastUpdateTime": "2022-07-08T22:07:29.5199793Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": true, + "readEnabled": false, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo2deb42ef/_tags/tag2deb42ef?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "23", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "writeEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2deb42ef:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "476e57fc-d51f-41ee-a260-29e783d4148d" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2deb42ef", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "99b8de3e-8260-4655-82cc-147960a487e2", + "x-ms-ratelimit-remaining-calls-per-second": "166.1" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2deb42ef%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "e3964809-dc4f-4a9c-a42e-03b3be05f712", + "x-ms-ratelimit-remaining-calls-per-second": "166.083333" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo2deb42ef/_tags/tag2deb42ef?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "23", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "writeEnabled": false + }, + "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": "Fri, 08 Jul 2022 22:54: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": "1992c929-6186-43c6-a3d1-fab2d8a4a23c" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo2deb42ef", + "tag": { + "name": "tag2deb42ef", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:07:29.5199793Z", + "lastUpdateTime": "2022-07-08T22:07:29.5199793Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": true + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo2deb42ef/_tags/tag2deb42ef?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "listEnabled": false + }, + "StatusCode": 401, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2deb42ef:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "bc2afa31-c73f-4217-b5a6-c70f2790168e" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2deb42ef", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "967dff38-375a-4583-a737-931edf38d00b", + "x-ms-ratelimit-remaining-calls-per-second": "166.066667" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2deb42ef%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "01391bd7-80e3-449c-ad6c-fccc67eb3f66", + "x-ms-ratelimit-remaining-calls-per-second": "166.05" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo2deb42ef/_tags/tag2deb42ef?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "listEnabled": false + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": [ + "Docker-Content-Digest", + "WWW-Authenticate", + "Link", + "X-Ms-Correlation-Request-Id" + ], + "Connection": "keep-alive", + "Content-Length": "394", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54: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": "b4a279c7-f5c8-4ec2-ad59-634ebda6d38c" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo2deb42ef", + "tag": { + "name": "tag2deb42ef", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:07:29.5199793Z", + "lastUpdateTime": "2022-07-08T22:07:29.5199793Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": false, + "writeEnabled": false, + "readEnabled": false, + "listEnabled": false + } + } + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo2deb42ef/_tags/tag2deb42ef?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54: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://fake_url.azurecr.io/oauth2/token\u0022,service=\u0022yallacrtests.azurecr.io\u0022,scope=\u0022repository:repo2deb42ef:metadata_write\u0022", + "X-Content-Type-Options": "nosniff", + "X-Ms-Correlation-Request-Id": "bcc81abc-08b6-4a36-bf78-94969d9c90db" + }, + "ResponseBody": { + "errors": [ + { + "code": "UNAUTHORIZED", + "message": "authentication required, visit https://aka.ms/acr/authorization for more information.", + "detail": [ + { + "Type": "repository", + "Name": "repo2deb42ef", + "Action": "metadata_write" + } + ] + } + ] + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "81", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "grant_type=access_token\u0026service=yallacrtests.azurecr.io\u0026access_token=access_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:53 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "523ef67f-bd2b-4f8b-bd2c-f27cd90cfea0", + "x-ms-ratelimit-remaining-calls-per-second": "166.033333" + }, + "ResponseBody": { + "refresh_token": "refresh_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "133", + "Content-Type": "application/x-www-form-urlencoded", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": "service=yallacrtests.azurecr.io\u0026scope=repository%3Arepo2deb42ef%3Ametadata_write\u0026refresh_token=refresh_token\u0026grant_type=refresh_token", + "StatusCode": 200, + "ResponseHeaders": { + "Connection": "keep-alive", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:54 GMT", + "Server": "openresty", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "X-Ms-Correlation-Request-Id": "d815dad4-89b0-40cd-a033-d2f3bed73f05", + "x-ms-ratelimit-remaining-calls-per-second": "166.016667" + }, + "ResponseBody": { + "access_token": "access_token" + } + }, + { + "RequestUri": "https://fake_url.azurecr.io/acr/v1/repo2deb42ef/_tags/tag2deb42ef?api-version=2021-07-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "87", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-azure-containerregistry/1.1.0b2 Python/3.9.2 (Windows-10-10.0.22000-SP0)" + }, + "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": "390", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 08 Jul 2022 22:54:54 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": "81006c8e-0257-4d38-89f8-5f2d01e7ac14" + }, + "ResponseBody": { + "registry": "yallacrtests.azurecr.io", + "imageName": "repo2deb42ef", + "tag": { + "name": "tag2deb42ef", + "digest": "sha256:13e367d31ae85359f42d637adf6da428f76d75dc9afeb3c21faea0d976f5c651", + "createdTime": "2022-07-08T22:07:29.5199793Z", + "lastUpdateTime": "2022-07-08T22:07:29.5199793Z", + "signed": false, + "changeableAttributes": { + "deleteEnabled": true, + "writeEnabled": true, + "readEnabled": true, + "listEnabled": true + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_construct_container_registry_client.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_construct_container_registry_client.yaml deleted file mode 100644 index 7df7e2ba7f6e..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_construct_container_registry_client.yaml +++ /dev/null @@ -1,62 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 - response: - body: - string: '{"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"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '222' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:44:33 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fhello-world?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "retrieving permissions - failed"}]}' - headers: - connection: keep-alive - content-length: '78' - content-type: application/json - date: Thu, 18 Nov 2021 21:44:34 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-ms-ratelimit-remaining-calls-per-second: '166.616667' - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_manifest.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_manifest.yaml deleted file mode 100644 index ead60758767c..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_manifest.yaml +++ /dev/null @@ -1,352 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoaf17178c/_tags/tagaf17178c?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoaf17178c", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:44:58 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoaf17178c/_tags/tagaf17178c?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:44:59 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.55' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoaf17178c:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:44:59 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.25' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoaf17178c/_tags/tagaf17178c?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoaf17178c", - "tag": {"name": "tagaf17178c", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:44:38.4489588Z", "lastUpdateTime": "2021-11-18T21:44:38.4489588Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:44:59 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoaf17178c/_tags/tagaf17178c?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/repoaf17178c/manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoaf17178c", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '208' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:44:59 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/v2/repoaf17178c/manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:44:59 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.233333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoaf17178c:delete - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:44:59 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.216667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/repoaf17178c/manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685 - response: - body: - string: '' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '0' - date: Thu, 18 Nov 2021 21:44:59 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-ratelimit-remaining-calls-per-second: '8.000000' - status: - code: 202 - message: Accepted - url: https://yallacrtests.azurecr.io/v2/repoaf17178c/manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoaf17178c/_tags/tagaf17178c?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoaf17178c", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:09 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoaf17178c/_tags/tagaf17178c?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:10 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.2' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoaf17178c:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:10 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.183333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoaf17178c/_tags/tagaf17178c?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does - not exist"}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '81' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:10 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 404 - message: Not Found - url: https://yallacrtests.azurecr.io/acr/v1/repoaf17178c/_tags/tagaf17178c?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_manifest_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_manifest_does_not_exist.yaml deleted file mode 100644 index e43acdbb36c6..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_manifest_does_not_exist.yaml +++ /dev/null @@ -1,370 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo41a21dd2/_tags/tag41a21dd2?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo41a21dd2", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:35 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo41a21dd2/_tags/tag41a21dd2?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:35 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo41a21dd2:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:35 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo41a21dd2/_tags/tag41a21dd2?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo41a21dd2", - "tag": {"name": "tag41a21dd2", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:45:14.3811473Z", "lastUpdateTime": "2021-11-18T21:45:14.3811473Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:35 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo41a21dd2/_tags/tag41a21dd2?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo41a21dd2/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo41a21dd2", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:35 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo41a21dd2/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:35 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo41a21dd2:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:35 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo41a21dd2/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo41a21dd2", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-18T21:45:14.4458013Z", "lastUpdateTime": - "2021-11-18T21:45:14.4458013Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tag41a21dd2"], "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1823' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:35 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo41a21dd2/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/repo41a21dd2/manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a56aaaaaaaaaa - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo41a21dd2", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '208' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:35 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/v2/repo41a21dd2/manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a56aaaaaaaaaa -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:35 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo41a21dd2:delete - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:35 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/v2/repo41a21dd2/manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a56aaaaaaaaaa - response: - body: - string: '{"errors": [{"code": "MANIFEST_UNKNOWN", "message": "manifest sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a56aaaaaaaaaa - is not found"}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '147' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:45:35 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-ratelimit-remaining-calls-per-second: '8.000000' - status: - code: 404 - message: Not Found - url: https://yallacrtests.azurecr.io/v2/repo41a21dd2/manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a56aaaaaaaaaa -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_repository.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_repository.yaml deleted file mode 100644 index 6067b01632dd..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_repository.yaml +++ /dev/null @@ -1,246 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "to_be_deleted", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '209' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:01 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/to_be_deleted?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:01 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.916667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:to_be_deleted:delete - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:01 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.566667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/to_be_deleted?api-version=2021-07-01 - response: - body: - string: '{"manifestsDeleted": ["sha256:01433e86a06b752f228e3c17394169a5e21a0995f153268a9b36a16d4f2b2184", - "sha256:251bb7a536c7cce3437758971aab3a31c6da52fb43ff0654cff5b167c4486409", - "sha256:7b8b7289d0536a08eabdf71c20246e23f7116641db7e1d278592236ea4dcb30c", - "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "sha256:98c9722322be649df94780d3fbe594fce7996234b259f27eac9428b84050c849", - "sha256:b836bb24a270b9cc935962d8228517fde0f16990e88893d935efcb1b14c0017a", - "sha256:c2f204d26b4ea353651385001bb6bc371d8c4edcd9daf61d00ad365d927e00c0", - "sha256:c7b6944911848ce39b44ed660d95fb54d69bbd531de724c7ce6fc9f743c0b861", - "sha256:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "sha256:f130bd2d67e6e9280ac6d0a6c83857bfaf70234e8ef4236876eccfbd30973b1c", - "sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4"], - "tagsDeleted": ["latest"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '936' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:03 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-ratelimit-remaining-calls-per-second: '8.000000' - status: - code: 202 - message: Accepted - url: https://yallacrtests.azurecr.io/acr/v1/to_be_deleted?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:03 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/_catalog -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:03 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.55' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:03 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.533333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2b381dc2", "repo41a21dd2", "repo63d41ad4", "repoaf17178c"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '136' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:03 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/_catalog -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_repository_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_repository_does_not_exist.yaml deleted file mode 100644 index 738b0ac653e2..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_repository_does_not_exist.yaml +++ /dev/null @@ -1,119 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/not_real_repo?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "not_real_repo", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '209' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:03 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/not_real_repo?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:03 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.55' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:not_real_repo:delete - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:03 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.166667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/not_real_repo?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "NAME_UNKNOWN", "message": "repository name not - known to registry", "detail": {"name": "not_real_repo"}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '121' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:04 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-ratelimit-remaining-calls-per-second: '8.000000' - status: - code: 404 - message: Not Found - url: https://yallacrtests.azurecr.io/acr/v1/not_real_repo?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_tag.yaml deleted file mode 100644 index a5bbb0679fb2..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_tag.yaml +++ /dev/null @@ -1,245 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repo3dc21571/_tags/tag3dc215710?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo3dc21571", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '208' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:31 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo3dc21571/_tags/tag3dc215710?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:31 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo3dc21571:delete - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:31 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/repo3dc21571/_tags/tag3dc215710?api-version=2021-07-01 - response: - body: - string: '' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '0' - date: Thu, 18 Nov 2021 21:46:32 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-int-docker-content-digest: sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685 - x-ms-ratelimit-remaining-calls-per-second: '8.000000' - status: - code: 202 - message: Accepted - url: https://yallacrtests.azurecr.io/acr/v1/repo3dc21571/_tags/tag3dc215710?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo3dc21571/_tags - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo3dc21571", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:32 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo3dc21571/_tags -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:32 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo3dc21571:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:32 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo3dc21571/_tags - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo3dc21571", - "tags": [{"name": "tag3dc215711", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:46:09.9138099Z", "lastUpdateTime": "2021-11-18T21:46:09.9138099Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag3dc215712", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:46:09.7321954Z", "lastUpdateTime": "2021-11-18T21:46:09.7321954Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag3dc215713", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:46:09.662935Z", "lastUpdateTime": "2021-11-18T21:46:09.662935Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1030' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:32 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo3dc21571/_tags -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_tag_does_not_exist.yaml deleted file mode 100644 index f1be7649d3a8..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_delete_tag_does_not_exist.yaml +++ /dev/null @@ -1,119 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/does_not_exist/_tags/does_not_exist?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "does_not_exist", "Action": "delete"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '210' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:32 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/does_not_exist/_tags/does_not_exist?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:32 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.45' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:does_not_exist:delete - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:32 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.066667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://fake_url.azurecr.io/acr/v1/does_not_exist/_tags/does_not_exist?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "TAG_UNKNOWN", "message": "the specified tag does - not exist"}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '81' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:32 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-ratelimit-remaining-calls-per-second: '7.000000' - status: - code: 404 - message: Not Found - url: https://yallacrtests.azurecr.io/acr/v1/does_not_exist/_tags/does_not_exist?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_expiration_time_parsing.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_expiration_time_parsing.yaml deleted file mode 100644 index e030f946c69e..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_expiration_time_parsing.yaml +++ /dev/null @@ -1,204 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:32 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/_catalog -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:33 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:33 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2b381dc2", "repo3dc21571", "repo41a21dd2", "repo63d41ad4", "repoaf17178c"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '151' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:33 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/_catalog -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:33 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/_catalog -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:33 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2b381dc2", "repo3dc21571", "repo41a21dd2", "repo63d41ad4", "repoaf17178c"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '151' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:33 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/_catalog -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_manifest_properties.yaml deleted file mode 100644 index c34c8336f22e..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_manifest_properties.yaml +++ /dev/null @@ -1,253 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo7bda1b05/_tags/tag7bda1b05?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo7bda1b05", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:58 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo7bda1b05/_tags/tag7bda1b05?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:58 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.75' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo7bda1b05:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:58 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.733333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo7bda1b05/_tags/tag7bda1b05?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo7bda1b05", - "tag": {"name": "tag7bda1b05", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:46:36.9112843Z", "lastUpdateTime": "2021-11-18T21:46:36.9112843Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:58 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo7bda1b05/_tags/tag7bda1b05?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo7bda1b05/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo7bda1b05", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:58 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo7bda1b05/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:58 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.716667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo7bda1b05:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:58 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.7' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo7bda1b05/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo7bda1b05", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-18T21:46:37.0033531Z", "lastUpdateTime": - "2021-11-18T21:46:37.0033531Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tag7bda1b05"], "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1823' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:58 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo7bda1b05/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_manifest_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_manifest_properties_does_not_exist.yaml deleted file mode 100644 index d0dc443e599e..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_manifest_properties_does_not_exist.yaml +++ /dev/null @@ -1,29 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/DOESNOTEXIST/_tags/DOESNOTEXIST?api-version=2021-07-01 - response: - body: - string: '404 page not found - - ' - headers: - connection: keep-alive - content-length: '19' - content-type: text/plain; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:59 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 404 - message: Not Found - url: https://yallacrtests.azurecr.io/acr/v1/DOESNOTEXIST/_tags/DOESNOTEXIST?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_misspell_property.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_misspell_property.yaml deleted file mode 100644 index b7114cd348f1..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_misspell_property.yaml +++ /dev/null @@ -1,120 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.1 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/alpine", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '217' - content-type: application/json; charset=utf-8 - date: Thu, 17 Mar 2022 13:15:58 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.1 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 17 Mar 2022 13:15:59 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/alpine:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.1 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 17 Mar 2022 13:15:59 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.1 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/alpine", - "createdTime": "2022-03-17T12:20:47.2455348Z", "lastUpdateTime": "2022-03-17T12:20:45.8750709Z", - "manifestCount": 8, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '296' - content-type: application/json; charset=utf-8 - date: Thu, 17 Mar 2022 13:15:59 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_repository_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_repository_properties.yaml deleted file mode 100644 index bf31f0611fc4..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_repository_properties.yaml +++ /dev/null @@ -1,120 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/alpine", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '217' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:59 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:59 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.95' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/alpine:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:59 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.8' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/alpine", - "createdTime": "2021-11-17T21:45:22.5555136Z", "lastUpdateTime": "2021-11-17T21:45:21.0791839Z", - "manifestCount": 8, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '296' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:46:59 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/library%2Falpine?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_tag.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_tag.yaml deleted file mode 100644 index 7c9a5d24c9ec..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_tag.yaml +++ /dev/null @@ -1,116 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repofeb4143e/_tags/tagfeb4143e - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repofeb4143e", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:54:48 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://seankane.azurecr.io/acr/v1/repofeb4143e/_tags/tagfeb4143e -- request: - body: - access_token: REDACTED - grant_type: access_token - service: seankane.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:54:49 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.516667' - status: - code: 200 - message: OK - url: https://seankane.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repofeb4143e:metadata_read - service: seankane.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:54:49 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.466667' - status: - code: 200 - message: OK - url: https://seankane.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repofeb4143e/_tags/tagfeb4143e - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repofeb4143e", "tag": - {"name": "tagfeb4143e", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T21:54:07.8086805Z", "lastUpdateTime": "2021-05-19T21:54:07.8086805Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '386' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:54:49 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://seankane.azurecr.io/acr/v1/repofeb4143e/_tags/tagfeb4143e -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_tag_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_tag_does_not_exist.yaml deleted file mode 100644 index 041f417226df..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_tag_does_not_exist.yaml +++ /dev/null @@ -1,29 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/Nonexistent/_tags/Nonexistent - response: - body: - string: '404 page not found - - ' - headers: - connection: keep-alive - content-length: '19' - content-type: text/plain; charset=utf-8 - date: Wed, 19 May 2021 21:54:50 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 404 - message: Not Found - url: https://seankane.azurecr.io/acr/v1/Nonexistent/_tags/Nonexistent -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_tag_properties.yaml deleted file mode 100644 index 66be829b44a4..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_tag_properties.yaml +++ /dev/null @@ -1,121 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repof94c18ea/_tags/tagf94c18ea?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repof94c18ea", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:24 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repof94c18ea/_tags/tagf94c18ea?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:25 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repof94c18ea:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:25 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repof94c18ea/_tags/tagf94c18ea?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repof94c18ea", - "tag": {"name": "tagf94c18ea", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:47:04.9729366Z", "lastUpdateTime": "2021-11-18T21:47:04.9729366Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:25 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repof94c18ea/_tags/tagf94c18ea?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_tag_properties_does_not_exist.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_tag_properties_does_not_exist.yaml deleted file mode 100644 index 2d159d51fefc..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_get_tag_properties_does_not_exist.yaml +++ /dev/null @@ -1,29 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/Nonexistent/_tags/Nonexistent?api-version=2021-07-01 - response: - body: - string: '404 page not found - - ' - headers: - connection: keep-alive - content-length: '19' - content-type: text/plain; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:25 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 404 - message: Not Found - url: https://yallacrtests.azurecr.io/acr/v1/Nonexistent/_tags/Nonexistent?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_incorrect_authentication_scope.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_incorrect_authentication_scope.yaml deleted file mode 100644 index c2b4d1675088..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_incorrect_authentication_scope.yaml +++ /dev/null @@ -1,31 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world - response: - body: - string: '{"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"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '222' - content-type: application/json; charset=utf-8 - date: Fri, 04 Jun 2021 14:58:11 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://seankane.azurecr.io/acr/v1/library%2Fhello-world -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_incorrect_credential_scopes.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_incorrect_credential_scopes.yaml deleted file mode 100644 index f1bfab438c5b..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_incorrect_credential_scopes.yaml +++ /dev/null @@ -1,31 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b5 Python/3.9.2 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fhello-world - response: - body: - string: '{"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"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '222' - content-type: application/json; charset=utf-8 - date: Tue, 17 Aug 2021 18:17:32 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yalinlitests.azurecr.io/acr/v1/library%2Fhello-world -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_registry_artifacts.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_registry_artifacts.yaml deleted file mode 100644 index 9f01518c277d..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_registry_artifacts.yaml +++ /dev/null @@ -1,195 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '218' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:25 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:25 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.016667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:25 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:02eb46ac1dbd9302135da448098a66a33c10a677f5946487185aa29d2a7700ce", - "imageSize": 907271, "createdTime": "2021-11-17T21:45:47.5171777Z", "lastUpdateTime": - "2021-11-17T21:45:47.5171777Z", "architecture": "riscv64", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:44:23 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1", - "imageSize": 830502, "createdTime": "2021-11-17T21:45:47.0700674Z", "lastUpdateTime": - "2021-11-17T21:45:47.0700674Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:34efe68cca33507682b1673c851700ec66839ecf94d19b928176e20d20e02413", - "imageSize": 774775, "createdTime": "2021-11-17T21:45:46.5536066Z", "lastUpdateTime": - "2021-11-17T21:45:46.5536066Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42", - "imageSize": 954552, "createdTime": "2021-11-17T21:45:46.7599002Z", "lastUpdateTime": - "2021-11-17T21:45:46.7599002Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:54339d461e3be5eef03b0a444af67e595c7c9513b18bf6b8f343d52414ce8ec0", - "imageSize": 2008812, "createdTime": "2021-11-17T21:45:47.3085761Z", "lastUpdateTime": - "2021-11-17T21:45:47.3085761Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0", - "imageSize": 758161, "createdTime": "2021-11-17T21:45:46.6090719Z", "lastUpdateTime": - "2021-11-17T21:45:46.6090719Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:a306c64b6a97a94ed0df1598c4f3a7ed6057393bc114b7e8eb0da67352879725", - "imageSize": 2486088, "createdTime": "2021-11-17T21:45:47.4635609Z", "lastUpdateTime": - "2021-11-17T21:45:47.4635609Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75", - "imageSize": 726234, "createdTime": "2021-11-17T21:45:46.9096835Z", "lastUpdateTime": - "2021-11-17T21:45:46.9096835Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:41:26 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:be0b3422c99de66c5bb4808cd74a30870e68252fdd361d84250f9691797a2665", - "imageSize": 738045, "createdTime": "2021-11-17T21:45:47.2839095Z", "lastUpdateTime": - "2021-11-17T21:45:47.2839095Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9", - "imageSize": 962442, "createdTime": "2021-11-17T21:45:47.3824184Z", "lastUpdateTime": - "2021-11-17T21:45:47.3824184Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:44:20 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e7157b6d7ebbe2cce5eaa8cfe8aa4fa82d173999b9f90a9ec42e57323546c353", - "imageSize": 11149177, "createdTime": "2021-11-17T21:45:45.7494596Z", "lastUpdateTime": - "2021-11-17T21:45:45.7494596Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:26 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_registry_artifacts_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_registry_artifacts_ascending.yaml deleted file mode 100644 index edc487da4cbf..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_registry_artifacts_ascending.yaml +++ /dev/null @@ -1,388 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '218' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:26 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:27 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:27 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:e7157b6d7ebbe2cce5eaa8cfe8aa4fa82d173999b9f90a9ec42e57323546c353", - "imageSize": 11149177, "createdTime": "2021-11-17T21:45:45.7494596Z", "lastUpdateTime": - "2021-11-17T21:45:45.7494596Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:34efe68cca33507682b1673c851700ec66839ecf94d19b928176e20d20e02413", - "imageSize": 774775, "createdTime": "2021-11-17T21:45:46.5536066Z", "lastUpdateTime": - "2021-11-17T21:45:46.5536066Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0", - "imageSize": 758161, "createdTime": "2021-11-17T21:45:46.6090719Z", "lastUpdateTime": - "2021-11-17T21:45:46.6090719Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42", - "imageSize": 954552, "createdTime": "2021-11-17T21:45:46.7599002Z", "lastUpdateTime": - "2021-11-17T21:45:46.7599002Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75", - "imageSize": 726234, "createdTime": "2021-11-17T21:45:46.9096835Z", "lastUpdateTime": - "2021-11-17T21:45:46.9096835Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:41:26 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1", - "imageSize": 830502, "createdTime": "2021-11-17T21:45:47.0700674Z", "lastUpdateTime": - "2021-11-17T21:45:47.0700674Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:be0b3422c99de66c5bb4808cd74a30870e68252fdd361d84250f9691797a2665", - "imageSize": 738045, "createdTime": "2021-11-17T21:45:47.2839095Z", "lastUpdateTime": - "2021-11-17T21:45:47.2839095Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:54339d461e3be5eef03b0a444af67e595c7c9513b18bf6b8f343d52414ce8ec0", - "imageSize": 2008812, "createdTime": "2021-11-17T21:45:47.3085761Z", "lastUpdateTime": - "2021-11-17T21:45:47.3085761Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9", - "imageSize": 962442, "createdTime": "2021-11-17T21:45:47.3824184Z", "lastUpdateTime": - "2021-11-17T21:45:47.3824184Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:44:20 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:a306c64b6a97a94ed0df1598c4f3a7ed6057393bc114b7e8eb0da67352879725", - "imageSize": 2486088, "createdTime": "2021-11-17T21:45:47.4635609Z", "lastUpdateTime": - "2021-11-17T21:45:47.4635609Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:02eb46ac1dbd9302135da448098a66a33c10a677f5946487185aa29d2a7700ce", - "imageSize": 907271, "createdTime": "2021-11-17T21:45:47.5171777Z", "lastUpdateTime": - "2021-11-17T21:45:47.5171777Z", "architecture": "riscv64", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:44:23 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:27 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '218' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:27 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:27 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:27 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:e7157b6d7ebbe2cce5eaa8cfe8aa4fa82d173999b9f90a9ec42e57323546c353", - "imageSize": 11149177, "createdTime": "2021-11-17T21:45:45.7494596Z", "lastUpdateTime": - "2021-11-17T21:45:45.7494596Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"digest": "sha256:34efe68cca33507682b1673c851700ec66839ecf94d19b928176e20d20e02413", - "imageSize": 774775, "createdTime": "2021-11-17T21:45:46.5536066Z", "lastUpdateTime": - "2021-11-17T21:45:46.5536066Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0", - "imageSize": 758161, "createdTime": "2021-11-17T21:45:46.6090719Z", "lastUpdateTime": - "2021-11-17T21:45:46.6090719Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42", - "imageSize": 954552, "createdTime": "2021-11-17T21:45:46.7599002Z", "lastUpdateTime": - "2021-11-17T21:45:46.7599002Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75", - "imageSize": 726234, "createdTime": "2021-11-17T21:45:46.9096835Z", "lastUpdateTime": - "2021-11-17T21:45:46.9096835Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:41:26 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1", - "imageSize": 830502, "createdTime": "2021-11-17T21:45:47.0700674Z", "lastUpdateTime": - "2021-11-17T21:45:47.0700674Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:be0b3422c99de66c5bb4808cd74a30870e68252fdd361d84250f9691797a2665", - "imageSize": 738045, "createdTime": "2021-11-17T21:45:47.2839095Z", "lastUpdateTime": - "2021-11-17T21:45:47.2839095Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:54339d461e3be5eef03b0a444af67e595c7c9513b18bf6b8f343d52414ce8ec0", - "imageSize": 2008812, "createdTime": "2021-11-17T21:45:47.3085761Z", "lastUpdateTime": - "2021-11-17T21:45:47.3085761Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9", - "imageSize": 962442, "createdTime": "2021-11-17T21:45:47.3824184Z", "lastUpdateTime": - "2021-11-17T21:45:47.3824184Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:44:20 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:a306c64b6a97a94ed0df1598c4f3a7ed6057393bc114b7e8eb0da67352879725", - "imageSize": 2486088, "createdTime": "2021-11-17T21:45:47.4635609Z", "lastUpdateTime": - "2021-11-17T21:45:47.4635609Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:02eb46ac1dbd9302135da448098a66a33c10a677f5946487185aa29d2a7700ce", - "imageSize": 907271, "createdTime": "2021-11-17T21:45:47.5171777Z", "lastUpdateTime": - "2021-11-17T21:45:47.5171777Z", "architecture": "riscv64", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:44:23 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:28 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timeasc -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_registry_artifacts_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_registry_artifacts_by_page.yaml deleted file mode 100644 index 2542f6762921..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_registry_artifacts_by_page.yaml +++ /dev/null @@ -1,785 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '218' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:28 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:28 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:28 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:02eb46ac1dbd9302135da448098a66a33c10a677f5946487185aa29d2a7700ce", - "imageSize": 907271, "createdTime": "2021-11-17T21:45:47.5171777Z", "lastUpdateTime": - "2021-11-17T21:45:47.5171777Z", "architecture": "riscv64", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:44:23 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1", - "imageSize": 830502, "createdTime": "2021-11-17T21:45:47.0700674Z", "lastUpdateTime": - "2021-11-17T21:45:47.0700674Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1586' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:29 GMT - docker-distribution-api-version: registry/2.0 - link: ; - rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?n=2 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '218' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:29 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1&n=2&orderby= -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:29 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:29 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1&n=2&orderby= - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:34efe68cca33507682b1673c851700ec66839ecf94d19b928176e20d20e02413", - "imageSize": 774775, "createdTime": "2021-11-17T21:45:46.5536066Z", "lastUpdateTime": - "2021-11-17T21:45:46.5536066Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42", - "imageSize": 954552, "createdTime": "2021-11-17T21:45:46.7599002Z", "lastUpdateTime": - "2021-11-17T21:45:46.7599002Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1585' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:29 GMT - docker-distribution-api-version: registry/2.0 - link: ; - rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '218' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:29 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42&n=2&orderby= -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:29 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:29 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42&n=2&orderby= - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:54339d461e3be5eef03b0a444af67e595c7c9513b18bf6b8f343d52414ce8ec0", - "imageSize": 2008812, "createdTime": "2021-11-17T21:45:47.3085761Z", "lastUpdateTime": - "2021-11-17T21:45:47.3085761Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0", - "imageSize": 758161, "createdTime": "2021-11-17T21:45:46.6090719Z", "lastUpdateTime": - "2021-11-17T21:45:46.6090719Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1586' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:29 GMT - docker-distribution-api-version: registry/2.0 - link: ; - rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '218' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:29 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0&n=2&orderby= -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:29 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.55' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:29 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.533333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0&n=2&orderby= - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:a306c64b6a97a94ed0df1598c4f3a7ed6057393bc114b7e8eb0da67352879725", - "imageSize": 2486088, "createdTime": "2021-11-17T21:45:47.4635609Z", "lastUpdateTime": - "2021-11-17T21:45:47.4635609Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75", - "imageSize": 726234, "createdTime": "2021-11-17T21:45:46.9096835Z", "lastUpdateTime": - "2021-11-17T21:45:46.9096835Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:41:26 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1585' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:30 GMT - docker-distribution-api-version: registry/2.0 - link: ; - rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '218' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:30 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75&n=2&orderby= -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:30 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.516667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:30 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.5' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75&n=2&orderby= - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:be0b3422c99de66c5bb4808cd74a30870e68252fdd361d84250f9691797a2665", - "imageSize": 738045, "createdTime": "2021-11-17T21:45:47.2839095Z", "lastUpdateTime": - "2021-11-17T21:45:47.2839095Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9", - "imageSize": 962442, "createdTime": "2021-11-17T21:45:47.3824184Z", "lastUpdateTime": - "2021-11-17T21:45:47.3824184Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:44:20 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1581' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:30 GMT - docker-distribution-api-version: registry/2.0 - link: ; - rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '218' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:30 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9&n=2&orderby= -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:30 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.483333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:30 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.466667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9&n=2&orderby= - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:e7157b6d7ebbe2cce5eaa8cfe8aa4fa82d173999b9f90a9ec42e57323546c353", - "imageSize": 11149177, "createdTime": "2021-11-17T21:45:45.7494596Z", "lastUpdateTime": - "2021-11-17T21:45:45.7494596Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '476' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:30 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?last=sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9&n=2&orderby= -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_registry_artifacts_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_registry_artifacts_descending.yaml deleted file mode 100644 index a7020195a761..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_registry_artifacts_descending.yaml +++ /dev/null @@ -1,388 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '218' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:30 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:30 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:31 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.466667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:02eb46ac1dbd9302135da448098a66a33c10a677f5946487185aa29d2a7700ce", - "imageSize": 907271, "createdTime": "2021-11-17T21:45:47.5171777Z", "lastUpdateTime": - "2021-11-17T21:45:47.5171777Z", "architecture": "riscv64", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:44:23 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:a306c64b6a97a94ed0df1598c4f3a7ed6057393bc114b7e8eb0da67352879725", - "imageSize": 2486088, "createdTime": "2021-11-17T21:45:47.4635609Z", "lastUpdateTime": - "2021-11-17T21:45:47.4635609Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9", - "imageSize": 962442, "createdTime": "2021-11-17T21:45:47.3824184Z", "lastUpdateTime": - "2021-11-17T21:45:47.3824184Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:44:20 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:54339d461e3be5eef03b0a444af67e595c7c9513b18bf6b8f343d52414ce8ec0", - "imageSize": 2008812, "createdTime": "2021-11-17T21:45:47.3085761Z", "lastUpdateTime": - "2021-11-17T21:45:47.3085761Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:be0b3422c99de66c5bb4808cd74a30870e68252fdd361d84250f9691797a2665", - "imageSize": 738045, "createdTime": "2021-11-17T21:45:47.2839095Z", "lastUpdateTime": - "2021-11-17T21:45:47.2839095Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1", - "imageSize": 830502, "createdTime": "2021-11-17T21:45:47.0700674Z", "lastUpdateTime": - "2021-11-17T21:45:47.0700674Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75", - "imageSize": 726234, "createdTime": "2021-11-17T21:45:46.9096835Z", "lastUpdateTime": - "2021-11-17T21:45:46.9096835Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:41:26 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42", - "imageSize": 954552, "createdTime": "2021-11-17T21:45:46.7599002Z", "lastUpdateTime": - "2021-11-17T21:45:46.7599002Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0", - "imageSize": 758161, "createdTime": "2021-11-17T21:45:46.6090719Z", "lastUpdateTime": - "2021-11-17T21:45:46.6090719Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:34efe68cca33507682b1673c851700ec66839ecf94d19b928176e20d20e02413", - "imageSize": 774775, "createdTime": "2021-11-17T21:45:46.5536066Z", "lastUpdateTime": - "2021-11-17T21:45:46.5536066Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e7157b6d7ebbe2cce5eaa8cfe8aa4fa82d173999b9f90a9ec42e57323546c353", - "imageSize": 11149177, "createdTime": "2021-11-17T21:45:45.7494596Z", "lastUpdateTime": - "2021-11-17T21:45:45.7494596Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:31 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "library/busybox", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '218' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:31 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:31 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.45' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:library/busybox:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:31 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.433333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "library/busybox", - "manifests": [{"digest": "sha256:02eb46ac1dbd9302135da448098a66a33c10a677f5946487185aa29d2a7700ce", - "imageSize": 907271, "createdTime": "2021-11-17T21:45:47.5171777Z", "lastUpdateTime": - "2021-11-17T21:45:47.5171777Z", "architecture": "riscv64", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:44:23 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:a306c64b6a97a94ed0df1598c4f3a7ed6057393bc114b7e8eb0da67352879725", - "imageSize": 2486088, "createdTime": "2021-11-17T21:45:47.4635609Z", "lastUpdateTime": - "2021-11-17T21:45:47.4635609Z", "architecture": "ppc64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e54f3046086cfda58b89f87763245db08d93418f204629b9e875d089007f0bb9", - "imageSize": 962442, "createdTime": "2021-11-17T21:45:47.3824184Z", "lastUpdateTime": - "2021-11-17T21:45:47.3824184Z", "architecture": "mips64le", "os": "linux", - "mediaType": "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Failed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:44:20 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:54339d461e3be5eef03b0a444af67e595c7c9513b18bf6b8f343d52414ce8ec0", - "imageSize": 2008812, "createdTime": "2021-11-17T21:45:47.3085761Z", "lastUpdateTime": - "2021-11-17T21:45:47.3085761Z", "architecture": "s390x", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:be0b3422c99de66c5bb4808cd74a30870e68252fdd361d84250f9691797a2665", - "imageSize": 738045, "createdTime": "2021-11-17T21:45:47.2839095Z", "lastUpdateTime": - "2021-11-17T21:45:47.2839095Z", "architecture": "386", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:1bab66c8e73ab581941fc7ba417338214b0373384f1fdf03e02a65c550f818a1", - "imageSize": 830502, "createdTime": "2021-11-17T21:45:47.0700674Z", "lastUpdateTime": - "2021-11-17T21:45:47.0700674Z", "architecture": "arm64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:b98e846c227d038ce59a86f480a57c13eefcd41cc152cfb4a2b8d0c32c423f75", - "imageSize": 726234, "createdTime": "2021-11-17T21:45:46.9096835Z", "lastUpdateTime": - "2021-11-17T21:45:46.9096835Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan InProgress\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"11/18/2021 - 9:41:26 PM\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:368f923b2fde7a9fcb461e856ed7807c5fc8bf2524d5feb0365a86288d959d42", - "imageSize": 954552, "createdTime": "2021-11-17T21:45:46.7599002Z", "lastUpdateTime": - "2021-11-17T21:45:46.7599002Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:936a83ff87837f54e46218008fd04ff79bf743bc11b8e9a9773c2a0b11c571e0", - "imageSize": 758161, "createdTime": "2021-11-17T21:45:46.6090719Z", "lastUpdateTime": - "2021-11-17T21:45:46.6090719Z", "architecture": "arm", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:34efe68cca33507682b1673c851700ec66839ecf94d19b928176e20d20e02413", - "imageSize": 774775, "createdTime": "2021-11-17T21:45:46.5536066Z", "lastUpdateTime": - "2021-11-17T21:45:46.5536066Z", "architecture": "amd64", "os": "linux", "mediaType": - "application/vnd.docker.distribution.manifest.v2+json", "changeableAttributes": - {"deleteEnabled": true, "writeEnabled": true, "readEnabled": true, "listEnabled": - true, "quarantineDetails": "{\"state\":\"Scan Passed\",\"link\":\"https://aka.ms/test\",\"scanner\":\"Azure - Security Monitoring-Qualys Scanner\",\"result\":{\"version\":\"2021-11-16T20:42:10.6325416Z\",\"summary\":[{\"severity\":\"High\",\"count\":0},{\"severity\":\"Medium\",\"count\":0},{\"severity\":\"Low\",\"count\":0}]}}", - "quarantineState": "Passed"}}, {"digest": "sha256:e7157b6d7ebbe2cce5eaa8cfe8aa4fa82d173999b9f90a9ec42e57323546c353", - "imageSize": 11149177, "createdTime": "2021-11-17T21:45:45.7494596Z", "lastUpdateTime": - "2021-11-17T21:45:45.7494596Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["latest"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:32 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/library%2Fbusybox/_manifests?orderby=timedesc -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repository_names.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repository_names.yaml deleted file mode 100644 index 9a6b9aea63e7..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repository_names.yaml +++ /dev/null @@ -1,119 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:32 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/_catalog -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:32 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:32 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.4' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog - response: - body: - string: '{"repositories": ["library/alpine", "library/busybox", "library/hello-world", - "repo2b381dc2", "repo3dc21571", "repo41a21dd2", "repo63d41ad4", "repo7bda1b05", - "repoaf17178c", "repof94c18ea"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '181' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:32 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/_catalog -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repository_names_by_page.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repository_names_by_page.yaml deleted file mode 100644 index 037dbf3af225..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_repository_names_by_page.yaml +++ /dev/null @@ -1,581 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:32 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/_catalog?n=2 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.516667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.366667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?n=2 - response: - body: - string: '{"repositories": ["library/alpine", "library/busybox"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '54' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - docker-distribution-api-version: registry/2.0 - link: ; rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/_catalog?n=2 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.35' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.333333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= - response: - body: - string: '{"repositories": ["library/hello-world", "repo2b381dc2"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '56' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - docker-distribution-api-version: registry/2.0 - link: ; rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/_catalog?last=library/busybox&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2b381dc2&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/_catalog?last=repo2b381dc2&n=2&orderby= -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.316667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.3' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo2b381dc2&n=2&orderby= - response: - body: - string: '{"repositories": ["repo3dc21571", "repo41a21dd2"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - docker-distribution-api-version: registry/2.0 - link: ; rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/_catalog?last=repo2b381dc2&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo41a21dd2&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/_catalog?last=repo41a21dd2&n=2&orderby= -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.283333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.266667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo41a21dd2&n=2&orderby= - response: - body: - string: '{"repositories": ["repo63d41ad4", "repo7bda1b05"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - docker-distribution-api-version: registry/2.0 - link: ; rel="next" - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/_catalog?last=repo41a21dd2&n=2&orderby= -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo7bda1b05&n=2&orderby= - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "registry", "Name": "catalog", "Action": "*"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '196' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/_catalog?last=repo7bda1b05&n=2&orderby= -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.25' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: registry:catalog:* - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.233333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/_catalog?last=repo7bda1b05&n=2&orderby= - response: - body: - string: '{"repositories": ["repoaf17178c", "repof94c18ea"]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '49' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:33 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/_catalog?last=repo7bda1b05&n=2&orderby= -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tag_properties.yaml deleted file mode 100644 index 79eb29465619..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tag_properties.yaml +++ /dev/null @@ -1,133 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo13d41966/_tags - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo13d41966", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:59 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo13d41966/_tags -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:59 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo13d41966:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:59 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo13d41966/_tags - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo13d41966", - "tags": [{"name": "tag13d419660", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:47:38.9326424Z", "lastUpdateTime": "2021-11-18T21:47:38.9326424Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag13d419661", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:47:39.7604439Z", "lastUpdateTime": "2021-11-18T21:47:39.7604439Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag13d419662", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:47:39.5908769Z", "lastUpdateTime": "2021-11-18T21:47:39.5908769Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag13d419663", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:47:40.2821486Z", "lastUpdateTime": "2021-11-18T21:47:40.2821486Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1351' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:47:59 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo13d41966/_tags -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tag_properties_order_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tag_properties_order_ascending.yaml deleted file mode 100644 index 912a5854bd04..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tag_properties_order_ascending.yaml +++ /dev/null @@ -1,264 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe1a41fec/_tags?orderby=timeasc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe1a41fec", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:25 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoe1a41fec/_tags?orderby=timeasc -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:25 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.116667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoe1a41fec:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:25 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.1' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe1a41fec/_tags?orderby=timeasc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoe1a41fec", - "tags": [{"name": "tage1a41fec0", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:05.5132488Z", "lastUpdateTime": "2021-11-18T21:48:05.5132488Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tage1a41fec3", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:06.9282808Z", "lastUpdateTime": "2021-11-18T21:48:06.9282808Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tage1a41fec2", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:07.3602969Z", "lastUpdateTime": "2021-11-18T21:48:07.3602969Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tage1a41fec1", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:07.5928071Z", "lastUpdateTime": "2021-11-18T21:48:07.5928071Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1351' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:25 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoe1a41fec/_tags?orderby=timeasc -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe1a41fec/_tags?orderby=timeasc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe1a41fec", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:25 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoe1a41fec/_tags?orderby=timeasc -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:25 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.083333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoe1a41fec:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:26 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.066667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe1a41fec/_tags?orderby=timeasc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoe1a41fec", - "tags": [{"name": "tage1a41fec0", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:05.5132488Z", "lastUpdateTime": "2021-11-18T21:48:05.5132488Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tage1a41fec3", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:06.9282808Z", "lastUpdateTime": "2021-11-18T21:48:06.9282808Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tage1a41fec2", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:07.3602969Z", "lastUpdateTime": "2021-11-18T21:48:07.3602969Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tage1a41fec1", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:07.5928071Z", "lastUpdateTime": "2021-11-18T21:48:07.5928071Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1351' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:26 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoe1a41fec/_tags?orderby=timeasc -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tag_properties_order_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tag_properties_order_descending.yaml deleted file mode 100644 index 3592be0d5921..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tag_properties_order_descending.yaml +++ /dev/null @@ -1,264 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo1ff2054/_tags?orderby=timedesc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo1ff2054", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '214' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:52 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo1ff2054/_tags?orderby=timedesc -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:52 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.15' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo1ff2054:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:52 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.133333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo1ff2054/_tags?orderby=timedesc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo1ff2054", - "tags": [{"name": "tag1ff20541", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:33.8633348Z", "lastUpdateTime": "2021-11-18T21:48:33.8633348Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag1ff20543", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:33.4395646Z", "lastUpdateTime": "2021-11-18T21:48:33.4395646Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag1ff20542", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:33.3804514Z", "lastUpdateTime": "2021-11-18T21:48:33.3804514Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag1ff20540", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:31.3265042Z", "lastUpdateTime": "2021-11-18T21:48:31.3265042Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1346' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:52 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo1ff2054/_tags?orderby=timedesc -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo1ff2054/_tags?orderby=timedesc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo1ff2054", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '214' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:52 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo1ff2054/_tags?orderby=timedesc -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:52 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.116667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo1ff2054:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:52 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.1' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo1ff2054/_tags?orderby=timedesc - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo1ff2054", - "tags": [{"name": "tag1ff20541", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:33.8633348Z", "lastUpdateTime": "2021-11-18T21:48:33.8633348Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag1ff20543", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:33.4395646Z", "lastUpdateTime": "2021-11-18T21:48:33.4395646Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag1ff20542", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:33.3804514Z", "lastUpdateTime": "2021-11-18T21:48:33.3804514Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag1ff20540", - "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:31.3265042Z", "lastUpdateTime": "2021-11-18T21:48:31.3265042Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1346' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:48:52 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo1ff2054/_tags?orderby=timedesc -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tags.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tags.yaml deleted file mode 100644 index aae99b024b56..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tags.yaml +++ /dev/null @@ -1,128 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2915152d/_tags - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo2915152d", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:11:41 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repo2915152d/_tags -- request: - body: - access_token: REDACTED - grant_type: access_token - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:11:42 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.483333' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo2915152d:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:11:42 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.366667' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo2915152d/_tags - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo2915152d", "tags": - [{"name": "tag2915152d0", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T19:18:27.191339Z", "lastUpdateTime": "2021-05-19T19:18:27.191339Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag2915152d1", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T19:18:28.4530402Z", "lastUpdateTime": "2021-05-19T19:18:28.4530402Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag2915152d2", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T19:18:28.6064776Z", "lastUpdateTime": "2021-05-19T19:18:28.6064776Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tag2915152d3", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T19:18:28.4035469Z", "lastUpdateTime": "2021-05-19T19:18:28.4035469Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1345' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:11:42 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/acr/v1/repo2915152d/_tags -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tags_order_ascending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tags_order_ascending.yaml deleted file mode 100644 index 677b8e1ae58d..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tags_order_ascending.yaml +++ /dev/null @@ -1,227 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repob3551bb3/_tags?orderby=timeasc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repob3551bb3", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Wed, 26 May 2021 20:35:49 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://seankane.azurecr.io/acr/v1/repob3551bb3/_tags?orderby=timeasc -- request: - body: - access_token: REDACTED - grant_type: access_token - service: seankane.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 26 May 2021 20:35:50 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.45' - status: - code: 200 - message: OK - url: https://seankane.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repob3551bb3:metadata_read - service: seankane.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 26 May 2021 20:35:50 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.433333' - status: - code: 200 - message: OK - url: https://seankane.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repob3551bb3/_tags?orderby=timeasc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repob3551bb3", "tags": - [{"name": "tagb3551bb30", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:17.3092947Z", "lastUpdateTime": "2021-05-26T20:32:17.3092947Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagb3551bb32", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:18.6829275Z", "lastUpdateTime": "2021-05-26T20:32:18.6829275Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagb3551bb31", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:19.1531041Z", "lastUpdateTime": "2021-05-26T20:32:19.1531041Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagb3551bb33", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:20.0289454Z", "lastUpdateTime": "2021-05-26T20:32:20.0289454Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1347' - content-type: application/json; charset=utf-8 - date: Wed, 26 May 2021 20:35:51 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://seankane.azurecr.io/acr/v1/repob3551bb3/_tags?orderby=timeasc -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repob3551bb3/_tags?orderby=timeasc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repob3551bb3", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Wed, 26 May 2021 20:35:51 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://seankane.azurecr.io/acr/v1/repob3551bb3/_tags?orderby=timeasc -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repob3551bb3:metadata_read - service: seankane.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 26 May 2021 20:35:51 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.416667' - status: - code: 200 - message: OK - url: https://seankane.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repob3551bb3/_tags?orderby=timeasc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repob3551bb3", "tags": - [{"name": "tagb3551bb30", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:17.3092947Z", "lastUpdateTime": "2021-05-26T20:32:17.3092947Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagb3551bb32", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:18.6829275Z", "lastUpdateTime": "2021-05-26T20:32:18.6829275Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagb3551bb31", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:19.1531041Z", "lastUpdateTime": "2021-05-26T20:32:19.1531041Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagb3551bb33", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:20.0289454Z", "lastUpdateTime": "2021-05-26T20:32:20.0289454Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1347' - content-type: application/json; charset=utf-8 - date: Wed, 26 May 2021 20:35:51 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://seankane.azurecr.io/acr/v1/repob3551bb3/_tags?orderby=timeasc -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tags_order_descending.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tags_order_descending.yaml deleted file mode 100644 index f4f225dea69d..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_list_tags_order_descending.yaml +++ /dev/null @@ -1,227 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repocf681c1b/_tags?orderby=timedesc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repocf681c1b", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Wed, 26 May 2021 20:36:21 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://seankane.azurecr.io/acr/v1/repocf681c1b/_tags?orderby=timedesc -- request: - body: - access_token: REDACTED - grant_type: access_token - service: seankane.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 26 May 2021 20:36:22 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.383333' - status: - code: 200 - message: OK - url: https://seankane.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repocf681c1b:metadata_read - service: seankane.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 26 May 2021 20:36:22 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.366667' - status: - code: 200 - message: OK - url: https://seankane.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repocf681c1b/_tags?orderby=timedesc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repocf681c1b", "tags": - [{"name": "tagcf681c1b1", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:50.5063899Z", "lastUpdateTime": "2021-05-26T20:32:50.5063899Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagcf681c1b3", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:49.8095297Z", "lastUpdateTime": "2021-05-26T20:32:49.8095297Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagcf681c1b2", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:49.7526992Z", "lastUpdateTime": "2021-05-26T20:32:49.7526992Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagcf681c1b0", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:48.3701319Z", "lastUpdateTime": "2021-05-26T20:32:48.3701319Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1347' - content-type: application/json; charset=utf-8 - date: Wed, 26 May 2021 20:36:22 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://seankane.azurecr.io/acr/v1/repocf681c1b/_tags?orderby=timedesc -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repocf681c1b/_tags?orderby=timedesc - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repocf681c1b", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Wed, 26 May 2021 20:36:22 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://seankane.azurecr.io/acr/v1/repocf681c1b/_tags?orderby=timedesc -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repocf681c1b:metadata_read - service: seankane.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 26 May 2021 20:36:22 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.35' - status: - code: 200 - message: OK - url: https://seankane.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repocf681c1b/_tags?orderby=timedesc - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repocf681c1b", "tags": - [{"name": "tagcf681c1b1", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:50.5063899Z", "lastUpdateTime": "2021-05-26T20:32:50.5063899Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagcf681c1b3", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:49.8095297Z", "lastUpdateTime": "2021-05-26T20:32:49.8095297Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagcf681c1b2", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:49.7526992Z", "lastUpdateTime": "2021-05-26T20:32:49.7526992Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}, {"name": "tagcf681c1b0", - "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-26T20:32:48.3701319Z", "lastUpdateTime": "2021-05-26T20:32:48.3701319Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1347' - content-type: application/json; charset=utf-8 - date: Wed, 26 May 2021 20:36:22 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://seankane.azurecr.io/acr/v1/repocf681c1b/_tags?orderby=timedesc -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_set_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_set_manifest_properties.yaml deleted file mode 100644 index 3c050a41f9aa..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_set_manifest_properties.yaml +++ /dev/null @@ -1,604 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_tags/tag7cee1b11 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo7cee1b11", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:13 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_tags/tag7cee1b11 -- request: - body: - access_token: REDACTED - grant_type: access_token - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:15 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.183333' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo7cee1b11:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:15 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_tags/tag7cee1b11 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo7cee1b11", "tag": - {"name": "tag7cee1b11", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T19:18:58.2630787Z", "lastUpdateTime": "2021-05-19T19:18:58.2630787Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '386' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:15 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_tags/tag7cee1b11 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_manifests/sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo7cee1b11", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:15 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_manifests/sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo7cee1b11:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:15 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_manifests/sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo7cee1b11", "manifest": - {"digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "imageSize": 5325, "createdTime": "2021-05-19T19:18:58.3344048Z", "lastUpdateTime": - "2021-05-19T19:18:58.3344048Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tag7cee1b11"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}, "references": [{"digest": - "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "architecture": "amd64", "os": "linux"}, {"digest": "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "architecture": "arm64", "os": "linux"}, {"digest": "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "architecture": "386", "os": "linux"}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "architecture": "mips64le", "os": "linux"}, {"digest": "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "architecture": "ppc64le", "os": "linux"}, {"digest": "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "architecture": "s390x", "os": "linux"}, {"digest": "sha256:7fed95756fe4ebeb6eb1d82c2176e0800a02807cc66fe48beb179e57c54ddcf1", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1572' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:15 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_manifests/sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_tags/tag7cee1b11 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo7cee1b11", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:15 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_tags/tag7cee1b11 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo7cee1b11:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:16 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_tags/tag7cee1b11 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo7cee1b11", "tag": - {"name": "tag7cee1b11", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T19:18:58.2630787Z", "lastUpdateTime": "2021-05-19T19:18:58.2630787Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '386' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:16 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_tags/tag7cee1b11 -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_manifests/sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo7cee1b11", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:16 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_manifests/sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo7cee1b11:metadata_write - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:16 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.55' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_manifests/sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo7cee1b11", "manifest": - {"digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "imageSize": 5325, "createdTime": "2021-05-19T19:18:58.3344048Z", "lastUpdateTime": - "2021-05-19T19:18:58.3344048Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tag7cee1b11"], "changeableAttributes": {"deleteEnabled": false, - "writeEnabled": false, "readEnabled": false, "listEnabled": false}, "references": - [{"digest": "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "architecture": "amd64", "os": "linux"}, {"digest": "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "architecture": "arm64", "os": "linux"}, {"digest": "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "architecture": "386", "os": "linux"}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "architecture": "mips64le", "os": "linux"}, {"digest": "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "architecture": "ppc64le", "os": "linux"}, {"digest": "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "architecture": "s390x", "os": "linux"}, {"digest": "sha256:7fed95756fe4ebeb6eb1d82c2176e0800a02807cc66fe48beb179e57c54ddcf1", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1576' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:16 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_manifests/sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_tags/tag7cee1b11 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo7cee1b11", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:17 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_tags/tag7cee1b11 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo7cee1b11:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:17 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.533333' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_tags/tag7cee1b11 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo7cee1b11", "tag": - {"name": "tag7cee1b11", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T19:18:58.2630787Z", "lastUpdateTime": "2021-05-19T19:18:58.2630787Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '386' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:17 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_tags/tag7cee1b11 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_manifests/sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo7cee1b11", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:17 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_manifests/sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo7cee1b11:metadata_write - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:17 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.516667' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_manifests/sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo7cee1b11", "manifest": - {"digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "imageSize": 5325, "createdTime": "2021-05-19T19:18:58.3344048Z", "lastUpdateTime": - "2021-05-19T19:18:58.3344048Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tag7cee1b11"], "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}, "references": [{"digest": - "sha256:1b26826f602946860c279fce658f31050cff2c596583af237d971f4629b57792", - "architecture": "amd64", "os": "linux"}, {"digest": "sha256:e5785cb0c62cebbed4965129bae371f0589cadd6d84798fb58c2c5f9e237efd9", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1", - "architecture": "arm", "os": "linux"}, {"digest": "sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343", - "architecture": "arm64", "os": "linux"}, {"digest": "sha256:cb55d8f7347376e1ba38ca740904b43c9a52f66c7d2ae1ef1a0de1bc9f40df98", - "architecture": "386", "os": "linux"}, {"digest": "sha256:88b2e00179bd6c4064612403c8d42a13de7ca809d61fee966ce9e129860a8a90", - "architecture": "mips64le", "os": "linux"}, {"digest": "sha256:bb7ab0fa94fdd78aca84b27a1bd46c4b811051f9b69905d81f5f267fc6546a9d", - "architecture": "ppc64le", "os": "linux"}, {"digest": "sha256:e49abad529e5d9bd6787f3abeab94e09ba274fe34731349556a850b9aebbf7bf", - "architecture": "s390x", "os": "linux"}, {"digest": "sha256:7fed95756fe4ebeb6eb1d82c2176e0800a02807cc66fe48beb179e57c54ddcf1", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1572' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:18 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/acr/v1/repo7cee1b11/_manifests/sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_set_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_set_properties.yaml deleted file mode 100644 index fa64c529a750..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_set_properties.yaml +++ /dev/null @@ -1,310 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo99be175b - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo99be175b", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:48 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repo99be175b -- request: - body: - access_token: REDACTED - grant_type: access_token - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:49 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo99be175b:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:49 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo99be175b - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo99be175b", "createdTime": - "2021-05-19T19:19:32.840089Z", "lastUpdateTime": "2021-05-19T19:19:31.2878586Z", - "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": - false}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '314' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:49 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/acr/v1/repo99be175b -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo99be175b - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo99be175b", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:50 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repo99be175b -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo99be175b:metadata_write - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:50 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo99be175b - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo99be175b", "createdTime": - "2021-05-19T19:19:32.840089Z", "lastUpdateTime": "2021-05-19T19:19:31.2878586Z", - "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - false, "writeEnabled": false, "readEnabled": false, "listEnabled": false, - "teleportEnabled": false}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '318' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:50 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/acr/v1/repo99be175b -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo99be175b - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo99be175b", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:50 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repo99be175b -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo99be175b:metadata_write - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:50 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo99be175b - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repo99be175b", "createdTime": - "2021-05-19T19:19:32.840089Z", "lastUpdateTime": "2021-05-19T19:19:31.2878586Z", - "manifestCount": 10, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true, "teleportEnabled": - false}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '314' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:12:51 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/acr/v1/repo99be175b -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_set_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_set_tag_properties.yaml deleted file mode 100644 index e1fb43bde1b2..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_set_tag_properties.yaml +++ /dev/null @@ -1,310 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repofa2418f6/_tags/tagfa2418f6 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repofa2418f6", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:13:22 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repofa2418f6/_tags/tagfa2418f6 -- request: - body: - access_token: REDACTED - grant_type: access_token - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:13:23 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/exchange -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repofa2418f6:metadata_read - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:13:23 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.2' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repofa2418f6/_tags/tagfa2418f6 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repofa2418f6", "tag": - {"name": "tagfa2418f6", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T19:20:04.6611335Z", "lastUpdateTime": "2021-05-19T19:20:04.6611335Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '386' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:13:23 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/acr/v1/repofa2418f6/_tags/tagfa2418f6 -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repofa2418f6/_tags/tagfa2418f6 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repofa2418f6", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:13:23 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repofa2418f6/_tags/tagfa2418f6 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repofa2418f6:metadata_write - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:13:23 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.183333' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repofa2418f6/_tags/tagfa2418f6 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repofa2418f6", "tag": - {"name": "tagfa2418f6", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T19:20:04.6611335Z", "lastUpdateTime": "2021-05-19T19:20:04.6611335Z", - "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": - false, "readEnabled": false, "listEnabled": false}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:13:24 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/acr/v1/repofa2418f6/_tags/tagfa2418f6 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repofa2418f6/_tags/tagfa2418f6 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repofa2418f6", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:13:24 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://fake_url.azurecr.io/acr/v1/repofa2418f6/_tags/tagfa2418f6 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repofa2418f6:metadata_write - service: fake_url.azurecr.io - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:13:24 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.166667' - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/oauth2/token -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b2 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repofa2418f6/_tags/tagfa2418f6 - response: - body: - string: '{"registry": "fake_url.azurecr.io", "imageName": "repofa2418f6", "tag": - {"name": "tagfa2418f6", "digest": "sha256:5122f6204b6a3596e048758cabba3c46b1c937a46b5be6225b835d091b90e46c", - "createdTime": "2021-05-19T19:20:04.6611335Z", "lastUpdateTime": "2021-05-19T19:20:04.6611335Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '386' - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 21:13:24 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://fake_url.azurecr.io/acr/v1/repofa2418f6/_tags/tagfa2418f6 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_manifest_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_manifest_properties.yaml deleted file mode 100644 index 0f24002f2b03..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_manifest_properties.yaml +++ /dev/null @@ -1,775 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repocfba1c48/_tags/tagcfba1c48?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repocfba1c48", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:18 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repocfba1c48/_tags/tagcfba1c48?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:19 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.833333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repocfba1c48:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:19 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.816667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repocfba1c48/_tags/tagcfba1c48?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repocfba1c48", - "tag": {"name": "tagcfba1c48", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:58.6392729Z", "lastUpdateTime": "2021-11-18T21:48:58.6392729Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:19 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repocfba1c48/_tags/tagcfba1c48?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repocfba1c48/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repocfba1c48", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:19 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repocfba1c48/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:19 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.8' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repocfba1c48:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:19 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.783333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repocfba1c48/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repocfba1c48", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-18T21:48:58.2725236Z", "lastUpdateTime": - "2021-11-18T21:48:58.2725236Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tagcfba1c48"], "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1823' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:19 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repocfba1c48/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repocfba1c48/_tags/tagcfba1c48?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repocfba1c48", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:19 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repocfba1c48/_tags/tagcfba1c48?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:19 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.766667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repocfba1c48:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:19 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.75' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repocfba1c48/_tags/tagcfba1c48?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repocfba1c48", - "tag": {"name": "tagcfba1c48", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:58.6392729Z", "lastUpdateTime": "2021-11-18T21:48:58.6392729Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:19 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repocfba1c48/_tags/tagcfba1c48?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repocfba1c48/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repocfba1c48", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:19 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repocfba1c48/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:19 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.733333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repocfba1c48:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:20 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.716667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repocfba1c48/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repocfba1c48", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-18T21:48:58.2725236Z", "lastUpdateTime": - "2021-11-18T21:48:58.2725236Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tagcfba1c48"], "changeableAttributes": {"deleteEnabled": false, - "writeEnabled": false, "readEnabled": false, "listEnabled": false}, "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1827' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:20 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repocfba1c48/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repocfba1c48/_tags/tagcfba1c48?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repocfba1c48", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:20 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repocfba1c48/_tags/tagcfba1c48?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:20 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.7' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repocfba1c48:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:20 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.683333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repocfba1c48/_tags/tagcfba1c48?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repocfba1c48", - "tag": {"name": "tagcfba1c48", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:48:58.6392729Z", "lastUpdateTime": "2021-11-18T21:48:58.6392729Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:20 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repocfba1c48/_tags/tagcfba1c48?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repocfba1c48/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repocfba1c48", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:20 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repocfba1c48/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:20 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.666667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repocfba1c48:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:20 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.65' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repocfba1c48/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repocfba1c48", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-18T21:48:58.2725236Z", "lastUpdateTime": - "2021-11-18T21:48:58.2725236Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["tagcfba1c48"], "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1823' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:20 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repocfba1c48/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_manifest_properties_kwargs.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_manifest_properties_kwargs.yaml deleted file mode 100644 index 59cb9e8c9375..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_manifest_properties_kwargs.yaml +++ /dev/null @@ -1,1550 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoa14a1f36", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:46 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:46 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.066667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoa14a1f36:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:46 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.05' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoa14a1f36", - "tag": {"name": "taga14a1f36", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:49:26.3522416Z", "lastUpdateTime": "2021-11-18T21:49:26.3522416Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:46 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoa14a1f36", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:46 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:47 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.033333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoa14a1f36:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:47 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.016667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoa14a1f36", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-18T21:49:26.2608648Z", "lastUpdateTime": - "2021-11-18T21:49:26.2608648Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["taga14a1f36"], "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1823' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:47 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoa14a1f36", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:47 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:47 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoa14a1f36:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:47 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.983333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoa14a1f36", - "tag": {"name": "taga14a1f36", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:49:26.3522416Z", "lastUpdateTime": "2021-11-18T21:49:26.3522416Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:47 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoa14a1f36", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:47 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:47 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.966667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoa14a1f36:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:47 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.95' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoa14a1f36", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-18T21:49:26.2608648Z", "lastUpdateTime": - "2021-11-18T21:49:26.2608648Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["taga14a1f36"], "changeableAttributes": {"deleteEnabled": false, - "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1824' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:47 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoa14a1f36", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:47 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.933333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoa14a1f36:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.916667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoa14a1f36", - "tag": {"name": "taga14a1f36", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:49:26.3522416Z", "lastUpdateTime": "2021-11-18T21:49:26.3522416Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 -- request: - body: '{"readEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoa14a1f36", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.9' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoa14a1f36:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.883333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"readEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoa14a1f36", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-18T21:49:26.2608648Z", "lastUpdateTime": - "2021-11-18T21:49:26.2608648Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["taga14a1f36"], "changeableAttributes": {"deleteEnabled": false, - "writeEnabled": true, "readEnabled": false, "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1825' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoa14a1f36", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.866667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoa14a1f36:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.85' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoa14a1f36", - "tag": {"name": "taga14a1f36", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:49:26.3522416Z", "lastUpdateTime": "2021-11-18T21:49:26.3522416Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 -- request: - body: '{"writeEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '23' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoa14a1f36", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.833333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoa14a1f36:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.816667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"writeEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '23' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoa14a1f36", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-18T21:49:26.2608648Z", "lastUpdateTime": - "2021-11-18T21:49:26.2608648Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["taga14a1f36"], "changeableAttributes": {"deleteEnabled": false, - "writeEnabled": false, "readEnabled": false, "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1826' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoa14a1f36", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:48 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:49 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.8' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoa14a1f36:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:49 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.783333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoa14a1f36", - "tag": {"name": "taga14a1f36", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:49:26.3522416Z", "lastUpdateTime": "2021-11-18T21:49:26.3522416Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:49 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 -- request: - body: '{"listEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoa14a1f36", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:49 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:49 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.766667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoa14a1f36:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:49 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.75' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"listEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoa14a1f36", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-18T21:49:26.2608648Z", "lastUpdateTime": - "2021-11-18T21:49:26.2608648Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["taga14a1f36"], "changeableAttributes": {"deleteEnabled": false, - "writeEnabled": false, "readEnabled": false, "listEnabled": false}, "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1827' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:49 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoa14a1f36", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:49 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:49 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.733333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoa14a1f36:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:49 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.716667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoa14a1f36", - "tag": {"name": "taga14a1f36", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:49:26.3522416Z", "lastUpdateTime": "2021-11-18T21:49:26.3522416Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:49 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_tags/taga14a1f36?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoa14a1f36", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:49 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:49 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.7' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoa14a1f36:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:49 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '165.683333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoa14a1f36", - "manifest": {"digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "imageSize": 61630, "createdTime": "2021-11-18T21:49:26.2608648Z", "lastUpdateTime": - "2021-11-18T21:49:26.2608648Z", "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json", - "tags": ["taga14a1f36"], "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:cb76c852a47032c7c42335ca57deeb72b0ff077557b61e3c99e0677ecdeec575", - "architecture": "amd64", "os": "windows"}, {"digest": "sha256:96ebeec770e1af26469c98913277e1c3b40933202ca398cefc16177c3f26cc75", - "architecture": "amd64", "os": "windows"}]}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '1823' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:49:49 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoa14a1f36/_manifests/sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_properties.yaml deleted file mode 100644 index 88e492183d12..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_properties.yaml +++ /dev/null @@ -1,376 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe19b1892?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe19b1892", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:09:42 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoe19b1892?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:09:43 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoe19b1892:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:09:43 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe19b1892?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoe19b1892", - "createdTime": "2021-11-18T21:49:54.7039136Z", "lastUpdateTime": "2021-11-18T21:49:53.1304291Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '295' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:09:43 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoe19b1892?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe19b1892?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe19b1892", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:09:43 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoe19b1892?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:09:43 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoe19b1892:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:09:43 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe19b1892?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoe19b1892", - "createdTime": "2021-11-18T21:49:54.7039136Z", "lastUpdateTime": "2021-11-18T21:49:53.1304291Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - false, "writeEnabled": false, "readEnabled": false, "listEnabled": false}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '299' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:09:43 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoe19b1892?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe19b1892?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe19b1892", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:09:43 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoe19b1892?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:09:44 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoe19b1892:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:09:44 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe19b1892?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoe19b1892", - "createdTime": "2021-11-18T21:49:54.7039136Z", "lastUpdateTime": "2021-11-18T21:49:53.1304291Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '295' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:09:44 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoe19b1892?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_repository_properties_kwargs.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_repository_properties_kwargs.yaml deleted file mode 100644 index 7726a245db0b..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_repository_properties_kwargs.yaml +++ /dev/null @@ -1,880 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe568203f", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:30 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:30 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoe568203f:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:30 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoe568203f", - "createdTime": "2021-11-18T21:55:50.9393659Z", "lastUpdateTime": "2021-11-18T21:55:49.4680289Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '295' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:30 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe568203f", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:30 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:30 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoe568203f:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:30 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoe568203f", - "createdTime": "2021-11-18T21:55:50.9393659Z", "lastUpdateTime": "2021-11-18T21:55:49.4680289Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '295' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:30 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe568203f", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:30 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:31 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoe568203f:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:31 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoe568203f", - "createdTime": "2021-11-18T21:55:50.9393659Z", "lastUpdateTime": "2021-11-18T21:55:49.4680289Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - false, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '296' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:31 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 -- request: - body: '{"readEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe568203f", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:31 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:31 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.55' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoe568203f:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:31 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.533333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"readEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoe568203f", - "createdTime": "2021-11-18T21:55:50.9393659Z", "lastUpdateTime": "2021-11-18T21:55:49.4680289Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - false, "writeEnabled": true, "readEnabled": false, "listEnabled": true}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '297' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:31 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 -- request: - body: '{"writeEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '23' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe568203f", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:31 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:31 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.516667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoe568203f:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:31 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.5' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"writeEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '23' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoe568203f", - "createdTime": "2021-11-18T21:55:50.9393659Z", "lastUpdateTime": "2021-11-18T21:55:49.4680289Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - false, "writeEnabled": false, "readEnabled": false, "listEnabled": true}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '298' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:31 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 -- request: - body: '{"listEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe568203f", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:31 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:31 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.483333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoe568203f:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:31 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.466667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"listEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoe568203f", - "createdTime": "2021-11-18T21:55:50.9393659Z", "lastUpdateTime": "2021-11-18T21:55:49.4680289Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - false, "writeEnabled": false, "readEnabled": false, "listEnabled": false}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '299' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:32 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repoe568203f", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:32 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:32 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.45' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repoe568203f:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:32 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.433333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repoe568203f", - "createdTime": "2021-11-18T21:55:50.9393659Z", "lastUpdateTime": "2021-11-18T21:55:49.4680289Z", - "manifestCount": 12, "tagCount": 1, "changeableAttributes": {"deleteEnabled": - true, "writeEnabled": true, "readEnabled": true, "listEnabled": true}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '295' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 22:11:32 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repoe568203f?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_tag_properties.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_tag_properties.yaml deleted file mode 100644 index d07fa0d0d4ef..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_tag_properties.yaml +++ /dev/null @@ -1,379 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo46ec1a2d/_tags/tag46ec1a2d?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo46ec1a2d", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:56:38 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo46ec1a2d/_tags/tag46ec1a2d?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:56:39 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.083333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo46ec1a2d:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:56:39 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.066667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo46ec1a2d/_tags/tag46ec1a2d?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo46ec1a2d", - "tag": {"name": "tag46ec1a2d", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:56:20.1673983Z", "lastUpdateTime": "2021-11-18T21:56:20.1673983Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:56:39 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo46ec1a2d/_tags/tag46ec1a2d?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo46ec1a2d/_tags/tag46ec1a2d?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo46ec1a2d", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:56:39 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo46ec1a2d/_tags/tag46ec1a2d?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:56:39 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.05' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo46ec1a2d:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:56:39 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.033333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": false, "writeEnabled": false, "listEnabled": false, "readEnabled": - false}' - headers: - Accept: - - application/json - Content-Length: - - '91' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo46ec1a2d/_tags/tag46ec1a2d?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo46ec1a2d", - "tag": {"name": "tag46ec1a2d", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:56:20.1673983Z", "lastUpdateTime": "2021-11-18T21:56:20.1673983Z", - "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": - false, "readEnabled": false, "listEnabled": false}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '394' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:56:39 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo46ec1a2d/_tags/tag46ec1a2d?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo46ec1a2d/_tags/tag46ec1a2d?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo46ec1a2d", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '216' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:56:39 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo46ec1a2d/_tags/tag46ec1a2d?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:56:39 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.016667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo46ec1a2d:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:56:39 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo46ec1a2d/_tags/tag46ec1a2d?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo46ec1a2d", - "tag": {"name": "tag46ec1a2d", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:56:20.1673983Z", "lastUpdateTime": "2021-11-18T21:56:20.1673983Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:56:39 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo46ec1a2d/_tags/tag46ec1a2d?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_tag_properties_kwargs.yaml b/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_tag_properties_kwargs.yaml deleted file mode 100644 index c640c86a7059..000000000000 --- a/sdk/containerregistry/azure-containerregistry/tests/recordings/test_container_registry_client_async.test_update_tag_properties_kwargs.yaml +++ /dev/null @@ -1,758 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo9bf1d1b", "Action": "metadata_read"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '214' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:05 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:06 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.65' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo9bf1d1b:metadata_read - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:06 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.633333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://fake_url.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo9bf1d1b", - "tag": {"name": "tag9bf1d1b", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:56:44.7893014Z", "lastUpdateTime": "2021-11-18T21:56:44.7893014Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '388' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:06 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo9bf1d1b", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:06 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:06 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.616667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo9bf1d1b:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:06 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.6' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '24' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo9bf1d1b", - "tag": {"name": "tag9bf1d1b", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:56:44.7893014Z", "lastUpdateTime": "2021-11-18T21:56:44.7893014Z", - "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '389' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:06 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 -- request: - body: '{"readEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo9bf1d1b", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:06 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:06 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.583333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo9bf1d1b:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:06 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.566667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"readEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo9bf1d1b", - "tag": {"name": "tag9bf1d1b", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:56:44.7893014Z", "lastUpdateTime": "2021-11-18T21:56:44.7893014Z", - "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": - true, "readEnabled": false, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '390' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:07 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 -- request: - body: '{"writeEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '23' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo9bf1d1b", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:07 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:07 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.55' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo9bf1d1b:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:07 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.533333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"writeEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '23' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo9bf1d1b", - "tag": {"name": "tag9bf1d1b", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:56:44.7893014Z", "lastUpdateTime": "2021-11-18T21:56:44.7893014Z", - "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": - false, "readEnabled": false, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '391' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:07 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 -- request: - body: '{"listEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo9bf1d1b", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:07 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:07 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.516667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo9bf1d1b:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:07 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.5' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"listEnabled": false}' - headers: - Accept: - - application/json - Content-Length: - - '22' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo9bf1d1b", - "tag": {"name": "tag9bf1d1b", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:56:44.7893014Z", "lastUpdateTime": "2021-11-18T21:56:44.7893014Z", - "signed": false, "changeableAttributes": {"deleteEnabled": false, "writeEnabled": - false, "readEnabled": false, "listEnabled": false}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '392' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:07 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 - response: - body: - string: '{"errors": [{"code": "UNAUTHORIZED", "message": "authentication required, - visit https://aka.ms/acr/authorization for more information.", "detail": [{"Type": - "repository", "Name": "repo9bf1d1b", "Action": "metadata_write"}]}]}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '215' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:07 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - www-authenticate: Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token" - x-content-type-options: nosniff - status: - code: 401 - message: Unauthorized - url: https://yallacrtests.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 -- request: - body: - access_token: REDACTED - grant_type: !!python/object/apply:azure.containerregistry._generated.models._container_registry_enums.PostContentSchemaGrantType - - access_token - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/exchange?api-version=2021-07-01 - response: - body: - string: '{"refresh_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:07 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.483333' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/exchange?api-version=2021-07-01 -- request: - body: - grant_type: refresh_token - refresh_token: REDACTED - scope: repository:repo9bf1d1b:metadata_write - service: yallacrtests.azurecr.io - headers: - Accept: - - application/json - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: POST - uri: https://fake_url.azurecr.io/oauth2/token?api-version=2021-07-01 - response: - body: - string: '{"access_token": "REDACTED"}' - headers: - connection: keep-alive - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:07 GMT - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - x-ms-ratelimit-remaining-calls-per-second: '166.466667' - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/oauth2/token?api-version=2021-07-01 -- request: - body: '{"deleteEnabled": true, "writeEnabled": true, "listEnabled": true, "readEnabled": - true}' - headers: - Accept: - - application/json - Content-Length: - - '87' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-containerregistry/1.0.0b7 Python/3.9.2 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://fake_url.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 - response: - body: - string: '{"registry": "yallacrtests.azurecr.io", "imageName": "repo9bf1d1b", - "tag": {"name": "tag9bf1d1b", "digest": "sha256:cc15c5b292d8525effc0f89cb299f1804f3a725c8d05e158653a563f15e4f685", - "createdTime": "2021-11-18T21:56:44.7893014Z", "lastUpdateTime": "2021-11-18T21:56:44.7893014Z", - "signed": false, "changeableAttributes": {"deleteEnabled": true, "writeEnabled": - true, "readEnabled": true, "listEnabled": true}}}' - headers: - access-control-expose-headers: X-Ms-Correlation-Request-Id - connection: keep-alive - content-length: '388' - content-type: application/json; charset=utf-8 - date: Thu, 18 Nov 2021 21:57:07 GMT - docker-distribution-api-version: registry/2.0 - server: openresty - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://yallacrtests.azurecr.io/acr/v1/repo9bf1d1b/_tags/tag9bf1d1b?api-version=2021-07-01 -version: 1 diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py index 345d14a17c52..804478321d86 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access.py @@ -17,10 +17,12 @@ from testcase import ContainerRegistryTestClass from constants import HELLO_WORLD from preparer import acr_preparer +from devtools_testutils import recorded_by_proxy class TestContainerRegistryClient(ContainerRegistryTestClass): @acr_preparer() + @recorded_by_proxy def test_list_repository_names(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -42,6 +44,7 @@ def test_list_repository_names(self, containerregistry_anonregistry_endpoint): assert count > 0 @acr_preparer() + @recorded_by_proxy def test_list_repository_names_by_page(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -68,6 +71,7 @@ def test_list_repository_names_by_page(self, containerregistry_anonregistry_endp assert total_pages >= 1 @acr_preparer() + @recorded_by_proxy def test_get_repository_properties(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -81,6 +85,7 @@ def test_get_repository_properties(self, containerregistry_anonregistry_endpoint assert properties.name == HELLO_WORLD @acr_preparer() + @recorded_by_proxy def test_list_manifest_properties(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -95,6 +100,7 @@ def test_list_manifest_properties(self, containerregistry_anonregistry_endpoint) assert count > 0 @acr_preparer() + @recorded_by_proxy def test_get_manifest_properties(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -109,6 +115,7 @@ def test_get_manifest_properties(self, containerregistry_anonregistry_endpoint): assert registry_artifact.repository_name == "library/hello-world" @acr_preparer() + @recorded_by_proxy def test_list_tag_properties(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -123,6 +130,7 @@ def test_list_tag_properties(self, containerregistry_anonregistry_endpoint): assert count > 0 @acr_preparer() + @recorded_by_proxy def test_delete_repository(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -134,6 +142,7 @@ def test_delete_repository(self, containerregistry_anonregistry_endpoint): client.delete_repository("library/hello-world") @acr_preparer() + @recorded_by_proxy def test_delete_tag(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -145,6 +154,7 @@ def test_delete_tag(self, containerregistry_anonregistry_endpoint): client.delete_tag("library/hello-world", "latest") @acr_preparer() + @recorded_by_proxy def test_delete_manifest(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -156,6 +166,7 @@ def test_delete_manifest(self, containerregistry_anonregistry_endpoint): client.delete_manifest("library/hello-world", "latest") @acr_preparer() + @recorded_by_proxy def test_update_repository_properties(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -168,6 +179,7 @@ def test_update_repository_properties(self, containerregistry_anonregistry_endpo client.update_repository_properties(HELLO_WORLD, properties, can_delete=True) @acr_preparer() + @recorded_by_proxy def test_update_tag_properties(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -180,6 +192,7 @@ def test_update_tag_properties(self, containerregistry_anonregistry_endpoint): client.update_tag_properties(HELLO_WORLD, "latest", properties, can_delete=True) @acr_preparer() + @recorded_by_proxy def test_update_manifest_properties(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access_async.py index 4ecb33eae239..1113dcc7c33e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_anon_access_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_anon_access_async.py @@ -16,12 +16,14 @@ from azure.core.exceptions import ClientAuthenticationError from asynctestcase import AsyncContainerRegistryTestClass -from constants import HELLO_WORLD, ALPINE +from constants import HELLO_WORLD from preparer import acr_preparer +from devtools_testutils.aio import recorded_by_proxy_async -class TestContainerRegistryClient(AsyncContainerRegistryTestClass): +class TestContainerRegistryClientAsync(AsyncContainerRegistryTestClass): @acr_preparer() + @recorded_by_proxy_async async def test_list_repository_names(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -43,6 +45,7 @@ async def test_list_repository_names(self, containerregistry_anonregistry_endpoi assert count > 0 @acr_preparer() + @recorded_by_proxy_async async def test_list_repository_names_by_page(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -69,6 +72,7 @@ async def test_list_repository_names_by_page(self, containerregistry_anonregistr assert total_pages >= 1 @acr_preparer() + @recorded_by_proxy_async async def test_get_repository_properties(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -82,6 +86,7 @@ async def test_get_repository_properties(self, containerregistry_anonregistry_en assert properties.name == "library/alpine" @acr_preparer() + @recorded_by_proxy_async async def test_list_manifest_properties(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -96,6 +101,7 @@ async def test_list_manifest_properties(self, containerregistry_anonregistry_end assert count > 0 @acr_preparer() + @recorded_by_proxy_async async def test_get_manifest_properties(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -110,6 +116,7 @@ async def test_get_manifest_properties(self, containerregistry_anonregistry_endp assert registry_artifact.repository_name == "library/alpine" @acr_preparer() + @recorded_by_proxy_async async def test_list_tag_properties(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -124,6 +131,7 @@ async def test_list_tag_properties(self, containerregistry_anonregistry_endpoint assert count > 0 @acr_preparer() + @recorded_by_proxy_async async def test_delete_repository(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -135,6 +143,7 @@ async def test_delete_repository(self, containerregistry_anonregistry_endpoint): await client.delete_repository("library/hello-world") @acr_preparer() + @recorded_by_proxy_async async def test_delete_tag(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -146,6 +155,7 @@ async def test_delete_tag(self, containerregistry_anonregistry_endpoint): await client.delete_tag("library/hello-world", "latest") @acr_preparer() + @recorded_by_proxy_async async def test_delete_manifest(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -157,6 +167,7 @@ async def test_delete_manifest(self, containerregistry_anonregistry_endpoint): await client.delete_manifest("library/hello-world", "latest") @acr_preparer() + @recorded_by_proxy_async async def test_update_repository_properties(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -169,6 +180,7 @@ async def test_update_repository_properties(self, containerregistry_anonregistry await client.update_repository_properties(HELLO_WORLD, properties, can_delete=True) @acr_preparer() + @recorded_by_proxy_async async def test_update_tag_properties(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") @@ -181,6 +193,7 @@ async def test_update_tag_properties(self, containerregistry_anonregistry_endpoi await client.update_tag_properties(HELLO_WORLD, "latest", properties, can_delete=True) @acr_preparer() + @recorded_by_proxy_async async def test_update_manifest_properties(self, containerregistry_anonregistry_endpoint): if not self.is_public_endpoint(containerregistry_anonregistry_endpoint): pytest.skip("Not a public endpoint") diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client.py index 41823e99407b..005045804c3e 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client.py @@ -23,10 +23,12 @@ from testcase import ContainerRegistryTestClass, get_authority from constants import TO_BE_DELETED, HELLO_WORLD, ALPINE, BUSYBOX, DOES_NOT_EXIST from preparer import acr_preparer +from devtools_testutils import recorded_by_proxy class TestContainerRegistryClient(ContainerRegistryTestClass): @acr_preparer() + @recorded_by_proxy def test_list_repository_names(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -44,6 +46,7 @@ def test_list_repository_names(self, containerregistry_endpoint): assert count > 0 @acr_preparer() + @recorded_by_proxy def test_list_repository_names_by_page(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) results_per_page = 2 @@ -65,6 +68,7 @@ def test_list_repository_names_by_page(self, containerregistry_endpoint): assert total_pages >= 1 @acr_preparer() + @recorded_by_proxy def test_delete_repository(self, containerregistry_endpoint, containerregistry_resource_group): self.import_image(containerregistry_endpoint, HELLO_WORLD, [TO_BE_DELETED]) client = self.create_registry_client(containerregistry_endpoint) @@ -76,12 +80,14 @@ def test_delete_repository(self, containerregistry_endpoint, containerregistry_r raise ValueError("Repository not deleted") @acr_preparer() + @recorded_by_proxy def test_delete_repository_does_not_exist(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) client.delete_repository("not_real_repo") @acr_preparer() + @recorded_by_proxy def test_get_repository_properties(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -90,6 +96,7 @@ def test_get_repository_properties(self, containerregistry_endpoint): assert properties.name == ALPINE @acr_preparer() + @recorded_by_proxy def test_update_repository_properties(self, containerregistry_endpoint): repository = self.get_resource_name("repo") tag_identifier = self.get_resource_name("tag") @@ -122,6 +129,7 @@ def test_update_repository_properties(self, containerregistry_endpoint): assert new_properties.can_write == True @acr_preparer() + @recorded_by_proxy def test_update_repository_properties_kwargs(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -169,6 +177,7 @@ def test_update_repository_properties_kwargs(self, containerregistry_endpoint): self.assert_all_properties(received, True) @acr_preparer() + @recorded_by_proxy def test_list_registry_artifacts(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -184,6 +193,7 @@ def test_list_registry_artifacts(self, containerregistry_endpoint): assert count > 0 @acr_preparer() + @recorded_by_proxy def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) results_per_page = 2 @@ -200,6 +210,7 @@ def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): assert page_count >= 1 @acr_preparer() + @recorded_by_proxy def test_list_registry_artifacts_descending(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -224,6 +235,7 @@ def test_list_registry_artifacts_descending(self, containerregistry_endpoint): assert count > 0 @acr_preparer() + @recorded_by_proxy def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -248,6 +260,7 @@ def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): assert count > 0 @acr_preparer() + @recorded_by_proxy def test_get_manifest_properties(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -262,6 +275,7 @@ def test_get_manifest_properties(self, containerregistry_endpoint): assert properties.fully_qualified_reference in self.create_fully_qualified_reference(containerregistry_endpoint, repo, properties.digest) @acr_preparer() + @recorded_by_proxy def test_get_manifest_properties_does_not_exist(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -279,6 +293,7 @@ def test_get_manifest_properties_does_not_exist(self, containerregistry_endpoint client.get_manifest_properties(repo, digest) @acr_preparer() + @recorded_by_proxy def test_update_manifest_properties(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -312,6 +327,7 @@ def test_update_manifest_properties(self, containerregistry_endpoint): assert received.can_list == True @acr_preparer() + @recorded_by_proxy def test_update_manifest_properties_kwargs(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -342,6 +358,7 @@ def test_update_manifest_properties_kwargs(self, containerregistry_endpoint): assert received.can_list == True @acr_preparer() + @recorded_by_proxy def test_get_tag_properties(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -355,6 +372,7 @@ def test_get_tag_properties(self, containerregistry_endpoint): assert properties.name == tag @acr_preparer() + @recorded_by_proxy def test_get_tag_properties_does_not_exist(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -362,6 +380,7 @@ def test_get_tag_properties_does_not_exist(self, containerregistry_endpoint): client.get_tag_properties("Nonexistent", "Nonexistent") @acr_preparer() + @recorded_by_proxy def test_update_tag_properties(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -394,6 +413,7 @@ def test_update_tag_properties(self, containerregistry_endpoint): assert received.can_list == True @acr_preparer() + @recorded_by_proxy def test_update_tag_properties_kwargs(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -424,6 +444,7 @@ def test_update_tag_properties_kwargs(self, containerregistry_endpoint): assert received.can_list == True @acr_preparer() + @recorded_by_proxy def test_list_tag_properties(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -439,6 +460,7 @@ def test_list_tag_properties(self, containerregistry_endpoint): assert count == 4 @acr_preparer() + @recorded_by_proxy def test_list_tag_properties_order_descending(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -468,6 +490,7 @@ def test_list_tag_properties_order_descending(self, containerregistry_endpoint): assert count == 4 @acr_preparer() + @recorded_by_proxy def test_list_tag_properties_order_ascending(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -497,6 +520,7 @@ def test_list_tag_properties_order_ascending(self, containerregistry_endpoint): assert count == 4 @acr_preparer() + @recorded_by_proxy def test_delete_tag(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -514,12 +538,14 @@ def test_delete_tag(self, containerregistry_endpoint): assert count == 3 @acr_preparer() + @recorded_by_proxy def test_delete_tag_does_not_exist(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) client.delete_tag(DOES_NOT_EXIST, DOES_NOT_EXIST) @acr_preparer() + @recorded_by_proxy def test_delete_manifest(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -534,6 +560,7 @@ def test_delete_manifest(self, containerregistry_endpoint): client.get_manifest_properties(repo, tag) @acr_preparer() + @recorded_by_proxy def test_delete_manifest_does_not_exist(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -550,6 +577,7 @@ def test_delete_manifest_does_not_exist(self, containerregistry_endpoint): client.delete_manifest(repo, digest) @acr_preparer() + @recorded_by_proxy def test_expiration_time_parsing(self, containerregistry_endpoint): from azure.containerregistry._authentication_policy import ContainerRegistryChallengePolicy client = self.create_registry_client(containerregistry_endpoint) @@ -571,6 +599,7 @@ def test_expiration_time_parsing(self, containerregistry_endpoint): # Live only, the fake credential doesn't check auth scope the same way @pytest.mark.live_test_only @acr_preparer() + @recorded_by_proxy def test_construct_container_registry_client(self, containerregistry_endpoint): authority = get_authority(containerregistry_endpoint) credential = self.get_credential(authority) @@ -580,33 +609,21 @@ def test_construct_container_registry_client(self, containerregistry_endpoint): properties = client.get_repository_properties(HELLO_WORLD) with pytest.raises(ValueError): client = ContainerRegistryClient(endpoint=containerregistry_endpoint, credential=credential) - - @acr_preparer() - def test_set_api_version(self, containerregistry_endpoint): - client = self.create_registry_client(containerregistry_endpoint) - assert client._client._config.api_version == "2021-07-01" - - client = self.create_registry_client(containerregistry_endpoint, api_version = "2019-08-15-preview") - assert client._client._config.api_version == "2019-08-15-preview" - - with pytest.raises(ValueError): - client = self.create_registry_client(containerregistry_endpoint, api_version = "2019-08-15") @acr_preparer() + @recorded_by_proxy def test_get_misspell_property(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) properties = client.get_repository_properties(ALPINE) - with self.assertWarns(DeprecationWarning): + with pytest.warns(DeprecationWarning): last_udpated_on = properties.last_udpated_on last_updated_on = properties.last_updated_on assert last_udpated_on == last_updated_on - @pytest.mark.live_test_only @acr_preparer() + @recorded_by_proxy def test_upload_oci_manifest(self, containerregistry_endpoint): - # TODO: remove the "@pytest.mark.live_test_only" annotation once moved to the new test framework - # Arrange repo = self.get_resource_name("repo") manifest = self.create_oci_manifest() client = self.create_registry_client(containerregistry_endpoint) @@ -624,11 +641,9 @@ def test_upload_oci_manifest(self, containerregistry_endpoint): client.delete_manifest(repo, digest) - @pytest.mark.live_test_only @acr_preparer() + @recorded_by_proxy def test_upload_oci_manifest_stream(self, containerregistry_endpoint): - # TODO: remove the "@pytest.mark.live_test_only" annotation once moved to the new test framework - # Arrange repo = self.get_resource_name("repo") base_path = os.path.join(self.get_test_directory(), "data", "oci_artifact") manifest_stream = open(os.path.join(base_path, "manifest.json"), "rb") @@ -648,11 +663,9 @@ def test_upload_oci_manifest_stream(self, containerregistry_endpoint): client.delete_manifest(repo, digest) - @pytest.mark.live_test_only @acr_preparer() + @recorded_by_proxy def test_upload_oci_manifest_with_tag(self, containerregistry_endpoint): - # TODO: remove the "@pytest.mark.live_test_only" annotation once moved to the new test framework - # Arrange repo = self.get_resource_name("repo") manifest = self.create_oci_manifest() client = self.create_registry_client(containerregistry_endpoint) @@ -680,11 +693,9 @@ def test_upload_oci_manifest_with_tag(self, containerregistry_endpoint): client.delete_manifest(repo, digest) - @pytest.mark.live_test_only @acr_preparer() + @recorded_by_proxy def test_upload_oci_manifest_stream_with_tag(self, containerregistry_endpoint): - # TODO: remove the "@pytest.mark.live_test_only" annotation once moved to the new test framework - # Arrange repo = self.get_resource_name("repo") base_path = os.path.join(self.get_test_directory(), "data", "oci_artifact") manifest_stream = open(os.path.join(base_path, "manifest.json"), "rb") @@ -714,11 +725,9 @@ def test_upload_oci_manifest_stream_with_tag(self, containerregistry_endpoint): client.delete_manifest(repo, digest) - @pytest.mark.live_test_only @acr_preparer() + @recorded_by_proxy def test_upload_blob(self, containerregistry_endpoint): - # TODO: remove the "@pytest.mark.live_test_only" annotation once moved to the new test framework - # Arrange repo = self.get_resource_name("repo") client = self.create_registry_client(containerregistry_endpoint) blob = "654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed" @@ -734,3 +743,16 @@ def test_upload_blob(self, containerregistry_endpoint): assert res.digest == digest client.delete_blob(repo, digest) + + +def test_set_api_version(): + containerregistry_endpoint="https://fake_url.azurecr.io" + + client = ContainerRegistryClient(endpoint=containerregistry_endpoint, audience="https://microsoft.com") + assert client._client._config.api_version == "2021-07-01" + + client = ContainerRegistryClient(endpoint=containerregistry_endpoint, audience="https://microsoft.com", api_version = "2019-08-15-preview") + assert client._client._config.api_version == "2019-08-15-preview" + + with pytest.raises(ValueError): + client = ContainerRegistryClient(endpoint=containerregistry_endpoint, audience="https://microsoft.com", api_version = "2019-08-15") diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client_async.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client_async.py index 4d6c702ffc33..f2a29a056652 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client_async.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client_async.py @@ -18,14 +18,15 @@ from azure.core.exceptions import ResourceNotFoundError, ClientAuthenticationError from azure.core.async_paging import AsyncItemPaged -from asynctestcase import AsyncContainerRegistryTestClass +from asynctestcase import AsyncContainerRegistryTestClass, get_authority from constants import TO_BE_DELETED, HELLO_WORLD, ALPINE, BUSYBOX, DOES_NOT_EXIST from preparer import acr_preparer -from testcase import get_authority +from devtools_testutils.aio import recorded_by_proxy_async -class TestContainerRegistryClient(AsyncContainerRegistryTestClass): +class TestContainerRegistryClientAsync(AsyncContainerRegistryTestClass): @acr_preparer() + @recorded_by_proxy_async async def test_list_repository_names(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -43,6 +44,7 @@ async def test_list_repository_names(self, containerregistry_endpoint): assert count > 0 @acr_preparer() + @recorded_by_proxy_async async def test_list_repository_names_by_page(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) results_per_page = 2 @@ -64,6 +66,7 @@ async def test_list_repository_names_by_page(self, containerregistry_endpoint): assert total_pages >= 1 @acr_preparer() + @recorded_by_proxy_async async def test_delete_repository(self, containerregistry_endpoint, containerregistry_resource_group): self.import_image(containerregistry_endpoint, HELLO_WORLD, [TO_BE_DELETED]) client = self.create_registry_client(containerregistry_endpoint) @@ -75,12 +78,14 @@ async def test_delete_repository(self, containerregistry_endpoint, containerregi raise ValueError("Repository not deleted") @acr_preparer() + @recorded_by_proxy_async async def test_delete_repository_does_not_exist(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) await client.delete_repository("not_real_repo") @acr_preparer() + @recorded_by_proxy_async async def test_get_repository_properties(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -89,6 +94,7 @@ async def test_get_repository_properties(self, containerregistry_endpoint): assert properties.name == ALPINE @acr_preparer() + @recorded_by_proxy_async async def test_update_properties(self, containerregistry_endpoint): repository = self.get_resource_name("repo") tag_identifier = self.get_resource_name("tag") @@ -122,6 +128,7 @@ async def test_update_properties(self, containerregistry_endpoint): assert new_properties.can_write == True @acr_preparer() + @recorded_by_proxy_async async def test_update_repository_properties_kwargs(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -169,6 +176,7 @@ async def test_update_repository_properties_kwargs(self, containerregistry_endpo self.assert_all_properties(received, True) @acr_preparer() + @recorded_by_proxy_async async def test_list_registry_artifacts(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -184,6 +192,7 @@ async def test_list_registry_artifacts(self, containerregistry_endpoint): assert count > 0 @acr_preparer() + @recorded_by_proxy_async async def test_list_registry_artifacts_by_page(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) results_per_page = 2 @@ -200,6 +209,7 @@ async def test_list_registry_artifacts_by_page(self, containerregistry_endpoint) assert page_count >= 1 @acr_preparer() + @recorded_by_proxy_async async def test_list_registry_artifacts_descending(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -226,6 +236,7 @@ async def test_list_registry_artifacts_descending(self, containerregistry_endpoi assert count > 0 @acr_preparer() + @recorded_by_proxy_async async def test_list_registry_artifacts_ascending(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -252,6 +263,7 @@ async def test_list_registry_artifacts_ascending(self, containerregistry_endpoin assert count > 0 @acr_preparer() + @recorded_by_proxy_async async def test_get_manifest_properties(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -266,6 +278,7 @@ async def test_get_manifest_properties(self, containerregistry_endpoint): assert properties.fully_qualified_reference in self.create_fully_qualified_reference(containerregistry_endpoint, repo, properties.digest) @acr_preparer() + @recorded_by_proxy_async async def test_get_manifest_properties_does_not_exist(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -273,6 +286,7 @@ async def test_get_manifest_properties_does_not_exist(self, containerregistry_en properties = await client.get_manifest_properties("DOESNOTEXIST", "DOESNOTEXIST") @acr_preparer() + @recorded_by_proxy_async async def test_update_manifest_properties(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -306,6 +320,7 @@ async def test_update_manifest_properties(self, containerregistry_endpoint): assert received.can_list == True @acr_preparer() + @recorded_by_proxy_async async def test_update_manifest_properties_kwargs(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -336,6 +351,7 @@ async def test_update_manifest_properties_kwargs(self, containerregistry_endpoin assert received.can_list == True @acr_preparer() + @recorded_by_proxy_async async def test_get_tag_properties(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -349,6 +365,7 @@ async def test_get_tag_properties(self, containerregistry_endpoint): assert properties.name == tag @acr_preparer() + @recorded_by_proxy_async async def test_get_tag_properties_does_not_exist(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) @@ -356,6 +373,7 @@ async def test_get_tag_properties_does_not_exist(self, containerregistry_endpoin await client.get_tag_properties("Nonexistent", "Nonexistent") @acr_preparer() + @recorded_by_proxy_async async def test_update_tag_properties(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -388,6 +406,7 @@ async def test_update_tag_properties(self, containerregistry_endpoint): assert received.can_list == True @acr_preparer() + @recorded_by_proxy_async async def test_update_tag_properties_kwargs(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -418,6 +437,7 @@ async def test_update_tag_properties_kwargs(self, containerregistry_endpoint): assert received.can_list == True @acr_preparer() + @recorded_by_proxy_async async def test_list_tag_properties(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -433,6 +453,7 @@ async def test_list_tag_properties(self, containerregistry_endpoint): assert count == 4 @acr_preparer() + @recorded_by_proxy_async async def test_list_tag_properties_order_descending(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -462,6 +483,7 @@ async def test_list_tag_properties_order_descending(self, containerregistry_endp assert count == 4 @acr_preparer() + @recorded_by_proxy_async async def test_list_tag_properties_order_ascending(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -491,6 +513,7 @@ async def test_list_tag_properties_order_ascending(self, containerregistry_endpo assert count == 4 @acr_preparer() + @recorded_by_proxy_async async def test_delete_tag(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -508,12 +531,14 @@ async def test_delete_tag(self, containerregistry_endpoint): assert count == 3 @acr_preparer() + @recorded_by_proxy_async async def test_delete_tag_does_not_exist(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) await client.delete_tag(DOES_NOT_EXIST, DOES_NOT_EXIST) @acr_preparer() + @recorded_by_proxy_async async def test_delete_manifest(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -527,6 +552,7 @@ async def test_delete_manifest(self, containerregistry_endpoint): await client.get_manifest_properties(repo, tag) @acr_preparer() + @recorded_by_proxy_async async def test_delete_manifest_does_not_exist(self, containerregistry_endpoint): repo = self.get_resource_name("repo") tag = self.get_resource_name("tag") @@ -543,6 +569,7 @@ async def test_delete_manifest_does_not_exist(self, containerregistry_endpoint): await client.delete_manifest(repo, digest) @acr_preparer() + @recorded_by_proxy_async async def test_expiration_time_parsing(self, containerregistry_endpoint): from azure.containerregistry.aio._async_authentication_policy import ContainerRegistryChallengePolicy client = self.create_registry_client(containerregistry_endpoint) @@ -564,6 +591,7 @@ async def test_expiration_time_parsing(self, containerregistry_endpoint): # Live only, the fake credential doesn't check auth scope the same way @pytest.mark.live_test_only @acr_preparer() + @recorded_by_proxy_async async def test_construct_container_registry_client(self, containerregistry_endpoint): authority = get_authority(containerregistry_endpoint) credential = self.get_credential(authority) @@ -575,22 +603,25 @@ async def test_construct_container_registry_client(self, containerregistry_endpo client = ContainerRegistryClient(endpoint=containerregistry_endpoint, credential=credential) @acr_preparer() - def test_set_api_version(self, containerregistry_endpoint): - client = self.create_registry_client(containerregistry_endpoint) - assert client._client._config.api_version == "2021-07-01" - - client = self.create_registry_client(containerregistry_endpoint, api_version = "2019-08-15-preview") - assert client._client._config.api_version == "2019-08-15-preview" - - with pytest.raises(ValueError): - client = self.create_registry_client(containerregistry_endpoint, api_version = "2019-08-15") - - @acr_preparer() + @recorded_by_proxy_async async def test_get_misspell_property(self, containerregistry_endpoint): client = self.create_registry_client(containerregistry_endpoint) properties = await client.get_repository_properties(ALPINE) - with self.assertWarns(DeprecationWarning): + with pytest.warns(DeprecationWarning): last_udpated_on = properties.last_udpated_on last_updated_on = properties.last_updated_on assert last_udpated_on == last_updated_on + + +def test_set_api_version(): + containerregistry_endpoint="https://fake_url.azurecr.io" + + client = ContainerRegistryClient(endpoint=containerregistry_endpoint, audience="https://microsoft.com") + assert client._client._config.api_version == "2021-07-01" + + client = ContainerRegistryClient(endpoint=containerregistry_endpoint, audience="https://microsoft.com", api_version = "2019-08-15-preview") + assert client._client._config.api_version == "2019-08-15-preview" + + with pytest.raises(ValueError): + client = ContainerRegistryClient(endpoint=containerregistry_endpoint, audience="https://microsoft.com", api_version = "2019-08-15") diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index 3140f9c89dc7..2bcb56cc169c 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -3,28 +3,20 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -import copy -import json import logging import os import pytest -import six import time from azure.containerregistry import ContainerRegistryClient from azure.containerregistry._helpers import _is_tag, OCI_MANIFEST_MEDIA_TYPE from azure.containerregistry._generated.models import Annotations, Descriptor, OCIManifest -from azure.core.credentials import AccessToken from azure.mgmt.containerregistry import ContainerRegistryManagementClient from azure.mgmt.containerregistry.models import ImportImageParameters, ImportSource, ImportMode from azure.identity import DefaultAzureCredential, AzureAuthorityHosts, ClientSecretCredential -from devtools_testutils import AzureTestCase, is_live -from azure_devtools.scenario_tests import ( - OAuthRequestResponsesFilter, - RecordingProcessor, -) +from devtools_testutils import AzureRecordedTestCase, is_live, FakeTokenCredential from msrestazure.azure_cloud import AZURE_CHINA_CLOUD, AZURE_US_GOV_CLOUD, AZURE_PUBLIC_CLOUD, AZURE_GERMAN_CLOUD @@ -32,120 +24,7 @@ logger = logging.getLogger() -class OAuthRequestResponsesFilterACR(RecordingProcessor): - """Remove oauth authentication requests and responses from recording.""" - - def process_request(self, request): - # We want to leave Azure Container Registry challenge auth requests alone - import re - - if not re.search("/oauth2(?:/v2.0)?/token", request.uri) or "azurecr.io" in request.uri: - return request - return None - - -class ManagementRequestReplacer(RecordingProcessor): - """Remove oauth authentication requests and responses from recording.""" - - # Don't need to save the import image requests - - def process_request(self, request): - if "management.azure.com" not in request.uri: - return request - return None - - -class AcrBodyReplacer(RecordingProcessor): - """Replace request body for oauth2 exchanges""" - - def __init__(self): - self._401_replacement = 'Bearer realm="https://fake_url.azurecr.io/oauth2/token",service="fake_url.azurecr.io",scope="fake_scope",error="invalid_token"' - - def _scrub_body(self, body): - # type: (bytes) -> bytes - if isinstance(body, dict): - return self._scrub_body_dict(body) - if not isinstance(body, six.binary_type): - return body - s = body.decode("utf-8") - if "access_token" not in s and "refresh_token" not in s: - return body - s = s.split("&") - for idx, pair in enumerate(s): - [k, v] = pair.split("=") - if k == "access_token" or k == "refresh_token": - v = REDACTED - if k == "service": - v = "fake_url.azurecr.io" - s[idx] = "=".join([k, v]) - s = "&".join(s) - return s.encode("utf-8") - - def _scrub_body_dict(self, body): - new_body = copy.deepcopy(body) - for k in ["access_token", "refresh_token"]: - if k in new_body.keys(): - new_body[k] = REDACTED - return new_body - - def process_request(self, request): - if request.body: - request.body = self._scrub_body(request.body) - - return request - - def process_response(self, response): - try: - headers = response["headers"] - - if "www-authenticate" in headers: - headers["www-authenticate"] = ( - [self._401_replacement] if isinstance(headers["www-authenticate"], list) else self._401_replacement - ) - - body = response["body"] - try: - if body["string"] == b"" or body["string"] == "null": - return response - - refresh = json.loads(body["string"]) - if "refresh_token" in refresh.keys(): - refresh["refresh_token"] = REDACTED - if "access_token" in refresh.keys(): - refresh["access_token"] = REDACTED - body["string"] = json.dumps(refresh) - except ValueError: - pass - except json.decoder.JSONDecodeError: - pass - - return response - except (KeyError, ValueError): - return response - - -class FakeTokenCredential(object): - """Protocol for classes able to provide OAuth tokens. - :param str scopes: Lets you specify the type of access needed. - """ - - def __init__(self): - self.token = AccessToken("YOU SHALL NOT PASS", 0) - - def get_token(self, *args): - return self.token - - -class ContainerRegistryTestClass(AzureTestCase): - def __init__(self, method_name): - super(ContainerRegistryTestClass, self).__init__(method_name) - self.repository = "library/busybox" - self.recording_processors.append(AcrBodyReplacer()) - self.recording_processors.append(ManagementRequestReplacer()) - for idx, p in enumerate(self.recording_processors): - if isinstance(p, OAuthRequestResponsesFilter): - self.recording_processors[idx] = OAuthRequestResponsesFilterACR() - +class ContainerRegistryTestClass(AzureRecordedTestCase): def sleep(self, t): if self.is_live: time.sleep(t) @@ -242,7 +121,7 @@ def upload_manifest_prerequisites(self, repo, client): client.upload_blob(repo, open(os.path.join(base_path, config), "rb")) # upload layers client.upload_blob(repo, open(os.path.join(base_path, layer), "rb")) - + def get_test_directory(self): return os.path.join(os.getcwd(), "tests") diff --git a/sdk/containerregistry/ci.yml b/sdk/containerregistry/ci.yml index 4fec81a4ae7f..5588152d6182 100644 --- a/sdk/containerregistry/ci.yml +++ b/sdk/containerregistry/ci.yml @@ -28,6 +28,7 @@ pr: extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: + TestProxy: true ServiceDirectory: containerregistry Artifacts: - name: azure-mgmt-containerregistry